|
|
|
|
@ -69,11 +69,17 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
|
MessageBox.Show("请输入入库库位");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
if (startCode == BoxCode)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(BoxCode !="" && BoxCode != null)
|
|
|
|
|
{
|
|
|
|
|
if (startCode == BoxCode || BoxCode.Substring(0,10) != "SHS0000000" || BoxCode.Length !=12)
|
|
|
|
|
{
|
|
|
|
|
MessageBox.Show("请检查格式!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (startCode == "异常库位3066")
|
|
|
|
|
{
|
|
|
|
|
@ -81,10 +87,10 @@ namespace SlnMesnac.WPF.Page
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
WmsBaseLocation? startLocation = SqlSugarClient.Queryable<WmsBaseLocation>().Where(it => it.LocationCode == startCode).First();
|
|
|
|
|
WmsPalletInfo? wmsPalletInfo = SqlSugarClient.Queryable<WmsPalletInfo>().InnerJoin<WmsBaseLocation>((x,y) => x.Amount == 0 && y.LocationCode == startCode).First();
|
|
|
|
|
WmsPalletInfo? wmsPalletInfo = SqlSugarClient.Queryable<WmsPalletInfo>().InnerJoin<WmsBaseLocation>((x,y) => x.Amount >= 0 && y.LocationCode == startCode && y.ContainerCode.Length>1 ).First();
|
|
|
|
|
|
|
|
|
|
if (wmsPalletInfo == null) {
|
|
|
|
|
MessageBox.Show("起点库位托盘未清空,无法入库!请检查!");
|
|
|
|
|
if (wmsPalletInfo != null && ForceWrite_CheckBox.IsChecked == false) {
|
|
|
|
|
MessageBox.Show("目标库位托盘未清空,无法入库!请检查!若需强制入库,请勾选右侧强制入库选项!");
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|