|
|
@ -5546,12 +5546,29 @@ namespace ICSSoft.DataProject |
|
|
|
DBHelper.ExecuteNonQuery(sql, cmd); |
|
|
|
|
|
|
|
BusinessCode = TransTypeEnum.OneStepTransferDocIn.GetDescription<DBValue>(); |
|
|
|
//更新源头单据信息
|
|
|
|
ICSWareHouseService.OneStepTransferDocIn(item.TransCode, item.TransSequence, item.WorkPoint, itemInfo.CurrentQuantity, cmd, language); |
|
|
|
#region 根据占料获取源头单据行信息
|
|
|
|
string docsql = @"select TransSequence,Quantity from ICSWareHouseLotInfoLog
|
|
|
|
where TransType='15' AND TransCode='{0}' AND LotNo='{1}' |
|
|
|
AND WorkPoint='{2}'";
|
|
|
|
docsql = string.Format(docsql, item.TransCode, itemInfo.LotNo, item.WorkPoint); |
|
|
|
DataTable docdt = DBHelper.SQlReturnData(docsql, cmd); |
|
|
|
if (docdt.Rows.Count == 0) |
|
|
|
{ |
|
|
|
throw new Exception("扫描条码:" + itemInfo.LotNo + "未查询到占料信息!"); |
|
|
|
} |
|
|
|
#endregion
|
|
|
|
else |
|
|
|
{ |
|
|
|
foreach (DataRow dr in docdt.Rows) |
|
|
|
{ |
|
|
|
//更新源头单据信息
|
|
|
|
ICSWareHouseService.OneStepTransferDocIn(item.TransCode, dr["TransSequence"].ToString(), item.WorkPoint, dr["Quantity"].ToString(), cmd, language); |
|
|
|
|
|
|
|
//更新条码信息
|
|
|
|
printTable = ICSWareHouseLotInfoService.WareHouseLotInfoTransfer(Identification, item.TransCode, item.TransSequence, itemInfo.WarehouseCode, itemInfo.LocationCode, |
|
|
|
itemInfo.LotNo, itemInfo.CurrentQuantity, item.User, item.WorkPoint, item.TransType, TransTypeEnum.OneStepTransferDocIn.GetDescription<DBValue>(), cmd, language, MergeID); |
|
|
|
//更新条码信息
|
|
|
|
printTable = ICSWareHouseLotInfoService.WareHouseLotInfoTransfer(Identification, item.TransCode, dr["TransSequence"].ToString(), itemInfo.WarehouseCode, itemInfo.LocationCode, |
|
|
|
itemInfo.LotNo, dr["Quantity"].ToString(), item.User, item.WorkPoint, item.TransType, TransTypeEnum.OneStepTransferDocIn.GetDescription<DBValue>(), cmd, language, MergeID); |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
//上传ERP
|
|
|
|