master
nodyang@aliyun.com 1 month ago
parent 8a4b5f5db8
commit cec9fb94f2

@ -425,7 +425,8 @@ namespace SlnMesnac.RfidUpload.Business
}; };
string jsonString = jsonObject.ToString(); string jsonString = jsonObject.ToString();
var str = webApiClientApp.UploadAsync("tranPlanCheckByCsb", "TdjContainerAllotQuery", jsonString, "容器直连配发-校验发运计划"); var str = webApiClientApp.UploadAsync("tranPlanCheckByCsb", "TdjContainerAllotQuery",
jsonString, "容器直连配发-校验发运计划");
res = JsonConvert.DeserializeObject<CsbResult>(str); res = JsonConvert.DeserializeObject<CsbResult>(str);
return res; return res;

@ -0,0 +1,11 @@
using System;
using System.Collections.Generic;
using System.Text;
namespace SlnMesnac.RfidUpload.Common
{
public class OpBatchManager
{
public static string BathNo { get; set; }
}
}

@ -130,9 +130,9 @@ namespace SlnMesnac.RfidUpload.UI
var institution = button.DataContext as Institution; var institution = button.DataContext as Institution;
if (institution != null) if (institution != null)
{ {
string opBatch = Guid.NewGuid().ToString("N").Substring(0, 20); string opBatch = OpBatchManager.BathNo;
CsbResult res = csbHandleBusiness.tranPlanCheckByCsb(_transferOrderInfo.ffjhNo, opBatch, institution.stationOrgCode,institution.stationOrgName); CsbResult res = csbHandleBusiness.tranPlanCheckByCsb(_transferOrderInfo.ffjhNo, opBatch, institution.stationOrgCode,institution.stationOrgName);
// MessageBox.Show($"执行配发 6.12.容器直连配发-校验发运计划 容器封发完毕后直接向指定机构进行容器配发 :{res.message}"); MessageBox.Show($"执行配发 6.12.容器直连配发-校验发运计划 容器封发完毕后直接向指定机构进行容器配发 :{res.message}");
if (res.code == "200") if (res.code == "200")
{ {
RefreshSubmitVerifyEvent?.Invoke(3, res.GetMsg(), _transferOrderInfo); RefreshSubmitVerifyEvent?.Invoke(3, res.GetMsg(), _transferOrderInfo);

@ -436,7 +436,7 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
MessageBox.Show($"封发-按调拨单 [{res.GetMsg()}]"); MessageBox.Show($"封发-按调拨单 [{res.GetMsg()}]");
OpBatchManager.BathNo = opBatch;
Task.Run(() => Task.Run(() =>
{ //若干秒以后调反馈接口,确认是否和实际相符 { //若干秒以后调反馈接口,确认是否和实际相符
@ -450,7 +450,7 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
}else if(WorkModelParam == 3) //库存容器封发配发 -- 6.13.容器直连配发-开始配发 }else if(WorkModelParam == 3) //库存容器封发配发 -- 6.13.容器直连配发-开始配发
{ {
string opBatch = Guid.NewGuid().ToString("N").Substring(0, 20); string opBatch = OpBatchManager.BathNo;
CsbResult res = csbHandleBusiness.containerAllotByCsb(TransferOrderInfoItem.ffjhNo,opBatch); CsbResult res = csbHandleBusiness.containerAllotByCsb(TransferOrderInfoItem.ffjhNo,opBatch);
MessageBox.Show($"库存容器封发配发 -- 6.13.容器直连配发-开始配发 [{res.GetMsg()}]"); MessageBox.Show($"库存容器封发配发 -- 6.13.容器直连配发-开始配发 [{res.GetMsg()}]");
Task.Run(() => Task.Run(() =>

Loading…
Cancel
Save