|
|
|
@ -123,6 +123,22 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 界面提示信息
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string? _transferMsg;
|
|
|
|
|
public string? TransferMsg
|
|
|
|
|
{
|
|
|
|
|
get => _transferMsg;
|
|
|
|
|
set
|
|
|
|
|
{
|
|
|
|
|
_transferMsg = value;
|
|
|
|
|
OnPropertyChanged(nameof(TransferMsg));
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private ObservableCollection<TransferOrderInfo> _transferOrderInfoItems = new ObservableCollection<TransferOrderInfo>();
|
|
|
|
|
public ObservableCollection<TransferOrderInfo> TransferOrderInfoItems
|
|
|
|
|
{
|
|
|
|
@ -161,18 +177,21 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
{
|
|
|
|
|
if (_startDate == null || _endDate == null)
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show("请选择开始日期或者结束日期");
|
|
|
|
|
TransferMsg = "请选择开始日期或者结束日期";
|
|
|
|
|
// MessageBox.Show("请选择开始日期或者结束日期");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
else if (_startDate > _endDate)
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show("开始日期不能大于结束日期");
|
|
|
|
|
TransferMsg = "开始日期不能大于结束日期";
|
|
|
|
|
// MessageBox.Show("开始日期不能大于结束日期");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
_endDate = _endDate.Value.AddDays(1);
|
|
|
|
|
#region 正式启用
|
|
|
|
|
CsbResult res = csbHandleBusiness.transferOrderFfjhByCsb(_drj, _startDate.Value.ToString(), _endDate.Value.ToString());
|
|
|
|
|
TransferMsg = $"获取调拨单结果:{res.GetMsg()}";
|
|
|
|
|
// MessageBox.Show("容器封发-获取调拨单和封发计划:" + res.GetMsg());
|
|
|
|
|
if (res.code == "200")
|
|
|
|
|
{
|
|
|
|
@ -191,7 +210,8 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
|
|
|
|
|
}catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show(ex.Message);
|
|
|
|
|
TransferMsg = ex.Message;
|
|
|
|
|
// MessageBox.Show(ex.Message);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -206,6 +226,7 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
|
|
|
|
|
#region 正式启用
|
|
|
|
|
CsbResult res = csbHandleBusiness.transferOrderFfjhCheckByCsb(transferOrderInfo.ffjhNo, transferOrderInfo.ffjhscrq);
|
|
|
|
|
TransferMsg = $"验证调拨单结果:{res.GetMsg()}";
|
|
|
|
|
if (res.code== "200")
|
|
|
|
|
{ //封发计划正常可封发
|
|
|
|
|
// MessageBox.Show($"验证调拨单结果,[{res.GetMsg()}];");
|
|
|
|
@ -216,7 +237,8 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show(res.message);
|
|
|
|
|
TransferMsg = res.GetMsg();
|
|
|
|
|
// MessageBox.Show(res.message);
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|