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