|
|
|
@ -33,6 +33,7 @@ namespace Aucma.Core.SheetMetal.ViewModels
|
|
|
|
|
protected readonly IRecordSidePanelComplateServices _recordSidePanelComplateServices;
|
|
|
|
|
protected readonly IBaseBomInfoServices _baseBomInfoServices;
|
|
|
|
|
private readonly ISysUserInfoServices _sysUserInfoServices;
|
|
|
|
|
private readonly IRecordInStoreServices _recordInstoreServices;
|
|
|
|
|
private AppConfigHelper appConfig = new AppConfigHelper();
|
|
|
|
|
List<SelectModel> list = new List<SelectModel>() { new SelectModel()
|
|
|
|
|
{
|
|
|
|
@ -55,6 +56,7 @@ namespace Aucma.Core.SheetMetal.ViewModels
|
|
|
|
|
_recordSidePanelComplateServices = App.ServiceProvider.GetService<IRecordSidePanelComplateServices>();
|
|
|
|
|
_baseBomInfoServices = App.ServiceProvider.GetService<IBaseBomInfoServices>();
|
|
|
|
|
_sysUserInfoServices = App.ServiceProvider.GetService<ISysUserInfoServices>();
|
|
|
|
|
_recordInstoreServices = App.ServiceProvider.GetService<IRecordInStoreServices>();
|
|
|
|
|
//Job_SheetMetalTask_Quartz.SmEverDayDelegateEvent += InitEveryDayMethod;
|
|
|
|
|
//Job_SheetMetalTask_Quartz.SmTaskDelegateEvent += UpdatePlanSHow;//计划内容展示
|
|
|
|
|
//WeakReferenceMessenger.Default.Register<string>(this, Recive);
|
|
|
|
@ -63,7 +65,7 @@ namespace Aucma.Core.SheetMetal.ViewModels
|
|
|
|
|
RefreshHourAmount();//小时产量
|
|
|
|
|
RefreshMaterialStats();//型号产量
|
|
|
|
|
SheetMetalPlanTaskHandle.RefreshCurrentPlanInfoEvent += RefreshCurrentPlanInfo;
|
|
|
|
|
|
|
|
|
|
QuantityIssuedViewModel.RefreshCretaePlanInfoEvent += LoadData;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
@ -192,15 +194,18 @@ namespace Aucma.Core.SheetMetal.ViewModels
|
|
|
|
|
#region 计划列表
|
|
|
|
|
|
|
|
|
|
#region 加载DataGrid数据
|
|
|
|
|
private Task LoadData()
|
|
|
|
|
private Task LoadData()
|
|
|
|
|
{
|
|
|
|
|
string stationCode = Appsettings.app("StationInfo", "StationCode");
|
|
|
|
|
|
|
|
|
|
var list = _taskExecutionPlanInfoServices.QueryAsync(x => x.ProductLineCode == stationCode).Result;
|
|
|
|
|
CurrentTeamTimeView view = GetTeamHour();
|
|
|
|
|
|
|
|
|
|
var list = _taskExecutionPlanInfoServices.QueryAsync(x => x.ProductLineCode == stationCode&& x.CreatedTime> view.StartTime && x.CreatedTime <view.EndTime).Result;
|
|
|
|
|
if (list == null) return Task.CompletedTask;
|
|
|
|
|
|
|
|
|
|
var execList = list.OrderByDescending(d => d.ExecuteOrder);
|
|
|
|
|
int i = 1;
|
|
|
|
|
string planType = string.Empty;
|
|
|
|
|
PlanInfoDataGrid.Clear();
|
|
|
|
|
foreach (var item in execList)
|
|
|
|
|
{
|
|
|
|
|
TaskExecModel task = new TaskExecModel();
|
|
|
|
|