|
|
|
@ -124,8 +124,9 @@ namespace Khd.Core.Wcs.Wcs
|
|
|
|
List<MesBaseBarcodeInfo> mesBasePalletInfos = dbContext.MesBaseBarcodeInfo
|
|
|
|
List<MesBaseBarcodeInfo> mesBasePalletInfos = dbContext.MesBaseBarcodeInfo
|
|
|
|
.Where(t => t.materialId == wcsTask.materialId)
|
|
|
|
.Where(t => t.materialId == wcsTask.materialId)
|
|
|
|
.Where(t => t.saleOrderId == mesBaseBarcodeInfo.saleOrderId)
|
|
|
|
.Where(t => t.saleOrderId == mesBaseBarcodeInfo.saleOrderId)
|
|
|
|
|
|
|
|
.Where(t => t.palletInfoCode != null)
|
|
|
|
.Where(t => containerCodes.Contains(t.palletInfoCode)).ToList();//深库位的托盘的物料等于当前任务的物料
|
|
|
|
.Where(t => containerCodes.Contains(t.palletInfoCode)).ToList();//深库位的托盘的物料等于当前任务的物料
|
|
|
|
|
|
|
|
mesBasePalletInfos.RemoveAll(t => t.palletInfoCode == null);
|
|
|
|
var bill = from a in mesBasePalletInfos
|
|
|
|
var bill = from a in mesBasePalletInfos
|
|
|
|
join b in wmsBaseLocations
|
|
|
|
join b in wmsBaseLocations
|
|
|
|
.Where(t => t.locDeep == 1 && mesBaseBarcodeInfo.completeFlag == "0" ? t.returnFlag == "1" : t.returnFlag == "0") on a.palletInfoCode equals b.containerCode
|
|
|
|
.Where(t => t.locDeep == 1 && mesBaseBarcodeInfo.completeFlag == "0" ? t.returnFlag == "1" : t.returnFlag == "0") on a.palletInfoCode equals b.containerCode
|
|
|
|
@ -162,8 +163,9 @@ namespace Khd.Core.Wcs.Wcs
|
|
|
|
bool hasLocation = wmsBaseLocations
|
|
|
|
bool hasLocation = wmsBaseLocations
|
|
|
|
.Where(t => t.locRow == (wmsBaseLocation.locRow % 2 == 1 ? (wmsBaseLocation.locRow + 1) : (wmsBaseLocation.locRow - 1)))
|
|
|
|
.Where(t => t.locRow == (wmsBaseLocation.locRow % 2 == 1 ? (wmsBaseLocation.locRow + 1) : (wmsBaseLocation.locRow - 1)))
|
|
|
|
.Where(t => t.locColumn == wmsBaseLocation.locColumn)
|
|
|
|
.Where(t => t.locColumn == wmsBaseLocation.locColumn)
|
|
|
|
|
|
|
|
.Where(t => !string.IsNullOrEmpty(t.containerCode) || t.locationStatus != "1")
|
|
|
|
.Any();
|
|
|
|
.Any();
|
|
|
|
if (!hasLocation)
|
|
|
|
if (hasLocation)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
canNotIn.Add(wmsBaseLocation.locationCode);
|
|
|
|
canNotIn.Add(wmsBaseLocation.locationCode);
|
|
|
|
Console.WriteLine(DateTime.Now + $":目标库位{canNotIn.Join(",")}的浅库位库位状态异常,无法入库");
|
|
|
|
Console.WriteLine(DateTime.Now + $":目标库位{canNotIn.Join(",")}的浅库位库位状态异常,无法入库");
|
|
|
|
|