change-区分库存容器分发配发、卸车容器分发配发界面

master
liuwf 1 month ago
parent a94967fbc5
commit a748602d24

@ -29,8 +29,15 @@ namespace SlnMesnac.RfidUpload.UI
private CsbHandleBusiness csbHandleBusiness = CsbHandleBusiness.Instance; private CsbHandleBusiness csbHandleBusiness = CsbHandleBusiness.Instance;
TransferOrderInfo _transferOrderInfo; TransferOrderInfo _transferOrderInfo;
public SelectRouterWindow(TransferOrderInfo transferOrderInfo) /// <summary>
/// 区分属于哪个界面
/// 由于库存容器分发配发与卸车容器分发配发使用同一个界面与viewmodel
/// BelongPage = 3表示库存容器分发配发BelongPage = 4表示卸车容器分发配发
public int BelongPage = 3;
public SelectRouterWindow(TransferOrderInfo transferOrderInfo,int _BelongPage)
{ {
BelongPage = _BelongPage;
_transferOrderInfo = transferOrderInfo; _transferOrderInfo = transferOrderInfo;
InitializeComponent(); InitializeComponent();
@ -149,7 +156,7 @@ namespace SlnMesnac.RfidUpload.UI
if (res.code == "200") if (res.code == "200")
{ {
//封发计划正常可封发 //封发计划正常可封发
RefreshSubmitVerifyEvent?.Invoke(3, res.GetMsg(), _transferOrderInfo,institution); RefreshSubmitVerifyEvent?.Invoke(BelongPage, res.GetMsg(), _transferOrderInfo,institution);
this.Close(); this.Close();
} }

@ -58,6 +58,12 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
public static event RefreshSubmitVerifyDelegate RefreshSubmitVerifyEvent; public static event RefreshSubmitVerifyDelegate RefreshSubmitVerifyEvent;
#endregion #endregion
/// <summary>
/// 区分属于哪个界面
/// 由于库存容器分发配发与卸车容器分发配发使用同一个界面与viewmodel
/// BelongPage = 3表示库存容器分发配发BelongPage = 4表示卸车容器分发配发
/// </summary>
public int BelongPage = 3;
public delegate void Success(); public delegate void Success();
@ -213,7 +219,7 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
[RelayCommand] [RelayCommand]
private void Execute(TransferOrderInfo transferOrderInfo) private void Execute(TransferOrderInfo transferOrderInfo)
{ {
SelectRouterWindow selectRouterWindow = new SelectRouterWindow(transferOrderInfo); SelectRouterWindow selectRouterWindow = new SelectRouterWindow(transferOrderInfo,BelongPage);
selectRouterWindow.ShowDialog(); selectRouterWindow.ShowDialog();
} }

@ -454,7 +454,7 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
} }
else if (WorkModelParam == 3) //库存容器封发配发 -- 6.13.容器直连配发-开始配发 else if (WorkModelParam == 3 || WorkModelParam == 4) //库存容器封发配发 -- 6.13.容器直连配发-开始配发
{ {
//四、6.9接收容器条码接口 //四、6.9接收容器条码接口
var info = labelItems.ToList(); var info = labelItems.ToList();
@ -571,12 +571,14 @@ namespace SlnMesnac.RfidUpload.UI.viewModel
} }
else if (WorkModel == 3) //库存容器封发配发 else if (WorkModel == 3) //库存容器封发配发
{ {
containerTransferOrderViewModel.BelongPage = 3;
ContainerTransferOrderWindow containerTransferOrderWindow = new ContainerTransferOrderWindow(containerTransferOrderViewModel); ContainerTransferOrderWindow containerTransferOrderWindow = new ContainerTransferOrderWindow(containerTransferOrderViewModel);
containerTransferOrderWindow.ShowDialog(); containerTransferOrderWindow.ShowDialog();
} }
else if (WorkModel == 4) //卸车容器封发配发 else if (WorkModel == 4) //卸车容器封发配发
{ {
containerTransferOrderViewModel.BelongPage = 4;
ContainerTransferOrderWindow containerTransferOrderWindow = new ContainerTransferOrderWindow(containerTransferOrderViewModel); ContainerTransferOrderWindow containerTransferOrderWindow = new ContainerTransferOrderWindow(containerTransferOrderViewModel);
containerTransferOrderWindow.ShowDialog(); containerTransferOrderWindow.ShowDialog();
}else if (WorkModel == 5) //退出 }else if (WorkModel == 5) //退出

Loading…
Cancel
Save