|
|
|
@ -450,32 +450,23 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
res = csbHandleBusiness.containerStorageBatchQueryByCsb(TrackNo,batchNo.ToString(), enumerable.ToList());
|
|
|
|
|
}
|
|
|
|
|
MainPageTipMessage = $"新容器入库 [{res.GetMsg()}]";
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
{
|
|
|
|
|
Thread.Sleep(3000);
|
|
|
|
|
CsbResult res = csbHandleBusiness.receContainerStorageByCsb(TrackNo, "1");
|
|
|
|
|
|
|
|
|
|
Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
if (res.IsSuccess)
|
|
|
|
|
{
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
{
|
|
|
|
|
MainPageTipMessage = $"新容器入库反馈接口,[{res.GetMsg()}]";
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
Thread.Sleep(3000);
|
|
|
|
|
CsbResult res = csbHandleBusiness.receContainerStorageByCsb(TrackNo, "1");
|
|
|
|
|
|
|
|
|
|
Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
{
|
|
|
|
|
MainPageTipMessage = $"新容器入库反馈接口,[{res.GetMsg()}]";
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
////取出托盘号并调用接口
|
|
|
|
|
//var palletInfo = labelItems.FirstOrDefault();
|
|
|
|
|
//if (palletInfo == null)
|
|
|
|
|
//{
|
|
|
|
|
// MessageBox.Show("请先放包裹读条码!");
|
|
|
|
|
// return;
|
|
|
|
|
//}
|
|
|
|
|
//else
|
|
|
|
|
//{
|
|
|
|
|
// CsbResult res = csbHandleBusiness.scanAnyContainerCodeByCsb(palletInfo.result);
|
|
|
|
|
// MessageBox.Show("新容器入库" + res.message);
|
|
|
|
|
//}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
else if (workModelParam == 2) //封发-按调拨单
|
|
|
|
|
{
|
|
|
|
@ -497,20 +488,25 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
|
|
|
|
|
MainPageTipMessage = $"封发-按调拨单 [{res.GetMsg()}]";
|
|
|
|
|
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
{ //若干秒以后调反馈接口,确认是否和实际相符
|
|
|
|
|
Thread.Sleep(3000);
|
|
|
|
|
if (res.IsSuccess)
|
|
|
|
|
{
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
{ //若干秒以后调反馈接口,确认是否和实际相符
|
|
|
|
|
|
|
|
|
|
CsbResult res = csbHandleBusiness.containerScanSealResultByCsb(TransferOrderInfoItem.ffjhNo, opBatch);
|
|
|
|
|
Thread.Sleep(3000);
|
|
|
|
|
|
|
|
|
|
CsbResult res = csbHandleBusiness.containerScanSealResultByCsb(TransferOrderInfoItem.ffjhNo, opBatch);
|
|
|
|
|
|
|
|
|
|
Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
{
|
|
|
|
|
MainPageTipMessage = $"封发-按调拨单反馈接口,[{res.GetMsg()}]";
|
|
|
|
|
// 如果需要弹出消息框,也需要在 UI 线程调用 MessageBox
|
|
|
|
|
// MessageBox.Show($"封发-按调拨单反馈接口,[{res.GetMsg()}]");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
Application.Current.Dispatcher.Invoke(() =>
|
|
|
|
|
{
|
|
|
|
|
MainPageTipMessage = $"封发-按调拨单反馈接口,[{res.GetMsg()}]";
|
|
|
|
|
// 如果需要弹出消息框,也需要在 UI 线程调用 MessageBox
|
|
|
|
|
// MessageBox.Show($"封发-按调拨单反馈接口,[{res.GetMsg()}]");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
@ -532,56 +528,61 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
MainPageTipMessage = $"封发-按调拨单 [{res.GetMsg()}]";
|
|
|
|
|
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
if (res.IsSuccess)
|
|
|
|
|
{
|
|
|
|
|
// 五、6.10反馈接收结果(利用上一步的opBatch)
|
|
|
|
|
Thread.Sleep(3000);
|
|
|
|
|
CsbResult res1 = csbHandleBusiness.containerScanSealResultByCsb(TransferOrderInfoItem.ffjhNo, opBatch);
|
|
|
|
|
MainPageTipMessage = $"封发-按调拨单反馈接口,[{res1.GetMsg()}]";
|
|
|
|
|
|
|
|
|
|
//六、6.12 效验发运计划(利用上一步的opBatch)
|
|
|
|
|
string stationOrgCode = Institution != null ? Institution.stationOrgCode : "";
|
|
|
|
|
string stationOrgName = Institution != null ? Institution.stationOrgName : "";
|
|
|
|
|
CsbResult res2 = csbHandleBusiness.tranPlanCheckByCsb(_transferOrderInfo.ffjhNo, opBatch, stationOrgCode, stationOrgName);
|
|
|
|
|
MainPageTipMessage = "校验发运计划结果:" + res2.GetMsg();
|
|
|
|
|
if (res2.code == "200")
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
{
|
|
|
|
|
// 七、6.13.容器直连配发-开始配发
|
|
|
|
|
|
|
|
|
|
CsbResult res3 = csbHandleBusiness.containerAllotByCsb(TransferOrderInfoItem.ffjhNo, opBatch);
|
|
|
|
|
MainPageTipMessage = $"库存容器封发配发 -- 6.13.容器直连配发-开始配发 [{res3.GetMsg()}]";
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
// 五、6.10反馈接收结果(利用上一步的opBatch)
|
|
|
|
|
Task.Delay(3000);
|
|
|
|
|
CsbResult res1 = csbHandleBusiness.containerScanSealResultByCsb(TransferOrderInfoItem.ffjhNo, opBatch);
|
|
|
|
|
MainPageTipMessage = $"封发-按调拨单反馈接口,[{res1.GetMsg()}]";
|
|
|
|
|
|
|
|
|
|
if(!res1.IsSuccess) return;
|
|
|
|
|
|
|
|
|
|
//六、6.12 效验发运计划(利用上一步的opBatch)
|
|
|
|
|
string stationOrgCode = Institution != null ? Institution.stationOrgCode : "";
|
|
|
|
|
string stationOrgName = Institution != null ? Institution.stationOrgName : "";
|
|
|
|
|
CsbResult res2 = csbHandleBusiness.tranPlanCheckByCsb(_transferOrderInfo.ffjhNo, opBatch, stationOrgCode, stationOrgName);
|
|
|
|
|
MainPageTipMessage = "校验发运计划结果:" + res2.GetMsg();
|
|
|
|
|
if (res2.IsSuccess)
|
|
|
|
|
{
|
|
|
|
|
Task.Delay(3000);
|
|
|
|
|
// Thread.Sleep(3000);
|
|
|
|
|
//八、反馈接收接口,确认是否和实际相符
|
|
|
|
|
// 七、6.13.容器直连配发-开始配发
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 3; i++)
|
|
|
|
|
CsbResult res3 = csbHandleBusiness.containerAllotByCsb(TransferOrderInfoItem.ffjhNo, opBatch);
|
|
|
|
|
MainPageTipMessage = $"库存容器封发配发 -- 6.13.容器直连配发-开始配发 [{res3.GetMsg()}]";
|
|
|
|
|
if (res3.IsSuccess)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
Task.Delay(3000);
|
|
|
|
|
// Thread.Sleep(3000);
|
|
|
|
|
//八、反馈接收接口,确认是否和实际相符
|
|
|
|
|
|
|
|
|
|
for (int i = 0; i < 3; i++)
|
|
|
|
|
{
|
|
|
|
|
CsbResult res4 = csbHandleBusiness.containerAllotResultByCsb(TransferOrderInfoItem.ffjhNo, opBatch);
|
|
|
|
|
MainPageTipMessage = $"八、反馈接收接口,确认是否和实际相符[{res4.GetMsg()}]";
|
|
|
|
|
if (res4.IsSuccess)
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
CsbResult res4 = csbHandleBusiness.containerAllotResultByCsb(TransferOrderInfoItem.ffjhNo, opBatch);
|
|
|
|
|
MainPageTipMessage = $"八、反馈接收接口,确认是否和实际相符[{res4.GetMsg()}]";
|
|
|
|
|
if (res4.IsSuccess)
|
|
|
|
|
{
|
|
|
|
|
break;
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
break;
|
|
|
|
|
logger.Info(ex.Message);
|
|
|
|
|
Task.Delay(3000);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
catch (Exception ex)
|
|
|
|
|
{
|
|
|
|
|
logger.Info(ex.Message);
|
|
|
|
|
Task.Delay(3000);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|