|
|
@ -4859,8 +4859,11 @@ namespace ICSSoft.DataProject |
|
|
|
itemInfo.LotNo, itemInfo.CurrentQuantity, item.User, item.WorkPoint, "14", TransTypeEnum.StepTransferApplicationIn.GetDescription<DBValue>(), cmd, language, MergeID); |
|
|
|
} |
|
|
|
} |
|
|
|
ICSWareHouseService.OneStepTransferDocInERP(TransTypeEnum.OneStepTransferDocIn.GetDescription(), Identification, cmd, language, BusinessCode); |
|
|
|
|
|
|
|
//上传ERP
|
|
|
|
if (Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["UploadERP"])) |
|
|
|
{ |
|
|
|
ICSWareHouseService.OneStepTransferDocInERP(TransTypeEnum.OneStepTransferDocIn.GetDescription(), Identification, cmd, language, BusinessCode); |
|
|
|
} |
|
|
|
if (!printTable.Equals("{}")) |
|
|
|
{ |
|
|
|
cmd.Transaction.Commit(); |
|
|
@ -4936,21 +4939,21 @@ namespace ICSSoft.DataProject |
|
|
|
item.TransCode = trans[1]; |
|
|
|
} |
|
|
|
//验证信息
|
|
|
|
sql = @"DECLARE @Status VARCHAR(10)
|
|
|
|
SELECT @Status=Status FROM ICSTransfer WHERE TransferNO='{0}' and WorkPoint='{1}' AND Type = '1' |
|
|
|
|
|
|
|
IF (@Status IS NULL) |
|
|
|
BEGIN |
|
|
|
RAISERROR('" + language.GetNameByCode("WMSAPIInfo067") + @"',16,1); |
|
|
|
RETURN |
|
|
|
END |
|
|
|
ELSE IF (@Status!='1') |
|
|
|
BEGIN |
|
|
|
RAISERROR('" + language.GetNameByCode("WMSAPIInfo068") + @"',16,1); |
|
|
|
RETURN |
|
|
|
END";
|
|
|
|
sql = string.Format(sql, item.TransCode, item.WorkPoint); |
|
|
|
DBHelper.ExecuteNonQuery(sql, cmd); |
|
|
|
//sql = @"DECLARE @Status VARCHAR(10)
|
|
|
|
// SELECT @Status=Status FROM ICSTransfer WHERE TransferNO='{0}' and WorkPoint='{1}' AND Type = '1'
|
|
|
|
|
|
|
|
// IF (@Status IS NULL)
|
|
|
|
// BEGIN
|
|
|
|
// RAISERROR('" + language.GetNameByCode("WMSAPIInfo067") + @"',16,1);
|
|
|
|
// RETURN
|
|
|
|
// END
|
|
|
|
// ELSE IF (@Status!='1')
|
|
|
|
// BEGIN
|
|
|
|
// RAISERROR('" + language.GetNameByCode("WMSAPIInfo068") + @"',16,1);
|
|
|
|
// RETURN
|
|
|
|
// END";
|
|
|
|
//sql = string.Format(sql, item.TransCode, item.WorkPoint);
|
|
|
|
//DBHelper.ExecuteNonQuery(sql, cmd);
|
|
|
|
|
|
|
|
foreach (var itemInfo in item.Detail) |
|
|
|
{ |
|
|
@ -4982,11 +4985,14 @@ namespace ICSSoft.DataProject |
|
|
|
|
|
|
|
//更新条码信息
|
|
|
|
printTable = ICSWareHouseLotInfoService.WareHouseLotInfoTransfer(Identification, item.TransCode, item.TransSequence, itemInfo.WarehouseCode, itemInfo.LocationCode, |
|
|
|
itemInfo.LotNo, itemInfo.CurrentQuantity, item.User, item.WorkPoint, "6", TransTypeEnum.OneStepTransferDocIn.GetDescription<DBValue>(), cmd, language, MergeID); |
|
|
|
itemInfo.LotNo, itemInfo.CurrentQuantity, item.User, item.WorkPoint, item.TransType, TransTypeEnum.OneStepTransferDocIn.GetDescription<DBValue>(), cmd, language, MergeID); |
|
|
|
} |
|
|
|
} |
|
|
|
ICSWareHouseService.OneStepTransferDocInERP(TransTypeEnum.OneStepTransferDocIn.GetDescription(), Identification, cmd, language, BusinessCode); |
|
|
|
|
|
|
|
//上传ERP
|
|
|
|
if (Convert.ToBoolean(System.Configuration.ConfigurationManager.AppSettings["UploadERP"])) |
|
|
|
{ |
|
|
|
ICSWareHouseService.OneStepTransferDocInERP(TransTypeEnum.OneStepTransferDocIn.GetDescription(), Identification, cmd, language, BusinessCode); |
|
|
|
} |
|
|
|
if (!printTable.Equals("{}")) |
|
|
|
{ |
|
|
|
cmd.Transaction.Commit(); |
|
|
|