From 8624ff9330e5aa4d7578de03846f130a0fbabb86 Mon Sep 17 00:00:00 2001 From: yinq Date: Thu, 10 Jul 2025 09:39:21 +0800 Subject: [PATCH] =?UTF-8?q?change=20-=20=E6=A3=80=E7=B4=A2=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E5=8A=A0=E7=89=88=E6=AC=A1=E4=B8=8B=E6=8B=89=E6=A1=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SlnMesnac.Model/domain/ProdPlanErpInfo.cs | 2 + .../service/Impl/ProdPlanInfoServiceImpl.cs | 6 ++- .../service/ProdPlanInfoService.cs | 2 +- SlnMesnac.WPF/UserControls/ExecutePage.xaml | 6 +++ SlnMesnac.WPF/ViewModel/ExecuteViewModel.cs | 41 +++++++++++++++---- SlnMesnac.WPF/ViewModel/HandOverViewModel.cs | 2 +- 6 files changed, 48 insertions(+), 11 deletions(-) diff --git a/SlnMesnac.Model/domain/ProdPlanErpInfo.cs b/SlnMesnac.Model/domain/ProdPlanErpInfo.cs index e171ad7..94cf2db 100644 --- a/SlnMesnac.Model/domain/ProdPlanErpInfo.cs +++ b/SlnMesnac.Model/domain/ProdPlanErpInfo.cs @@ -12,5 +12,7 @@ namespace SlnMesnac.Model.domain public string SeqNo { get; set; } // seqNo [SugarColumn(ColumnName = "workingHours")] public string WorkingHours { get; set; } // workingHours + [SugarColumn(ColumnName = "classes")] + public string classes { get; set; } // classes } } \ No newline at end of file diff --git a/SlnMesnac.Repository/service/Impl/ProdPlanInfoServiceImpl.cs b/SlnMesnac.Repository/service/Impl/ProdPlanInfoServiceImpl.cs index 939b887..141a762 100644 --- a/SlnMesnac.Repository/service/Impl/ProdPlanInfoServiceImpl.cs +++ b/SlnMesnac.Repository/service/Impl/ProdPlanInfoServiceImpl.cs @@ -25,8 +25,11 @@ namespace SlnMesnac.Repository.service.Impl /// /// /// + /// + /// + /// /// - public List GetRecordStaffAttendancesByConditions(string? orderCode, string? planCode, string? materialCode, string? stationCode, string? planStatus) + public List GetRecordStaffAttendancesByConditions(string? orderCode, string? planCode, string? materialCode, string? stationCode, string? planStatus, string? classes) { var query = _rep.Context.Queryable() .LeftJoin((ppi, ppei) => ppi.PlanCode == ppei.SeqNo) @@ -35,6 +38,7 @@ namespace SlnMesnac.Repository.service.Impl .WhereIF(!string.IsNullOrEmpty(materialCode), (ppi, ppei) => ppi.MaterialCode == materialCode) .WhereIF(!string.IsNullOrEmpty(stationCode), (ppi, ppei) => ppi.StationCode == stationCode) .WhereIF(!string.IsNullOrEmpty(planStatus), (ppi, ppei) => ppi.PlanStatus == planStatus || ppi.PlanStatus == "4") + .WhereIF(!string.IsNullOrEmpty(classes), (ppi, ppei) => ppei.classes == classes) .Select((ppi, ppei) => new ProdPLanInfo { ObjId = ppi.ObjId, diff --git a/SlnMesnac.Repository/service/ProdPlanInfoService.cs b/SlnMesnac.Repository/service/ProdPlanInfoService.cs index fe7030f..a068393 100644 --- a/SlnMesnac.Repository/service/ProdPlanInfoService.cs +++ b/SlnMesnac.Repository/service/ProdPlanInfoService.cs @@ -18,7 +18,7 @@ namespace SlnMesnac.Repository.service /// 根据订单编号、工单编号、物料名称获取工单信息 /// /// - List GetRecordStaffAttendancesByConditions(string orderCode,string planCode,string materialCode, string stationCode, string planStatus); + List GetRecordStaffAttendancesByConditions(string orderCode,string planCode,string materialCode, string stationCode, string planStatus, string classes); /// /// 根据订单编号、工单编号、物料名称获取工单信息 diff --git a/SlnMesnac.WPF/UserControls/ExecutePage.xaml b/SlnMesnac.WPF/UserControls/ExecutePage.xaml index 09572f2..0264770 100644 --- a/SlnMesnac.WPF/UserControls/ExecutePage.xaml +++ b/SlnMesnac.WPF/UserControls/ExecutePage.xaml @@ -130,6 +130,12 @@ + + + + + +