Browse Source

no message

master
yangtm 3 days ago
parent
commit
610eb2a83e
  1. 14
      ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSPurchaseService.cs
  2. 4
      WMS-BS/NFine.Application/WMS/PickMaterialApp.cs

14
ICSSoft.WMS.WebAPI/ICSSoft.DataProject/ICSPurchaseService.cs

@ -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")

4
WMS-BS/NFine.Application/WMS/PickMaterialApp.cs

@ -1983,7 +1983,7 @@ left join (select distinct TransCode,TransType,WorkPoint from dbo.ICSWareHouseLo
var pikTbLogTime = DateTime.Now; var pikTbLogTime = DateTime.Now;
string pikTbLogsql = string.Empty; string pikTbLogsql = string.Empty;
List<string> DocNoList = new List<string>(); List<string> DocNoList = new List<string>();
if (Type == "2" || Type == "12" || Type == "5")
if (Type == "2" || Type == "12" || Type == "5" || Type == "10")
{ {
#region 货柜 #region 货柜
string InspectJosn = ""; string InspectJosn = "";
@ -2609,7 +2609,7 @@ a.Sequence,
string pikTbLogsql = string.Empty; string pikTbLogsql = string.Empty;
List<string> DocNoList = new List<string>(); List<string> DocNoList = new List<string>();
if (Type == "2" || Type == "12" || Type == "5")
if (Type == "2" || Type == "12" || Type == "5" || Type == "10")
{ {
string ccsql = @"select B.F_Id from ICSInventoryDetail A string ccsql = @"select B.F_Id from ICSInventoryDetail A
INNER JOIN Sys_SRM_ItemsDetail B ON B.F_Define1=A.WHCode AND B.F_Define2=A.LocationCode AND B.F_Define4=A.WorkPoint INNER JOIN Sys_SRM_ItemsDetail B ON B.F_Define1=A.WHCode AND B.F_Define2=A.LocationCode AND B.F_Define4=A.WorkPoint

Loading…
Cancel
Save