Browse Source

1.解析报文时 卸货点是否维护的校验

2.解析失败统一报错
master
hao.jin 3 years ago
parent
commit
7d50265a99
  1. 9
      Stone.WinForm/Stone.WinBiz/JISAdmin/F_EDI_JIS5000Sequence.cs
  2. 2
      Stone.WinForm/Stone.WinBiz/JISAdmin/F_JIS5000_Print.cs
  3. 4
      Stone.WinForm/Stone.WinModule/Standard/frmJISVDA.cs

9
Stone.WinForm/Stone.WinBiz/JISAdmin/F_EDI_JIS5000Sequence.cs

@ -119,8 +119,8 @@ namespace Stone.WinBiz.JISAdmin
}
catch (Exception ex)
{
MyLogger.Write(file.Name + " 处理失败,原因为:" + ex.Message);
// MyLogger.Write(file.Name + " 处理失败,原因为:" + ex.Message);
MyLogger.Write(file.Name + " 处理失败,原因为:报文异常解析失败!");
if (sr != null) sr.Close();
drJIS_Log["EndTime"] = MyDateTime.GetServerDateTime();
@ -287,6 +287,11 @@ namespace Stone.WinBiz.JISAdmin
if (strState == "0" || string.IsNullOrEmpty(strState))
strPartMsg += "卸货点 " + location + " 已失效!" + Environment.NewLine;
}
else
{
strPartMsg += "卸货点 " + location + " 未在系统中定义效!" + Environment.NewLine;
}
//校验卸货点、卸货点代码是否匹配
strsql = "select top 1 * from t_Location" +
" where Code = '" + location + "'" +

2
Stone.WinForm/Stone.WinBiz/JISAdmin/F_JIS5000_Print.cs

@ -833,7 +833,7 @@ namespace Stone.WinBiz.JISAdmin
//ARD+9169691-03+24+L723190709++90000841838'
//金杯李尔不换行
//string line = "ARD+{0}+{1}+{2}:000000++{3}'\r\n";
string line = "ARD+{0}+{1}+{2}:000000++{3}'";
string line = "ARD+{0}+{1}+{2}:000000++{3}:00000'";
object[] obj = new object[4];
obj[0] = drData["PartNumber"].ToString().Trim(); //零件号
obj[1] = drData["Qty"].ToString().Trim(); //数量

4
Stone.WinForm/Stone.WinModule/Standard/frmJISVDA.cs

@ -619,10 +619,10 @@ namespace Stone.WinModule.Standard
drVDA["OrderNumber"] = orderNumber;
drVDA["LocationCode"] = locationCode;
drVDA["releaseId"] = "";
// drVDA["IsPrintLabel"] = 1;
drVDA["IsPrintLabel"] = 1;
// drVDA["IsPackingVerification"] = 1;
// drVDA["IsShipingVerification"] = 1;
// drVDA["IsPrintASN"] = 1;
drVDA["IsPrintASN"] = 1;
// drVDA["IsUpload"] = 1;
// drVDA["UploadTime"] = DateTime.Now;
// drVDA["PrintASNTime"] = DateTime.Now;

Loading…
Cancel
Save