diff --git a/Admin.Core.Service/Service_New/ProductPlanInfoServices.cs b/Admin.Core.Service/Service_New/ProductPlanInfoServices.cs index 30b6d27e..6b4e0301 100644 --- a/Admin.Core.Service/Service_New/ProductPlanInfoServices.cs +++ b/Admin.Core.Service/Service_New/ProductPlanInfoServices.cs @@ -13,17 +13,13 @@ namespace Admin.Core.Service public class ProductPlanInfoServices : BaseServices, IProductPlanInfoServices { private readonly IBaseRepository _dal; - private readonly IPrintOrderInfoRepository _printOrderInfoRepository; private readonly IBaseOrderInfoRepository _baseOrderInfoRepository; - private readonly IBaseBomInfoRepository _baseBomInfoRepository; - public ProductPlanInfoServices(IBaseRepository dal, IBaseBomInfoRepository baseBomInfoRepository, IBaseOrderInfoRepository baseOrderInfoRepository, IPrintOrderInfoRepository printOrderInfoRepository) + public ProductPlanInfoServices(IBaseRepository dal, IBaseOrderInfoRepository baseOrderInfoRepository) { this._dal = dal; base.BaseDal = dal; - _baseBomInfoRepository = baseBomInfoRepository; _baseOrderInfoRepository = baseOrderInfoRepository; - _printOrderInfoRepository = printOrderInfoRepository; } #region 查询计划执行信息 @@ -31,10 +27,9 @@ namespace Admin.Core.Service /// 查询计划执行信息 /// /// - /// public async Task> QueryPlanInfo(string station) { - List planList = await _dal.QueryAsync(d=>d.ProductLineCode== station); + List planList = await _dal.QueryAsync(d => d.ProductLineCode == station); var list = (from p in planList select new PlanMaintenanceView diff --git a/Aucma.Core.SheetMetal/ViewModels/StatisticsPageViewModel.cs b/Aucma.Core.SheetMetal/ViewModels/StatisticsPageViewModel.cs index b253faef..35c83269 100644 --- a/Aucma.Core.SheetMetal/ViewModels/StatisticsPageViewModel.cs +++ b/Aucma.Core.SheetMetal/ViewModels/StatisticsPageViewModel.cs @@ -18,11 +18,12 @@ namespace Aucma.Core.SheetMetal.ViewModels { List materialComplateInfos = new List(); protected readonly IProductPlanInfoServices? _productPlanInfoServices; - public StatisticsPageViewModel() { + public StatisticsPageViewModel() + { _productPlanInfoServices = App.ServiceProvider.GetService(); - LoadData(); } - + LoadData(); + } #region 加载DataGrid数据 private async void LoadData()