From 7a4c218909936721fe281737491d10efc7378e09 Mon Sep 17 00:00:00 2001
From: dengjunjie <dengjunjie@hnkhzn.com>
Date: 星期五, 19 七月 2024 17:53:30 +0800
Subject: [PATCH] 优化工单信息页面

---
 代码管理/PCS/WCS_Server/WIDESEA_WCS/Services/ToMES/Partial/dt_mes_headService.cs |   21 +++++++++++++++++++++
 1 files changed, 21 insertions(+), 0 deletions(-)

diff --git "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Services/ToMES/Partial/dt_mes_headService.cs" "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Services/ToMES/Partial/dt_mes_headService.cs"
index 95767ad..8d636c7 100644
--- "a/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Services/ToMES/Partial/dt_mes_headService.cs"
+++ "b/\344\273\243\347\240\201\347\256\241\347\220\206/PCS/WCS_Server/WIDESEA_WCS/Services/ToMES/Partial/dt_mes_headService.cs"
@@ -22,11 +22,14 @@
 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;//璁块棶鏁版嵁搴�
 
@@ -42,6 +45,24 @@
             //澶氱鎴蜂細鐢ㄥ埌杩檌nit浠g爜锛屽叾浠栨儏鍐靛彲浠ヤ笉鐢�
             //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());
+            ////鏄庣粏琛ㄨ嚜瀹氫箟鏌ヨ鏂瑰紡涓�锛欵F
+            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>

--
Gitblit v1.9.3