|
@ -4893,6 +4893,16 @@ a.ExtensionID |
|
|
foreach (var itemInfo in item.detail) |
|
|
foreach (var itemInfo in item.detail) |
|
|
{ |
|
|
{ |
|
|
//出库
|
|
|
//出库
|
|
|
|
|
|
string chekksql = @"select c.EATTRIBUTE1 FROM ICSMOPick a
|
|
|
|
|
|
INNER JOIN ICSMO b ON a.MODetailID=b.MODetailID AND a.WorkPoint=b.WorkPoint |
|
|
|
|
|
INNER JOIN ICSInventory c on a.InvCode=c.InvCode and a.WorkPoint=c.WorkPoint |
|
|
|
|
|
WHERE b.MOCode='{0}' AND b.Sequence+'~'+a.Sequence='{3}' AND a.WorkPoint='{1}' and c.AmountEnable='1'";
|
|
|
|
|
|
chekksql = string.Format(chekksql, item.TransCode, item.WorkPoint, itemInfo.CurrentQuantity, item.TransSequence); |
|
|
|
|
|
DataTable dta = DBHelper.SQlReturnData(chekksql, cmd); |
|
|
|
|
|
if (dta.Rows.Count > 0) |
|
|
|
|
|
{ |
|
|
|
|
|
itemInfo.CurrentQuantity = (decimal.Parse(itemInfo.CurrentQuantity) * decimal.Parse(dta.Rows[0]["EATTRIBUTE1"].ToString())).ToString(); |
|
|
|
|
|
} |
|
|
printTable = ICSWareHouseLotInfoService.AMWareHouseLotInfoDown(Identification, item.TransCode, item.TransSequence, itemInfo.LotNo, itemInfo.CurrentQuantity, |
|
|
printTable = ICSWareHouseLotInfoService.AMWareHouseLotInfoDown(Identification, item.TransCode, item.TransSequence, itemInfo.LotNo, itemInfo.CurrentQuantity, |
|
|
item.User, item.WorkPoint, "3", TransTypeEnum.MOIssueDoc.GetDescription<DBValue>(), cmd, language, itemInfo.LogID, MergeID); |
|
|
item.User, item.WorkPoint, "3", TransTypeEnum.MOIssueDoc.GetDescription<DBValue>(), cmd, language, itemInfo.LogID, MergeID); |
|
|
} |
|
|
} |
|
@ -4908,7 +4918,17 @@ a.ExtensionID |
|
|
foreach (var itemInfo in item.detail) |
|
|
foreach (var itemInfo in item.detail) |
|
|
{ |
|
|
{ |
|
|
//出库
|
|
|
//出库
|
|
|
printTable = ICSWareHouseLotInfoService.WareHouseLotInfoDown(Identification, item.TransCode, item.TransSequence, itemInfo.LotNo, itemInfo.CurrentQuantity, |
|
|
|
|
|
|
|
|
//出库
|
|
|
|
|
|
string chekksql = @"select c.EATTRIBUTE1 FROM ICSSDN a
|
|
|
|
|
|
INNER JOIN ICSInventory c on a.InvCode=c.InvCode and a.WorkPoint=c.WorkPoint |
|
|
|
|
|
WHERE a.SDNCode='{0}' AND a.Sequence='{2}' AND a.WorkPoint='{1}' and c.AmountEnable='1'";
|
|
|
|
|
|
chekksql = string.Format(chekksql, item.TransCode, item.WorkPoint, item.TransSequence); |
|
|
|
|
|
DataTable dta = DBHelper.SQlReturnData(chekksql, cmd); |
|
|
|
|
|
if (dta.Rows.Count > 0) |
|
|
|
|
|
{ |
|
|
|
|
|
itemInfo.CurrentQuantity = (decimal.Parse(itemInfo.CurrentQuantity) * decimal.Parse(dta.Rows[0]["EATTRIBUTE1"].ToString())).ToString(); |
|
|
|
|
|
} |
|
|
|
|
|
printTable = ICSWareHouseLotInfoService.AMWareHouseLotInfoDown(Identification, item.TransCode, item.TransSequence, itemInfo.LotNo, itemInfo.CurrentQuantity, |
|
|
item.User, item.WorkPoint, "3", TransTypeEnum.SalesShipmentDoc.GetDescription<DBValue>(), cmd, language, itemInfo.LogID, MergeID); |
|
|
item.User, item.WorkPoint, "3", TransTypeEnum.SalesShipmentDoc.GetDescription<DBValue>(), cmd, language, itemInfo.LogID, MergeID); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|