From 0c502e70391050f9b86429f66e0a818820aa2847 Mon Sep 17 00:00:00 2001 From: jianghaiqing Date: Fri, 2 Jun 2023 16:41:48 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9ESL=20EDI=E5=A2=9E=E5=8A=A0?= =?UTF-8?q?=E8=BF=90=E8=B4=B9=E5=8D=8F=E8=AE=AE=E5=8F=B7=E5=BF=85=E5=A1=AB?= =?UTF-8?q?=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Myshipping.Application/EDI/ESLEdiHelper.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Myshipping.Application/EDI/ESLEdiHelper.cs b/Myshipping.Application/EDI/ESLEdiHelper.cs index 64b4f81d..e2302949 100644 --- a/Myshipping.Application/EDI/ESLEdiHelper.cs +++ b/Myshipping.Application/EDI/ESLEdiHelper.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.Diagnostics.Contracts; using System.IO; using System.Runtime.InteropServices; using System.Text; @@ -366,6 +367,9 @@ namespace Myshipping.Application.EDI.ESL if (string.IsNullOrEmpty(headData.ESLLINECODE)) { error = error + "
提单号:" + headData.MBLNO + " 航司航线不能为空"; } + if (string.IsNullOrWhiteSpace(headData.CONTRACTNO)) + { error = error + "
提单号:" + headData.MBLNO + " 运费协议号不能为空"; } + if (string.IsNullOrEmpty(headData.KINDPKGS_EDI_CODE)) { error = error + "
提单号:" + headData.MBLNO + " 包装EDI代码不能为空"; } if (headData.PKGS == 0)