master
nodyang@aliyun.com 1 month ago
parent 8ee4349178
commit afe3251dc2

@ -64,6 +64,19 @@ namespace SlnMesnac.RfidUpload.Model.apiParam
return str as JObject;
}
public string GetMsg()
{
var job = GetRetBodyJObject();
if (job != null)
{
var s = job?["msg"]?.ToString();
var b = job?["status"].ToString();
return s +" "+ b??"";
}
return "";
}
public string GetRetBody()
{
JObject job = JObject.Parse(body);
@ -73,7 +86,7 @@ namespace SlnMesnac.RfidUpload.Model.apiParam
return str;
}
return "";
return message;
}
public string code { get; set; }

@ -102,6 +102,7 @@ namespace SlnMesnac.RfidUpload.TouchSocket
logger.Info($"Http请求的:[{reqName}]:[{guid}] => \r\n {str}");
logger.Info($"Http请求ParamStr的:[{reqName}]:[{guid}] => \r\n {paramStr}");
result = client.PostJson(appConfig.localUrl, container);
logger.Info($"Http返回的:[{reqName}]:[{guid}] => \r\n {result}");
}

@ -424,15 +424,17 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
TransferOrderInfoItem.ffjhscrq, batchNo.ToString(), enumerable.ToList());
}
MessageBox.Show($"封发-按调拨单 [{res.GetMsg()}]");
MessageBox.Show("封发-按调拨单"+res.message);
Task.Run(() =>
{ //若干秒以后调反馈接口,确认是否和实际相符
Thread.Sleep(3000);
string opBatch = Guid.NewGuid().ToString("N").Substring(0, 20);
CsbResult res = csbHandleBusiness.containerScanSealResultByCsb(TransferOrderInfoItem.ffjhNo, opBatch);
MessageBox.Show("封发-按调拨单--若干秒以后调反馈接口,确认是否和实际相符" + res.message);
MessageBox.Show($"封发-按调拨单--若干秒以后调反馈接口,确认是否和实际相符 [{res.GetMsg()}]");
});
@ -440,14 +442,14 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
{
string opBatch = Guid.NewGuid().ToString("N").Substring(0, 20);
CsbResult res = csbHandleBusiness.containerAllotByCsb(TransferOrderInfoItem.ffjhNo,opBatch);
MessageBox.Show("库存容器封发配发 -- 6.13.容器直连配发-开始配发" + res.message);
MessageBox.Show($"库存容器封发配发 -- 6.13.容器直连配发-开始配发 [{res.GetMsg()}]");
Task.Run(() =>
{
Thread.Sleep(3000);
//若干秒以后调反馈接口,确认是否和实际相符
string opBatch = Guid.NewGuid().ToString("N").Substring(0, 20);
CsbResult res = csbHandleBusiness.containerAllotResultByCsb(TransferOrderInfoItem.ffjhNo, opBatch);
MessageBox.Show("库存容器封发配发--若干秒以后调反馈接口,确认是否和实际相符" + res.message);
MessageBox.Show($"库存容器封发配发--若干秒以后调反馈接口,确认是否和实际相符[{res.GetMsg()}]");
});
}

@ -150,7 +150,7 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
_endDate = _endDate.Value.AddDays(1);
#region 正式启用
CsbResult res = csbHandleBusiness.transferOrderFfjhByCsb(_drj, _startDate.Value.ToString(), _endDate.Value.ToString());
MessageBox.Show("容器封发-获取调拨单和封发计划:" + res.message);
MessageBox.Show("容器封发-获取调拨单和封发计划:" + res.GetMsg());
if (res.code == "200")
{
@ -211,7 +211,7 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
CsbResult res = csbHandleBusiness.transferOrderFfjhCheckByCsb(transferOrderInfo.ffjhNo, transferOrderInfo.ffjhscrq);
if (res.code== "200")
{ //封发计划正常可封发
MessageBox.Show($"验证调拨单结果,status:{res.code};msg:{res.message};");
MessageBox.Show($"验证调拨单结果,[{res.GetMsg()}];");
SuccessEvent?.Invoke();
RefreshSubmitVerifyEvent?.Invoke(2, res.message,transferOrderInfo);

@ -100,13 +100,13 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
dbdh = _dbbh,
};
RefreshSubmitVerifyEvent?.Invoke(1, res.message, transferOrderInfo);
RefreshSubmitVerifyEvent?.Invoke(1, res.GetMsg(), transferOrderInfo);
_window.Close();
}
else
{
MessageBox.Show($"新容器入库-调拨单号验证失败,status:{res.code};msg:{res.message};");
MessageBox.Show($"新容器入库-调拨单号验证失败,status:{res.code};msg:{res.GetMsg()};");
}
}

Loading…
Cancel
Save