|
@ -4937,7 +4937,12 @@ namespace ICSSoft.DataProject |
|
|
foreach (var itemInfo in item.detail) |
|
|
foreach (var itemInfo in item.detail) |
|
|
{ |
|
|
{ |
|
|
int len = itemInfo.SelectLevel.Length; |
|
|
int len = itemInfo.SelectLevel.Length; |
|
|
sql = @"INSERT INTO ICSCheck (ID,CheckCode,SelectLevel,Status,Quantity,Amount,MUSER,MUSERName,MTIME,WorkPoint)
|
|
|
|
|
|
|
|
|
sql = @"IF NOT EXISTS(SELECT id FROM ICSWareHouseLotInfo WHERE SUBSTRING(LocationCode,1,{4}) = '{1}')
|
|
|
|
|
|
BEGIN |
|
|
|
|
|
RAISERROR('" + language.GetNameByCode("WMSAPIInfo460") + @"',16,1); |
|
|
|
|
|
RETURN |
|
|
|
|
|
END |
|
|
|
|
|
INSERT INTO ICSCheck (ID,CheckCode,SelectLevel,Status,Quantity,Amount,MUSER,MUSERName,MTIME,WorkPoint) |
|
|
SELECT NEWID(),'{0}','{1}','2',SUM(a.Quantity),0,b.F_Account,b.F_RealName,GETDATE(),b.F_Location |
|
|
SELECT NEWID(),'{0}','{1}','2',SUM(a.Quantity),0,b.F_Account,b.F_RealName,GETDATE(),b.F_Location |
|
|
FROM ICSWareHouseLotInfo a |
|
|
FROM ICSWareHouseLotInfo a |
|
|
INNER JOIN Sys_SRM_User b ON b.F_Account='{2}' AND b.F_Location='{3}' |
|
|
INNER JOIN Sys_SRM_User b ON b.F_Account='{2}' AND b.F_Location='{3}' |
|
|