|
@ -290,7 +290,7 @@ namespace ICSSoft.DataProject |
|
|
/// <param name="Quantity"></param>
|
|
|
/// <param name="Quantity"></param>
|
|
|
/// <param name="WorkPoint"></param>
|
|
|
/// <param name="WorkPoint"></param>
|
|
|
/// <param name="cmd"></param>
|
|
|
/// <param name="cmd"></param>
|
|
|
public static void DeliveryNoticeInForHG(string DocNO, string TransLine, string WorkPoint, SqlCommand cmd, Dictionary<string, string> language,string quantity) |
|
|
|
|
|
|
|
|
public static void DeliveryNoticeInForHG(string DocNO, string TransLine, string WorkPoint, SqlCommand cmd, Dictionary<string, string> language, string quantity) |
|
|
{ |
|
|
{ |
|
|
try |
|
|
try |
|
|
{ |
|
|
{ |
|
@ -386,12 +386,14 @@ namespace ICSSoft.DataProject |
|
|
GROUP BY A.DNCode,A.WorkPoint";
|
|
|
GROUP BY A.DNCode,A.WorkPoint";
|
|
|
sql = string.Format(sql, Identification); |
|
|
sql = string.Format(sql, Identification); |
|
|
DataTable dt = DBHelper.SQlReturnData(sql, cmd); |
|
|
DataTable dt = DBHelper.SQlReturnData(sql, cmd); |
|
|
if (dt.Rows.Count > 1) |
|
|
|
|
|
{ |
|
|
|
|
|
throw new Exception(language.GetNameByCode("WMSAPIInfo202"));//单次提交单据数量卡控(只允许一张单据)
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
//if (dt.Rows.Count > 1)
|
|
|
|
|
|
//{
|
|
|
|
|
|
// throw new Exception(language.GetNameByCode("WMSAPIInfo202"));//单次提交单据数量卡控(只允许一张单据)
|
|
|
|
|
|
//}
|
|
|
|
|
|
log.Info("采购上架传入SAP数据:" + JsonConvert.SerializeObject(dt)); |
|
|
for (int i = 0; i < dt.Rows.Count; i++) |
|
|
for (int i = 0; i < dt.Rows.Count; i++) |
|
|
{ |
|
|
{ |
|
|
|
|
|
log.Info("采购上架传入SAP数据:" + JsonConvert.SerializeObject(dt.Rows)); |
|
|
string chksql = @"select SUM(Quantity) AS Quantity,SUM(RCVQuantity) AS RCVQuantity from ICSDeliveryNotice
|
|
|
string chksql = @"select SUM(Quantity) AS Quantity,SUM(RCVQuantity) AS RCVQuantity from ICSDeliveryNotice
|
|
|
where DNCode='{0}' and WorkPoint='{1}' |
|
|
where DNCode='{0}' and WorkPoint='{1}' |
|
|
GROUP BY DNCode,WorkPoint";
|
|
|
GROUP BY DNCode,WorkPoint";
|
|
@ -428,6 +430,8 @@ namespace ICSSoft.DataProject |
|
|
{ |
|
|
{ |
|
|
IsSuccess = "N"; |
|
|
IsSuccess = "N"; |
|
|
ErrorMessage += result.L_MESSAGE; |
|
|
ErrorMessage += result.L_MESSAGE; |
|
|
|
|
|
log.Error("采购上架失败数据:" + JsonConvert.SerializeObject(dt.Rows) + "," + ErrorMessage); |
|
|
|
|
|
break; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
if (IsSuccess == "N") |
|
|
if (IsSuccess == "N") |
|
|