|
|
|
@ -718,7 +718,21 @@ namespace Myshipping.Application.EDI
|
|
|
|
|
var icount = 0;
|
|
|
|
|
var bsno = "";
|
|
|
|
|
|
|
|
|
|
r.WriteLine("UNB+UNOB:1+" + InttrEdi.SENDCODE + "SO:ZZZ+" + InttrEdi.RECEIVECODE + ":ZZZ+" + DateTime.Now.ToString("yyMMdd:HHmm") + "+" + InttrEdi.BSLIST.FirstOrDefault().ORDERNO + "'");
|
|
|
|
|
/*
|
|
|
|
|
2023-03-13 跟韩工确认当前帮助类根据不同的用户需要选择不同的报文版本
|
|
|
|
|
UNOC:2-适用客户和川;
|
|
|
|
|
UNOB:1-适用其他客户,需要到具体客户时来配置。
|
|
|
|
|
考虑 InttrEdi.SENDCOMPANYCODE - 发送方部门代码,本帮助类未适用,所以改用这个字段配置
|
|
|
|
|
UNOC-(UNOC:2);UNOB-(UNOB:1)
|
|
|
|
|
*/
|
|
|
|
|
string sendCompanyCode = "UNOB:1";
|
|
|
|
|
if(!string.IsNullOrWhiteSpace(InttrEdi.SENDCOMPANYCODE)
|
|
|
|
|
&& InttrEdi.SENDCOMPANYCODE.Equals("UNOC",StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
sendCompanyCode = "UNOC:2";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
r.WriteLine("UNB+"+ sendCompanyCode + "+" + InttrEdi.SENDCODE + "SO:ZZZ+" + InttrEdi.RECEIVECODE + ":ZZZ+" + DateTime.Now.ToString("yyMMdd:HHmm") + "+" + InttrEdi.BSLIST.FirstOrDefault().ORDERNO + "'");
|
|
|
|
|
icount = icount + 1;
|
|
|
|
|
foreach (var bill in InttrEdi.BSLIST)
|
|
|
|
|
{
|
|
|
|
|