海运出口 dosave 几个使用了trim的参数改为允许传入null,防止其它地方调用dosave时报错

dev
ddlucky 4 months ago
parent 605d7216e7
commit d6d41de6f7

@ -2041,9 +2041,9 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
headData.BSSOURCE = headData.BSSOURCE.Trim();
headData.BSSOURCE = headData.BSSOURCE==null?"": headData.BSSOURCE.Trim();
headData.MBLNO = headData.MBLNO.Trim();
headData.MBLNO = headData.MBLNO == null ? "": headData.MBLNO.Trim();
headData.SHIPPER = FullWidthToHalfWidth(ToDBC(headData.SHIPPER));
headData.SHIPPER = DelEndSpace2(headData.SHIPPER);
headData.CONSIGNEE = FullWidthToHalfWidth(ToDBC(headData.CONSIGNEE));
@ -2068,9 +2068,14 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
if (headData.KGS == "") headData.KGS = "0";
if (headData.PKGS == "") headData.PKGS = "0";
if (headData.CBM == "") headData.CBM = "0";
headData.SALE = headData.SALE.Trim();
headData.SALE = headData.SALE == null ? "" : headData.SALE.Trim();
headData.CUSTSERVICE = headData.CUSTSERVICE==null?"": headData.CUSTSERVICE.Trim();
headData.DOC = headData.DOC.Trim();
headData.DOC = headData.DOC == null ? "" : headData.DOC.Trim();
headData.FRCUSTSERVICE = headData.FRCUSTSERVICE == null ? "" : headData.FRCUSTSERVICE.Trim();
if (headData.CARGOID == "S" || string.IsNullOrEmpty(headData.CARGOID)) {
headData.DUNNO = "";

Loading…
Cancel
Save