| | |
| | | using WIDESEA_Core.ManageUser; |
| | | using WIDESEA_Comm.LogInfo; |
| | | using System.Collections.Generic; |
| | | using WIDESEA_Core.Enums; |
| | | using WIDESEA_WCS.Repositories; |
| | | |
| | | namespace WIDESEA_WCS.Services |
| | | { |
| | | public partial class dt_mes_headService |
| | | { |
| | | WebResponseContent webResponse = new WebResponseContent(); |
| | | private readonly IHttpContextAccessor _httpContextAccessor; |
| | | private readonly Idt_mes_headRepository _repository;//è®¿é®æ°æ®åº |
| | | |
| | |
| | | //å¤ç§æ·ä¼ç¨å°è¿init代ç ï¼å
¶ä»æ
åµå¯ä»¥ä¸ç¨ |
| | | //base.Init(dbRepository); |
| | | } |
| | | public override object GetDetailPage(PageDataOptions pageData) |
| | | { |
| | | pageData.Sort = pageData.Sort ?? typeof(dt_mes_detail).GetKeyName(); |
| | | Dictionary<string, QueryOrderBy> orderBy = GetPageDataSort(pageData, typeof(dt_mes_detail).GetProperties()); |
| | | ////æç»è¡¨èªå®ä¹æ¥è¯¢æ¹å¼ä¸ï¼EF |
| | | var query = dt_mes_detailRepository.Instance.IQueryablePage<dt_mes_detail>( |
| | | pageData.Page, |
| | | pageData.Rows, |
| | | out int count, |
| | | x => x.mes_id == pageData.Value.GetGuid(), |
| | | orderBy: x => new Dictionary<object, QueryOrderBy>() { { x.heatID, QueryOrderBy.Desc } } |
| | | ); |
| | | PageGridData<dt_mes_detail> detailGrid = new PageGridData<dt_mes_detail>(); |
| | | detailGrid.rows = query.GetIQueryableOrderBy(orderBy).ToList(); |
| | | detailGrid.total = count; |
| | | |
| | | return detailGrid; |
| | | } |
| | | /// <summary> |
| | | /// åæ¶å·¥ååºåºå¤å |
| | | /// </summary> |