|
|
|
@ -449,6 +449,21 @@ namespace Myshipping.Application.EDI.PIL
|
|
|
|
|
if (bill.CBM == 0)
|
|
|
|
|
{ error = error + "<br />提单号:" + bill.CBM + "货物尺码不能为空"; }
|
|
|
|
|
|
|
|
|
|
if (InttrEdi.filetype.Equals("B", StringComparison.OrdinalIgnoreCase))
|
|
|
|
|
{
|
|
|
|
|
if(string.IsNullOrWhiteSpace(bill.ShipperEdiCode))
|
|
|
|
|
{ error = error + "<br />提单号:" + bill.MBLNO + "发货人EDI代码不能为空"; }
|
|
|
|
|
|
|
|
|
|
if(bill.BLFRT.IndexOf("FREIGHT PREPAID") < 0)
|
|
|
|
|
{
|
|
|
|
|
if (string.IsNullOrWhiteSpace(bill.ConsigneeEdiCode))
|
|
|
|
|
{ error = error + "<br />提单号:" + bill.MBLNO + "付款方式是到付时,收货人EDI代码不能为空"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (string.IsNullOrWhiteSpace(bill.CNPTNo))
|
|
|
|
|
{ error = error + "<br />提单号:" + bill.MBLNO + "CNPT NO不能为空"; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (bill.CARGOID == null || bill.CARGOID == "")
|
|
|
|
|
{ error = error + "<br />提单号:" + bill.MBLNO + "货物标示不能为空"; }
|
|
|
|
@ -1033,6 +1048,10 @@ namespace Myshipping.Application.EDI.PIL
|
|
|
|
|
tempstr += GetSpaceStr("", 4);//12 //SCAC Code//O//X(4)//233 //236 //
|
|
|
|
|
tempstr += GetSpaceStr("", 14);//13 //Filler//M//X(14)//237 //250 //Spaces
|
|
|
|
|
tempstr = GetSpaceStr(tempstr, 236);
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
2023-05-31 经过手工测试PIL订舱报文,这里应该延用东胜的报文逻辑取CNPT No
|
|
|
|
|
|
|
|
|
|
if (bill.BLFRT.IndexOf("FREIGHT PREPAID") > -1)//运费预付
|
|
|
|
|
{
|
|
|
|
|
tempstr += GetSpaceStr(bill.ShipperEdiCode, 10);//3 //Booking Party Code//O//X(10)//6 //15 //webcsm Partner Code
|
|
|
|
@ -1041,6 +1060,9 @@ namespace Myshipping.Application.EDI.PIL
|
|
|
|
|
{
|
|
|
|
|
tempstr += GetSpaceStr(bill.ConsigneeEdiCode, 10);//3//Shipper Code//O//X(10)//6//15//webcsm Partner Code//mandtory for CIF shpts,预付必填
|
|
|
|
|
}
|
|
|
|
|
*/
|
|
|
|
|
tempstr += GetSpaceStr(bill.CNPTNo, 10);//3 //Booking Party Code//O//X(10)//6 //15 //webcsm Partner Code
|
|
|
|
|
|
|
|
|
|
r.WriteLine(GetSpaceStr(tempstr, 250));
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|