|
|
@ -2,6 +2,7 @@
|
|
|
|
using GalaSoft.MvvmLight.Command;
|
|
|
|
using GalaSoft.MvvmLight.Command;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
using SlnMesnac.Business;
|
|
|
|
using SlnMesnac.Business;
|
|
|
|
|
|
|
|
using SlnMesnac.Config;
|
|
|
|
using SlnMesnac.Model.domain;
|
|
|
|
using SlnMesnac.Model.domain;
|
|
|
|
using SlnMesnac.Model.dto;
|
|
|
|
using SlnMesnac.Model.dto;
|
|
|
|
using SlnMesnac.Model.enums;
|
|
|
|
using SlnMesnac.Model.enums;
|
|
|
@ -47,7 +48,7 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
|
|
|
|
|
|
|
|
private readonly IWmsRawPreferredOutService? wmsRawPreferredOutService;
|
|
|
|
private readonly IWmsRawPreferredOutService? wmsRawPreferredOutService;
|
|
|
|
private readonly ISqlSugarClient? sqlSugarClient;
|
|
|
|
private readonly ISqlSugarClient? sqlSugarClient;
|
|
|
|
|
|
|
|
private readonly DebugConfig debugConfig = DebugConfig.Instance;
|
|
|
|
public ManualDeliveryViewModel()
|
|
|
|
public ManualDeliveryViewModel()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
wmsRawPreferredOutService = App.ServiceProvider.GetService<IWmsRawPreferredOutService>();
|
|
|
|
wmsRawPreferredOutService = App.ServiceProvider.GetService<IWmsRawPreferredOutService>();
|
|
|
@ -58,6 +59,7 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
|
|
|
|
|
|
|
|
// ConfirmCommand = new RelayCommand<object>(Confirm);
|
|
|
|
// ConfirmCommand = new RelayCommand<object>(Confirm);
|
|
|
|
DeleteCommand = new RelayCommand<object>(Delete);
|
|
|
|
DeleteCommand = new RelayCommand<object>(Delete);
|
|
|
|
|
|
|
|
ChangeModeCommand = new RelayCommand<object>(ChangeMode);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private void Init()
|
|
|
|
private void Init()
|
|
|
@ -105,7 +107,12 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
#region 事件定义
|
|
|
|
#region 事件定义
|
|
|
|
public RelayCommand<string> QueryStringCommand { get; set; }
|
|
|
|
public RelayCommand<string> QueryStringCommand { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
|
|
/// 投料模式切换
|
|
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
|
|
public RelayCommand<object> ChangeModeCommand { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 关闭事件
|
|
|
|
/// 关闭事件
|
|
|
@ -275,5 +282,13 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
Init();
|
|
|
|
Init();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void ChangeMode(object parameter)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
debugConfig.ProductMode = debugConfig.ProductMode=="1"?"2":"1";
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|