@ -7721,7 +7721,7 @@ WHERE WorkPoint='{0}' AND Quantity>ISNULL(TransferQuantity, 0) order by Transfer
{
//形态转换
sql . Append ( $ @ "UPDATE ICSWareHouseLotInfo SET InvCode='{afterInvCode}' WHERE LotNo='{data.LotNo}' AND WorkPoint='{item.WorkPoint}' AND InvCode='{beforInvCode}' AND WarehouseCode='{item.WHCode}';
UPDATE ICSWareHouseLotInfoLog SET InvCode = ' ' WHERE LotNo = ' { data . LotNo } ' AND WorkPoint = ' { item . WorkPoint } ' AND InvCode = ' { beforInvCode } ' ;
UPDATE ICSWareHouseLotInfoLog SET InvCode = ' { afterInvCode } ' WHERE LotNo = ' { data . LotNo } ' AND WorkPoint = ' { item . WorkPoint } ' AND InvCode = ' { beforInvCode } ' ;
UPDATE ICSInventoryLot SET InvCode = ' { afterInvCode } ' WHERE LotNo = ' { data . LotNo } ' AND InvCode = ' { beforInvCode } ' AND WorkPoint = ' { item . WorkPoint } ' AND ExtensionID = ' { beforExtensionID } ' ; ");
sql . Append ( $ @ "INSERT INTO [dbo].[ICSWareHouseLotInfoLog] ([ID], [Identification], [TransCode], [TransSequence], [LotNo], [InvCode], [FromWarehouseCode], [FromLocationCode], [ToWarehouseCode], [ToLocationCode], [Quantity], [Memo], [Lock], [TransType], [BusinessCode], [ERPUpload], [ERPID], [ERPDetailID], [ERPCode], [ERPSequence], [LogID], [MergeID], [MUSER], [MUSERName], [MTIME], [WorkPoint], [EATTRIBUTE1], [EATTRIBUTE2], [EATTRIBUTE3])
SELECT NEWID ( ) , NEWID ( ) , ' { item . TransCode } ' , ' { item . TransSequence } ' , ' { data . LotNo } ' , ' { beforInvCode } ' , { item . WHCode } , NULL , NULL , NULL , { data . Quantity } , NULL , '0' , N ' 1 0 ' , N ' 3 5 ' , '0' , NULL , NULL , NULL , NULL , NULL , NULL , f . F_Account , f . F_RealName , SYSDATETIME ( ) , ' { item . WorkPoint } ' , NULL , NULL , ' { beforExtensionID } ' FROM Sys_SRM_User f WHERE f . F_Account = ' { item . User } ' ; ");