Browse Source

调整拣料信息‘

master
lilili 1 year ago
parent
commit
917714f8f4
  1. 4
      WMS-BS/NFine.Application/WMS/PickMaterialApp.cs

4
WMS-BS/NFine.Application/WMS/PickMaterialApp.cs

@ -1704,7 +1704,7 @@ left join (select distinct TransCode,TransType,WorkPoint from dbo.ICSWareHouseLo
RAISERROR('{lotNo}{transCode}{tableModel.Rows[i]["SAPSequence"]}',16,1); RAISERROR('{lotNo}{transCode}{tableModel.Rows[i]["SAPSequence"]}',16,1);
RETURN RETURN
END; END;
IF NOT EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo='{lotNo}' AND a.WorkPoint='{WorkPoint}' AND a.WarehouseCode='{whCode}' AND a.Quantity>A.LockQuantity+'{tableModel.Rows[i]["Quantity"]}')
IF NOT EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo='{lotNo}' AND a.WorkPoint='{WorkPoint}' AND a.WarehouseCode='{whCode}' AND a.Quantity>=A.LockQuantity+'{tableModel.Rows[i]["Quantity"]}')
BEGIN BEGIN
RAISERROR('{lotNo}',16,1); RAISERROR('{lotNo}',16,1);
RETURN RETURN
@ -2065,7 +2065,7 @@ left join (select distinct TransCode,TransType,WorkPoint from dbo.ICSWareHouseLo
} }
foreach (DataRow PickLog in table.Rows) foreach (DataRow PickLog in table.Rows)
{ {
pikTbLogsql += @"IF NOT EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo='{9}' AND a.WorkPoint='{8}' AND a.Quantity>A.LockQuantity+'{3}')
pikTbLogsql += @"IF NOT EXISTS(SELECT a.ID FROM ICSWareHouseLotInfo a WHERE a.LotNo='{9}' AND a.WorkPoint='{8}' AND a.Quantity>=A.LockQuantity+'{3}')
BEGIN BEGIN
RAISERROR('{9}', 16, 1); RAISERROR('{9}', 16, 1);

Loading…
Cancel
Save