1 year ago
parent c5787a0c54
commit 6a31bf1fcb

@ -13,17 +13,13 @@ namespace Admin.Core.Service
public class ProductPlanInfoServices : BaseServices<ProductPlanInfo>, IProductPlanInfoServices public class ProductPlanInfoServices : BaseServices<ProductPlanInfo>, IProductPlanInfoServices
{ {
private readonly IBaseRepository<ProductPlanInfo> _dal; private readonly IBaseRepository<ProductPlanInfo> _dal;
private readonly IPrintOrderInfoRepository _printOrderInfoRepository;
private readonly IBaseOrderInfoRepository _baseOrderInfoRepository; private readonly IBaseOrderInfoRepository _baseOrderInfoRepository;
private readonly IBaseBomInfoRepository _baseBomInfoRepository;
public ProductPlanInfoServices(IBaseRepository<ProductPlanInfo> dal, IBaseBomInfoRepository baseBomInfoRepository, IBaseOrderInfoRepository baseOrderInfoRepository, IPrintOrderInfoRepository printOrderInfoRepository) public ProductPlanInfoServices(IBaseRepository<ProductPlanInfo> dal, IBaseOrderInfoRepository baseOrderInfoRepository)
{ {
this._dal = dal; this._dal = dal;
base.BaseDal = dal; base.BaseDal = dal;
_baseBomInfoRepository = baseBomInfoRepository;
_baseOrderInfoRepository = baseOrderInfoRepository; _baseOrderInfoRepository = baseOrderInfoRepository;
_printOrderInfoRepository = printOrderInfoRepository;
} }
#region 查询计划执行信息 #region 查询计划执行信息
@ -31,10 +27,9 @@ namespace Admin.Core.Service
/// 查询计划执行信息 /// 查询计划执行信息
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
/// <exception cref="NotImplementedException"></exception>
public async Task<List<PlanMaintenanceView>> QueryPlanInfo(string station) public async Task<List<PlanMaintenanceView>> QueryPlanInfo(string station)
{ {
List<ProductPlanInfo> planList = await _dal.QueryAsync(d=>d.ProductLineCode== station); List<ProductPlanInfo> planList = await _dal.QueryAsync(d => d.ProductLineCode == station);
var list = (from p in planList var list = (from p in planList
select new PlanMaintenanceView select new PlanMaintenanceView

@ -18,11 +18,12 @@ namespace Aucma.Core.SheetMetal.ViewModels
{ {
List<MaterialComplateInfo> materialComplateInfos = new List<MaterialComplateInfo>(); List<MaterialComplateInfo> materialComplateInfos = new List<MaterialComplateInfo>();
protected readonly IProductPlanInfoServices? _productPlanInfoServices; protected readonly IProductPlanInfoServices? _productPlanInfoServices;
public StatisticsPageViewModel() {
public StatisticsPageViewModel()
{
_productPlanInfoServices = App.ServiceProvider.GetService<IProductPlanInfoServices>(); _productPlanInfoServices = App.ServiceProvider.GetService<IProductPlanInfoServices>();
LoadData(); } LoadData();
}
#region 加载DataGrid数据 #region 加载DataGrid数据
private async void LoadData() private async void LoadData()

Loading…
Cancel
Save