|
|
@ -135,6 +135,17 @@ namespace SlnMesnac.WPF.ViewModel
|
|
|
|
MessageBox.Show("该库位状态异常,禁止出");
|
|
|
|
MessageBox.Show("该库位状态异常,禁止出");
|
|
|
|
return;
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if (targetLocation.LocDeep == 1)
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
int? row = targetLocation.LocRow %2==0? targetLocation.LocRow - 1 : targetLocation.LocRow +1;
|
|
|
|
|
|
|
|
WmsBaseLocation? shallowLocation = sqlSugarClient.AsTenant().GetConnection("mes").Queryable<WmsBaseLocation>().Where(it => it.WarehouseId == 311 && it.LocRow==row && it.LocColumn==targetLocation.LocColumn).First();
|
|
|
|
|
|
|
|
if (shallowLocation != null && shallowLocation.LocationStatus != "1")
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
MessageBox.Show("当前库位对应的浅库位状态异常,禁止出库");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
WmsRawPreferredOut wmsRawPreferredOut = new WmsRawPreferredOut();
|
|
|
|
WmsRawPreferredOut wmsRawPreferredOut = new WmsRawPreferredOut();
|
|
|
|
wmsRawPreferredOut.WarehouseId = wmsRawStock.WarehouseId;
|
|
|
|
wmsRawPreferredOut.WarehouseId = wmsRawStock.WarehouseId;
|
|
|
|
wmsRawPreferredOut.WarehouseFloor = targetLocation.WarehouseFloor;
|
|
|
|
wmsRawPreferredOut.WarehouseFloor = targetLocation.WarehouseFloor;
|
|
|
|