|
|
|
@ -137,7 +137,16 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
get { return _mainPageDbdh; }
|
|
|
|
|
set { _mainPageDbdh = value; RaisePropertyChanged(() => MainPageDbdh); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 主界面当前封发计划
|
|
|
|
|
/// </summary>
|
|
|
|
|
private string _mainPageFfjhNo = "";
|
|
|
|
|
public string MainPageFfjhNo
|
|
|
|
|
{
|
|
|
|
|
get { return _mainPageFfjhNo; }
|
|
|
|
|
set { _mainPageFfjhNo = value; RaisePropertyChanged(() => MainPageFfjhNo); }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// 工作模式
|
|
|
|
@ -315,7 +324,7 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
LabelTest();
|
|
|
|
|
// LabelTest();
|
|
|
|
|
//_serialPortBusiness.OpenSerialPort();
|
|
|
|
|
|
|
|
|
|
this.GetParity(out int parity);
|
|
|
|
@ -399,7 +408,7 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
CsbResult res = csbHandleBusiness.scanAnyContainerCodeByCsb(palletInfo.result);
|
|
|
|
|
MessageBox.Show(res.message);
|
|
|
|
|
MessageBox.Show("新容器入库"+res.message);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else if (workModelParam == 2) //封发-按调拨单
|
|
|
|
@ -408,28 +417,29 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
var strList = info.Select(x => x.result).ToList();
|
|
|
|
|
string opBatch = Guid.NewGuid().ToString("N").Substring(0, 20);
|
|
|
|
|
CsbResult res = csbHandleBusiness.containerScanSealByCsb(TransferOrderInfoItem.ffjhNo, System.Guid.NewGuid().ToString("N").Substring(0, 20), TransferOrderInfoItem.ffjhscrq, opBatch, jsonChange.ModeToJson(strList));
|
|
|
|
|
MessageBox.Show(res.message);
|
|
|
|
|
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.message);
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}else if(WorkModelParam == 3) //库存容器封发配发 -- 6.13.容器直连配发-开始配发
|
|
|
|
|
{
|
|
|
|
|
string opBatch = Guid.NewGuid().ToString("N").Substring(0, 20);
|
|
|
|
|
csbHandleBusiness.containerAllotByCsb(TransferOrderInfoItem.ffjhNo,opBatch);
|
|
|
|
|
CsbResult res = csbHandleBusiness.containerAllotByCsb(TransferOrderInfoItem.ffjhNo,opBatch);
|
|
|
|
|
MessageBox.Show("库存容器封发配发 -- 6.13.容器直连配发-开始配发" + res.message);
|
|
|
|
|
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.message);
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
@ -505,13 +515,13 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
if (instructionInfo == null) return;
|
|
|
|
|
App.Current.Dispatcher.BeginInvoke((Action)(() =>
|
|
|
|
|
{
|
|
|
|
|
instructionInfo.no = No++;
|
|
|
|
|
|
|
|
|
|
int no =labelItems.Count;
|
|
|
|
|
DataGridEnt dataGridEnt = new DataGridEnt();
|
|
|
|
|
dataGridEnt.no = ++no;
|
|
|
|
|
dataGridEnt.dbdh = _transferOrderInfo.dbdh;
|
|
|
|
|
dataGridEnt.result = instructionInfo.data;
|
|
|
|
|
labelItems.Add(dataGridEnt);
|
|
|
|
|
|
|
|
|
|
dataGridEnt.recordtime = DateTime.Now;
|
|
|
|
|
labelItems.Add(dataGridEnt);
|
|
|
|
|
LabelInfoDataGrid = labelItems;
|
|
|
|
|
|
|
|
|
|
LabelCountParam += 1;
|
|
|
|
@ -623,6 +633,7 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
|
|
|
|
|
if (transferOrderInfo != null)
|
|
|
|
|
{
|
|
|
|
|
MainPageDbdh = transferOrderInfo.dbdh;
|
|
|
|
|
MainPageFfjhNo = transferOrderInfo.ffjhNo;
|
|
|
|
|
TransferOrderInfoItem = transferOrderInfo;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|