sql+=string.Format(@"update ICSWareHouseLotInfo set Quantity=Quantity+'{0}',MUSER='{1}',MUSERName='{2}' where LotNo='{3}' and WorkPoint='{4}'",jo["Quantity"].ToString(),MUSER,MUSERNAME,jo["LotNo"].ToString(),WorkPoint);
sql+=string.Format(@"update ICSMOIssue set IssueQuantity =IssueQuantity-'{0}' where IssueCode='{1}' and Sequence='{2}' and WorkPoint='{3}' and Type='1' and Status='2'",jo["Quantity"].ToString(),jo["TransCode"].ToString(),jo["TransSequence"].ToString(),WorkPoint);
sql+=string.Format(@"update ICSWareHouseLotInfoLog set EATTRIBUTE1 ='1' where ID='{0}' and WorkPoint='{1}'",jo["ID"].ToString(),WorkPoint);
sql+=string.Format(@"delete from ICSWareHouseLotInfo where LotNo='{0}' and WorkPoint='{1}'",jo["LotNo"].ToString(),WorkPoint);
sql+=string.Format(@" update a set IssueQuantity =IssueQuantity-'{0}' from ICSMOPick a left join ICSMO b on a.MODetailID=b.MODetailID and a.WorkPoint=b.WorkPoint
sql+=string.Format(@"update ICSWareHouseLotInfoLog set EATTRIBUTE1 ='1' where ID='{0}' and WorkPoint='{1}'",MUSER,MUSERNAME,jo["ID"].ToString(),WorkPoint);