修改MELL EDI帮助类

optimize
jianghaiqing 2 years ago
parent b0b206cb31
commit cb677923d5

@ -718,7 +718,21 @@ namespace Myshipping.Application.EDI
var icount = 0; var icount = 0;
var bsno = ""; 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:2UNOB-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; icount = icount + 1;
foreach (var bill in InttrEdi.BSLIST) foreach (var bill in InttrEdi.BSLIST)
{ {

Loading…
Cancel
Save