@ -2048,76 +2048,76 @@ namespace DSWeb.MvcShipping.DAL.MsOpSeaeDAL
var seaefield = MsSoftSysTableDAL . GetDefTableDetailList ( "OP_SEAE" ) ;
foreach ( var enumValue in seaefield )
{
if ( enumValue . FIELDNAME = = "MBLNO" & & headData . MBLNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "主提单号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "HBLNO" & & headData . HBLNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "分提单号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "CUSTNO" & & headData . CUSTNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "委托编号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "ORDERNO" & & headData . ORDERNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "订舱编号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "SHIPPERID" & & headData . SHIPPERID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "发货人代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "CONSIGNEEID" & & headData . CONSIGNEEID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "收货人代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "NOTIFYPARTYID" & & headData . NOTIFYPARTYID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "通知人代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "SHIPPER" & & headData . SHIPPER . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "发货人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "CONSIGNEE" & & headData . CONSIGNEE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "收货人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "NOTIFYPARTY" & & headData . NOTIFYPARTY . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "通知人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "AGENTID" & & headData . AGENTID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "代理名称超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "AGENT" & & headData . AGENT . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "代理超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "VESSEL" & & headData . VESSEL . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "船名超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "VOYNO" & & headData . VOYNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "航次超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PlACERECEIPT" & & headData . PLACERECEIPT . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "收货地超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PORTLOADID" & & headData . PORTLOADID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "装货港代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PORTLOAD" & & headData . PORTLOAD . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "装货港超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PORTDISCHARGEID" & & headData . PORTDISCHARGEID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "卸货港代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PORTDISCHARGE" & & headData . PORTDISCHARGE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "卸货港超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PLACEDELIVERYID" & & headData . PLACEDELIVERYID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "交货地代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PLACEDELIVERY" & & headData . PLACEDELIVERY . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "交货地超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DESTINATIONID" & & headData . DESTINATIONID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "目的地代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DESTINATION" & & headData . DESTINATION . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "目的地超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "ISSUEPLACE" & & headData . ISSUEPLACE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "签单地点超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "BLFRT" & & headData . BLFRT . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "付费方式超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PREPARDAT" & & headData . PREPARDAT . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "预付地点超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PAYABLEAT" & & headData . PAYABLEAT . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "到付地点超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "SERVICE" & & headData . SERVICE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "运输条款超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MARKS" & & headData . MARKS . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "唛头超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "NOPKGS" & & headData . NOPKGS . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "件数包装超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DESCRIPTION" & & headData . DESCRIPTION . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "货物描述超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "GOODSNAME" & & headData . GOODSNAME . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "品名超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "KINDPKGS" & & headData . KINDPKGS . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "包装超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "LANE" & & headData . LANE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "航线超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "INVNO" & & headData . INVNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "发票号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DCLASS" & & headData . DCLASS . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "危险品类别超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DUNNO" & & headData . DUNNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "危险品编号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "REEFERF" & & headData . REEFERF . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "冷藏通风量超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "TEMPID" & & headData . TEMPID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "温度单位超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "TEMPSET" & & headData . TEMPSET . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "设置温度超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "TEMPMAX" & & headData . TEMPMAX . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "最高温度超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "TEMPMIN" & & headData . TEMPMIN . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "最低温度超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "CONTRACTNO" & & headData . CONTRACTNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "运费协议号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "INSURANCEER" & & headData . INSURANCEER . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "保险人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "INSURANCENO" & & headData . INSURANCENO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "保险单号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "REMARK" & & headData . REMARK . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "备注超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "STLNAME" & & headData . STLNAME . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "结算方式超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "EDIREMARK" & & headData . EDIREMARK . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "EDI备注超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MNOTIFYPARTY" & & headData . MNOTIFYPARTY . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "主单通知人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "ENTERP" & & headData . ENTERP . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "经营单位超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "SERVICECONTRACTNO" & & headData . SERVICECONTRACTNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "服务合同号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MNOTIFYPARTYID" & & headData . MNOTIFYPARTYID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "签单地点超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "LINKMAN" & & headData . LINKMAN . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "客户联系人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "INSPECTSERVICE" & & headData . INSPECTSERVICE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "报检项目超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "APPLYNO" & & headData . APPLYNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "申请放箱号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MSHIPPERID" & & headData . MSHIPPERID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "MASTER发货人代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "CUSTOMNO" & & headData . CUSTOMNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "报关单号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "HSCODE" & & headData . HSCODE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "HS代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "INSPECTIONNO" & & headData . INSPECTIONNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "商检单号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MSHIPPER" & & headData . MSHIPPER . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "MASTER发货人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PLACERECEIPTID" & & headData . PLACERECEIPTID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "收货地代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "TRADETERM" & & headData . TRADETERM . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "贸易条款超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "VESSELID" & & headData . VESSELID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "船舶呼号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DPAGE" & & headData . DPAGE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "危险品页号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MCONSIGNEEID" & & headData . MCONSIGNEEID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "MASTER收货人代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MCONSIGNEE" & & headData . MCONSIGNEE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "MASTER收货人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "ENTERPID" & & headData . ENTERPID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "单位编码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "HUMIDITY" & & headData . HUMIDITY . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "湿度超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "TERMSDELIVERY" & & headData . TERMSDELIVERY . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "贸易方式超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DLABEL" & & headData . DLABEL . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "危险品标签超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MBLNO" & & headData . MBLNO ! = null & & headData . MBLNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "主提单号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "HBLNO" & & headData . HBLNO ! = null & & headData . HBLNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "分提单号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "CUSTNO" & & headData . CUSTNO ! = null & & headData . CUSTNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "委托编号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "ORDERNO" & & headData . ORDERNO ! = null & & headData . ORDERNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "订舱编号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "SHIPPERID" & & headData . SHIPPERID ! = null & & headData . SHIPPERID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "发货人代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "CONSIGNEEID" & & headData . CONSIGNEEID ! = null & & headData . CONSIGNEEID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "收货人代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "NOTIFYPARTYID" & & headData . NOTIFYPARTYID ! = null & & headData . NOTIFYPARTYID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "通知人代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "SHIPPER" & & headData . SHIPPER ! = null & & headData . SHIPPER . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "发货人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "CONSIGNEE" & & headData . CONSIGNEE ! = null & & headData . CONSIGNEE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "收货人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "NOTIFYPARTY" & & headData . NOTIFYPARTY ! = null & & headData . NOTIFYPARTY . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "通知人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "AGENTID" & & headData . AGENTID ! = null & & headData . AGENTID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "代理名称超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "AGENT" & & headData . AGENT ! = null & & headData . AGENT . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "代理超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "VESSEL" & & headData . VESSEL ! = null & & headData . VESSEL . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "船名超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "VOYNO" & & headData . VOYNO ! = null & & headData . VOYNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "航次超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PlACERECEIPT" & & headData . PLACERECEIPT ! = null & & headData . PLACERECEIPT . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "收货地超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PORTLOADID" & & headData . PORTLOADID ! = null & & headData . PORTLOADID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "装货港代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PORTLOAD" & & headData . PORTLOAD ! = null & & headData . PORTLOAD . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "装货港超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PORTDISCHARGEID" & & headData . PORTDISCHARGEID ! = null & & headData . PORTDISCHARGEID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "卸货港代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PORTDISCHARGE" & & headData . PORTDISCHARGE ! = null & & headData . PORTDISCHARGE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "卸货港超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PLACEDELIVERYID" & & headData . PLACEDELIVERYID ! = null & & headData . PLACEDELIVERYID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "交货地代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PLACEDELIVERY" & & headData . PLACEDELIVERY ! = null & & headData . PLACEDELIVERY . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "交货地超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DESTINATIONID" & & headData . DESTINATIONID ! = null & & headData . DESTINATIONID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "目的地代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DESTINATION" & & headData . DESTINATION ! = null & & headData . DESTINATION . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "目的地超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "ISSUEPLACE" & & headData . ISSUEPLACE ! = null & & headData . ISSUEPLACE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "签单地点超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "BLFRT" & & headData . BLFRT ! = null & & headData . BLFRT . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "付费方式超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PREPARDAT" & & headData . PREPARDAT ! = null & & headData . PREPARDAT . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "预付地点超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PAYABLEAT" & & headData . PAYABLEAT ! = null & & headData . PAYABLEAT . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "到付地点超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "SERVICE" & & headData . SERVICE ! = null & & headData . SERVICE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "运输条款超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MARKS" & & headData . MARKS ! = null & & headData . MARKS . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "唛头超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "NOPKGS" & & headData . NOPKGS ! = null & & headData . NOPKGS . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "件数包装超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DESCRIPTION" & & headData . DESCRIPTION ! = null & & headData . DESCRIPTION . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "货物描述超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "GOODSNAME" & & headData . GOODSNAME ! = null & & headData . GOODSNAME . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "品名超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "KINDPKGS" & & headData . KINDPKGS ! = null & & headData . KINDPKGS . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "包装超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "LANE" & & headData . LANE ! = null & & headData . LANE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "航线超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "INVNO" & & headData . INVNO ! = null & & headData . INVNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "发票号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DCLASS" & & headData . DCLASS ! = null & & headData . DCLASS . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "危险品类别超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DUNNO" & & headData . DUNNO ! = null & & headData . DUNNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "危险品编号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "REEFERF" & & headData . REEFERF ! = null & & headData . REEFERF . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "冷藏通风量超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "TEMPID" & & headData . TEMPID ! = null & & headData . TEMPID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "温度单位超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "TEMPSET" & & headData . TEMPSET ! = null & & headData . TEMPSET . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "设置温度超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "TEMPMAX" & & headData . TEMPMAX ! = null & & headData . TEMPMAX . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "最高温度超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "TEMPMIN" & & headData . TEMPMIN ! = null & & headData . TEMPMIN . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "最低温度超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "CONTRACTNO" & & headData . CONTRACTNO ! = null & & headData . CONTRACTNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "运费协议号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "INSURANCEER" & & headData . INSURANCEER ! = null & & headData . INSURANCEER . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "保险人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "INSURANCENO" & & headData . INSURANCENO ! = null & & headData . INSURANCENO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "保险单号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "REMARK" & & headData . REMARK ! = null & & headData . REMARK . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "备注超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "STLNAME" & & headData . STLNAME ! = null & & headData . STLNAME . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "结算方式超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "EDIREMARK" & & headData . EDIREMARK ! = null & & headData . EDIREMARK . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "EDI备注超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MNOTIFYPARTY" & & headData . MNOTIFYPARTY ! = null & & headData . MNOTIFYPARTY . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "主单通知人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "ENTERP" & & headData . ENTERP ! = null & & headData . ENTERP . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "经营单位超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "SERVICECONTRACTNO" & & headData . SERVICECONTRACTNO ! = null & & headData . SERVICECONTRACTNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "服务合同号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MNOTIFYPARTYID" & & headData . MNOTIFYPARTYID ! = null & & headData . MNOTIFYPARTYID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "签单地点超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "LINKMAN" & & headData . LINKMAN ! = null & & headData . LINKMAN . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "客户联系人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "INSPECTSERVICE" & & headData . INSPECTSERVICE ! = null & & headData . INSPECTSERVICE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "报检项目超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "APPLYNO" & & headData . APPLYNO ! = null & & headData . APPLYNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "申请放箱号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MSHIPPERID" & & headData . MSHIPPERID ! = null & & headData . MSHIPPERID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "MASTER发货人代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "CUSTOMNO" & & headData . CUSTOMNO ! = null & & headData . CUSTOMNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "报关单号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "HSCODE" & & headData . HSCODE ! = null & & headData . HSCODE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "HS代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "INSPECTIONNO" & & headData . INSPECTIONNO ! = null & & headData . INSPECTIONNO . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "商检单号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MSHIPPER" & & headData . MSHIPPER ! = null & & headData . MSHIPPER . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "MASTER发货人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "PLACERECEIPTID" & & headData . PLACERECEIPTID ! = null & & headData . PLACERECEIPTID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "收货地代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "TRADETERM" & & headData . TRADETERM ! = null & & headData . TRADETERM . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "贸易条款超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "VESSELID" & & headData . VESSELID ! = null & & headData . VESSELID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "船舶呼号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DPAGE" & & headData . DPAGE ! = null & & headData . DPAGE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "危险品页号超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MCONSIGNEEID" & & headData . MCONSIGNEEID ! = null & & headData . MCONSIGNEEID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "MASTER收货人代码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "MCONSIGNEE" & & headData . MCONSIGNEE ! = null & & headData . MCONSIGNEE . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "MASTER收货人超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "ENTERPID" & & headData . ENTERPID ! = null & & headData . ENTERPID . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "单位编码超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "HUMIDITY" & & headData . HUMIDITY ! = null & & headData . HUMIDITY . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "湿度超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "TERMSDELIVERY" & & headData . TERMSDELIVERY ! = null & & headData . TERMSDELIVERY . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "贸易方式超长,字段长度限制" + enumValue . FIELDLEN ; }
if ( enumValue . FIELDNAME = = "DLABEL" & & headData . DLABEL ! = null & & headData . DLABEL . Length > Convert . ToInt32 ( enumValue . FIELDLEN ) ) { isPost = false ; errorstr = "危险品标签超长,字段长度限制" + enumValue . FIELDLEN ; }
}
}