diff --git a/SlnMesnac.Repository/service/Impl/MesProductPlanServiceImpl.cs b/SlnMesnac.Repository/service/Impl/MesProductPlanServiceImpl.cs index f9320ef..5433b71 100644 --- a/SlnMesnac.Repository/service/Impl/MesProductPlanServiceImpl.cs +++ b/SlnMesnac.Repository/service/Impl/MesProductPlanServiceImpl.cs @@ -36,7 +36,7 @@ namespace SlnMesnac.Repository.service.Impl { private AppConfig _appConfig; - public MesProductPlanServiceImpl(Repository rep, AppConfig appConfig):base(rep) + public MesProductPlanServiceImpl(Repository rep, AppConfig appConfig) : base(rep) { _appConfig = appConfig; } @@ -172,10 +172,13 @@ namespace SlnMesnac.Repository.service.Impl { try { + // plan.StationId == _appConfig.stationId && var info = base._rep.AsQueryable() .LeftJoin((plan, order) => plan.ProductOrderId == order.ProductOrderId) .LeftJoin((plan, order, material) => plan.MaterialId == material.MaterialId) - .Where(plan => plan.StationId == _appConfig.stationId && plan.PlanStatus != PlanStatusEnum.已完成) + .Where((plan, order) => + plan.PlanStatus != PlanStatusEnum.已完成 && + (order.DispatchId ==2)) .Select((plan, order, material) => new MesProductPlanDto { PlanId = plan.PlanId, @@ -202,7 +205,8 @@ namespace SlnMesnac.Repository.service.Impl MaterialUnitId = material.MaterialUnitId, }).ToList(); return info; - }catch(Exception ex) + } + catch (Exception ex) { throw new InvalidOperationException($"获取MES计划详细信息异常:{ex.Message}"); } diff --git a/SlnMesnac.WPF/Page/ProdMgmtPage.xaml b/SlnMesnac.WPF/Page/ProdMgmtPage.xaml index 9a0f275..ba35eec 100644 --- a/SlnMesnac.WPF/Page/ProdMgmtPage.xaml +++ b/SlnMesnac.WPF/Page/ProdMgmtPage.xaml @@ -240,8 +240,8 @@ -