|
|
@ -99,6 +99,10 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
get => _startDate;
|
|
|
|
get => _startDate;
|
|
|
|
set
|
|
|
|
set
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if (_startDate != value)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
OnDateChanged();
|
|
|
|
|
|
|
|
}
|
|
|
|
_startDate = value;
|
|
|
|
_startDate = value;
|
|
|
|
OnPropertyChanged(nameof(StartDate));
|
|
|
|
OnPropertyChanged(nameof(StartDate));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -110,6 +114,10 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
get => _endDate;
|
|
|
|
get => _endDate;
|
|
|
|
set
|
|
|
|
set
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
if(_endDate != value)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
OnDateChanged();
|
|
|
|
|
|
|
|
}
|
|
|
|
_endDate = value;
|
|
|
|
_endDate = value;
|
|
|
|
OnPropertyChanged(nameof(EndDate));
|
|
|
|
OnPropertyChanged(nameof(EndDate));
|
|
|
|
}
|
|
|
|
}
|
|
|
@ -132,6 +140,17 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void OnDateChanged()
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (_startDate != null && _endDate != null)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
GetTransferOrder();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private AppConfig appConfig = AppConfig.Instance;
|
|
|
|
private AppConfig appConfig = AppConfig.Instance;
|
|
|
|
private WebApiClientApp webApiClientApp = WebApiClientApp.Instance;
|
|
|
|
private WebApiClientApp webApiClientApp = WebApiClientApp.Instance;
|
|
|
|
private static INIFile iNIFile = new INIFile(System.Environment.CurrentDirectory + "/App.InI");
|
|
|
|
private static INIFile iNIFile = new INIFile(System.Environment.CurrentDirectory + "/App.InI");
|
|
|
@ -154,7 +173,7 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
_endDate = _endDate.Value.AddDays(1);
|
|
|
|
_endDate = _endDate.Value.AddDays(1);
|
|
|
|
#region 正式启用
|
|
|
|
#region 正式启用
|
|
|
|
CsbResult res = csbHandleBusiness.transferOrderFfjhByCsb(_drj, _startDate.Value.ToString(), _endDate.Value.ToString());
|
|
|
|
CsbResult res = csbHandleBusiness.transferOrderFfjhByCsb(_drj, _startDate.Value.ToString(), _endDate.Value.ToString());
|
|
|
|
MessageBox.Show("容器封发-获取调拨单和封发计划:" + res.GetMsg());
|
|
|
|
// MessageBox.Show("容器封发-获取调拨单和封发计划:" + res.GetMsg());
|
|
|
|
if (res.code == "200")
|
|
|
|
if (res.code == "200")
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
@ -189,9 +208,9 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
CsbResult res = csbHandleBusiness.transferOrderFfjhCheckByCsb(transferOrderInfo.ffjhNo, transferOrderInfo.ffjhscrq);
|
|
|
|
CsbResult res = csbHandleBusiness.transferOrderFfjhCheckByCsb(transferOrderInfo.ffjhNo, transferOrderInfo.ffjhscrq);
|
|
|
|
if (res.code== "200")
|
|
|
|
if (res.code== "200")
|
|
|
|
{ //封发计划正常可封发
|
|
|
|
{ //封发计划正常可封发
|
|
|
|
MessageBox.Show($"验证调拨单结果,[{res.GetMsg()}];");
|
|
|
|
// MessageBox.Show($"验证调拨单结果,[{res.GetMsg()}];");
|
|
|
|
SuccessEvent?.Invoke();
|
|
|
|
SuccessEvent?.Invoke();
|
|
|
|
RefreshSubmitVerifyEvent?.Invoke(2, res.message,transferOrderInfo);
|
|
|
|
RefreshSubmitVerifyEvent?.Invoke(2, res.GetMsg(), transferOrderInfo);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|