You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1928 lines
52 KiB
C#

using System;
using System.Collections.Generic;
using System.Reflection;
using DSWeb.Areas.CommMng.DAL;
using HcUtility.Comm;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.Models.MsOpSeaeEdi
{
[JsonObject]
public class MsOpSeaeEdi : ModelObjectBillHead
{
public string statustext { get; set; }
public string statustime { get; set; }
public string comname { get; set; }
public string YJDGSJ { get; set; }
public string YJLGSJ { get; set; }
public string statusMTFX { get; set; }
public string statusWLFX { get; set; }
public string comid { get; set; }
public string ShenBaoXiangShu { get; set; }
#region 读写属性
private string _DATTN = "";
private string _DTEL = "";
private string _ZhiFaText = "";
//[ModelDB]
public string ZhiFaText {
get => _ZhiFaText;
set => _ZhiFaText = value;
}
private int _QueRenWanCheng = 0;
[ModelDB]
public int QueRenWanCheng { get => _QueRenWanCheng; set => _QueRenWanCheng = value; }
private int _ISNOR = 0;
[ModelDB]
public int ISNOR { get => _ISNOR; set => _ISNOR = value; }
private string _INPUTBYID = "";
/// <summary>
/// 录入人ID
/// </summary>
[ModelDB]
public string INPUTBYID
{
get { return _INPUTBYID; }
set { _INPUTBYID = value; }
}
private string _WeiTuoFaSongFang = "";
/// <summary>
/// 委托发送方
/// </summary>
[ModelDB]
public string WeiTuoFaSongFang
{
get { return _WeiTuoFaSongFang; }
set { _WeiTuoFaSongFang = value; }
}
private string _jizhuangxiang = "";
/// <summary>
/// 集装箱
/// </summary>
[ModelDB]
public string JiZhuangXiang
{
get { return _jizhuangxiang; }
set { _jizhuangxiang = value; }
}
private string _mfno = Guid.NewGuid().ToString();
/// <summary>
/// 编号
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string MFNO
{
get { return _mfno; }
set { _mfno = value; }
}
private string _corpid = "";
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string CORPID
{
get { return _corpid; }
set { _corpid = value; }
}
private string _bsno = "";
/// <summary>
/// 业务编号
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string BSNO
{
get { return _bsno; }
set { _bsno = value; }
}
private string _masterno = "";
/// <summary>
/// 主编号
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string MASTERNO
{
get { return _masterno; }
set { _masterno = value; }
}
private string _editype = "";
[ModelDB]
public string EDITYPE
{
get { return _editype; }
set { _editype = value; }
}
private string _edistatus = "";
/// <summary>
/// 委托编号
/// </summary>
[ModelDB]
public string EDISTATUS
{
get { return _edistatus; }
set { _edistatus = value; }
}
private string _inputby = "";
/// <summary>
/// 录入人
/// </summary>
[ModelDB]
public string INPUTBY
{
get { return _inputby; }
set { _inputby = value; }
}
private string _inputdate = "";
/// <summary>
/// 录入日期
/// </summary>
[ModelDB]
public string INPUTDATE
{
get { return _inputdate; }
set { _inputdate = value; }
}
private string _custno = "";
/// <summary>
/// 委托编号
/// </summary>
[ModelDB]
public string CUSTNO
{
get { return _custno; }
set { _custno = value; }
}
private string _mblno = "";
/// <summary>
/// 主提单号
/// </summary>
[ModelDB]
public string MBLNO
{
get { return _mblno; }
set { _mblno = value; }
}
private string _hblno = "";
/// <summary>
/// 分提单号
/// </summary>
[ModelDB]
public string HBLNO
{
get { return _hblno; }
set { _hblno = value; }
}
private string _shippercode = "";
/// <summary>
/// 发货人
/// </summary>
[ModelDB]
public string SHIPPERCODE
{
get { return _shippercode; }
set { _shippercode = value; }
}
private string _shippername = "";
/// <summary>
/// 发货人
/// </summary>
[ModelDB]
public string SHIPPERNAME
{
get { return _shippername; }
set { _shippername = value; }
}
private string _shipperaddr1 = "";
/// <summary>
/// 发货人
/// </summary>
[ModelDB]
public string SHIPPERADDR1
{
get { return _shipperaddr1; }
set { _shipperaddr1 = value; }
}
private string _shipperaddr2 = "";
/// <summary>
/// 发货人
/// </summary>
[ModelDB]
public string SHIPPERADDR2
{
get { return _shipperaddr2; }
set { _shipperaddr2 = value; }
}
private string _shipperaddr3 = "";
/// <summary>
/// 发货人
/// </summary>
[ModelDB]
public string SHIPPERADDR3
{
get { return _shipperaddr3; }
set { _shipperaddr3 = value; }
}
private string _shippercity = "";
/// <summary>
/// 发货人
/// </summary>
[ModelDB]
public string SHIPPERCITY
{
get { return _shippercity; }
set { _shippercity = value; }
}
private string _shipperprovice = "";
[ModelDB]
public string SHIPPERPROVINCE
{
get { return _shipperprovice; }
set { _shipperprovice = value; }
}
private string _shipperpostcode = "";
[ModelDB]
public string SHIPPERPOSTCODE
{
get { return _shipperpostcode; }
set { _shipperpostcode = value; }
}
private string _shippercountry = "";
[ModelDB]
public string SHIPPERCOUNTRY
{
get { return _shippercountry; }
set { _shippercountry = value; }
}
private string _shipperattn = "";
[ModelDB]
public string SHIPPERATTN
{
get { return _shipperattn; }
set { _shipperattn = value; }
}
private string _shippertel = "";
[ModelDB]
public string SHIPPERTEL
{
get { return _shippertel; }
set { _shippertel = value; }
}
private string _shipperemail = "";
[ModelDB]
public string SHIPPEREMAIL
{
get { return _shipperemail; }
set { _shipperemail = value; }
}
private string _consigneecode = "";
/// <summary>
/// 收货人
/// </summary>
[ModelDB]
public string CONSIGNEECODE
{
get { return _consigneecode; }
set { _consigneecode = value; }
}
private string _consigneename = "";
/// <summary>
/// 收货人
/// </summary>
[ModelDB]
public string CONSIGNEENAME
{
get { return _consigneename; }
set { _consigneename = value; }
}
private string _consigneeaddr1 = "";
[ModelDB]
public string CONSIGNEEADDR1
{
get { return _consigneeaddr1; }
set { _consigneeaddr1 = value; }
}
private string _consigneeaddr2 = "";
[ModelDB]
public string CONSIGNEEADDR2
{
get { return _consigneeaddr2; }
set { _consigneeaddr2 = value; }
}
private string _consigneeaddr3 = "";
[ModelDB]
public string CONSIGNEEADDR3
{
get { return _consigneeaddr3; }
set { _consigneeaddr3 = value; }
}
private string _consigneecity = "";
[ModelDB]
public string CONSIGNEECITY
{
get { return _consigneecity; }
set { _consigneecity = value; }
}
private string _consigneeprovice = "";
[ModelDB]
public string CONSIGNEEPROVINCE
{
get { return _consigneeprovice; }
set { _consigneeprovice = value; }
}
private string _consigneepostcode = "";
[ModelDB]
public string CONSIGNEEPOSTCODE
{
get { return _consigneepostcode; }
set { _consigneepostcode = value; }
}
private string _consigneecountry = "";
[ModelDB]
public string CONSIGNEECOUNTRY
{
get { return _consigneecountry; }
set { _consigneecountry = value; }
}
private string _consigneeattn = "";
[ModelDB]
public string CONSIGNEEATTN
{
get { return _consigneeattn; }
set { _consigneeattn = value; }
}
private string _consigneetel = "";
[ModelDB]
public string CONSIGNEETEL
{
get { return _consigneetel; }
set { _consigneetel = value; }
}
private string _consigneeemail = "";
[ModelDB]
public string CONSIGNEEEMAIL
{
get { return _consigneeemail; }
set { _consigneeemail = value; }
}
private bool _issameconsignee = false;
/// <summary>
/// 同收货人
/// </summary>
[ModelDB]
public bool ISSAMECONSIGNEE
{
get { return _issameconsignee; }
set { _issameconsignee = value; }
}
private string _notifypartycode = "";
/// <summary>
/// 通知人
/// </summary>
[ModelDB]
public string NOTIFYPARTYCODE
{
get { return _notifypartycode; }
set { _notifypartycode = value; }
}
private string _notifypartyname = "";
/// <summary>
/// 通知人
/// </summary>
[ModelDB]
public string NOTIFYPARTYNAME
{
get { return _notifypartyname; }
set { _notifypartyname = value; }
}
private string _notifypartyaddr1 = "";
[ModelDB]
public string NOTIFYPARTYADDR1
{
get { return _notifypartyaddr1; }
set { _notifypartyaddr1 = value; }
}
private string _notifypartyaddr2 = "";
[ModelDB]
public string NOTIFYPARTYADDR2
{
get { return _notifypartyaddr2; }
set { _notifypartyaddr2 = value; }
}
private string _notifypartyaddr3 = "";
[ModelDB]
public string NOTIFYPARTYADDR3
{
get { return _notifypartyaddr3; }
set { _notifypartyaddr3 = value; }
}
private string _notifypartycity = "";
[ModelDB]
public string NOTIFYPARTYCITY
{
get { return _notifypartycity; }
set { _notifypartycity = value; }
}
private string _notifypartyprovice = "";
[ModelDB]
public string NOTIFYPARTYPROVINCE
{
get { return _notifypartyprovice; }
set { _notifypartyprovice = value; }
}
private string _notifypartypostcode = "";
[ModelDB]
public string NOTIFYPARTYPOSTCODE
{
get { return _notifypartypostcode; }
set { _notifypartypostcode = value; }
}
private string _notifypartycountry = "";
[ModelDB]
public string NOTIFYPARTYCOUNTRY
{
get { return _notifypartycountry; }
set { _notifypartycountry = value; }
}
private string _notifypartyattn = "";
[ModelDB]
public string NOTIFYPARTYATTN
{
get { return _notifypartyattn; }
set { _notifypartyattn = value; }
}
private string _notifypartytel = "";
[ModelDB]
public string NOTIFYPARTYTEL
{
get { return _notifypartytel; }
set { _notifypartytel = value; }
}
private string _notifypartyemail = "";
[ModelDB]
public string NOTIFYPARTYEMAIL
{
get { return _notifypartyemail; }
set { _notifypartyemail = value; }
}
private string _notifyparty2name = "";
/// <summary>
/// 通知人
/// </summary>
[ModelDB]
public string NOTIFYPARTY2NAME
{
get { return _notifyparty2name; }
set { _notifyparty2name = value; }
}
private string _notifyparty2addr1 = "";
[ModelDB]
public string NOTIFYPARTY2ADDR1
{
get { return _notifyparty2addr1; }
set { _notifyparty2addr1 = value; }
}
private string _notifyparty2addr2 = "";
[ModelDB]
public string NOTIFYPARTY2ADDR2
{
get { return _notifyparty2addr2; }
set { _notifyparty2addr2 = value; }
}
private string _notifyparty2addr3 = "";
[ModelDB]
public string NOTIFYPARTY2ADDR3
{
get { return _notifyparty2addr3; }
set { _notifyparty2addr3 = value; }
}
private string _notifyparty2city = "";
[ModelDB]
public string NOTIFYPARTY2CITY
{
get { return _notifyparty2city; }
set { _notifyparty2city = value; }
}
private string _notifyparty2provice = "";
[ModelDB]
public string NOTIFYPARTY2PROVINCE
{
get { return _notifyparty2provice; }
set { _notifyparty2provice = value; }
}
private string _notifyparty2postcode = "";
[ModelDB]
public string NOTIFYPARTY2POSTCODE
{
get { return _notifyparty2postcode; }
set { _notifyparty2postcode = value; }
}
private string _notifyparty2country = "";
[ModelDB]
public string NOTIFYPARTY2COUNTRY
{
get { return _notifyparty2country; }
set { _notifyparty2country = value; }
}
private string _notifyparty2attn = "";
[ModelDB]
public string NOTIFYPARTY2ATTN
{
get { return _notifyparty2attn; }
set { _notifyparty2attn = value; }
}
private string _notifyparty2tel = "";
[ModelDB]
public string NOTIFYPARTY2TEL
{
get { return _notifyparty2tel; }
set { _notifyparty2tel = value; }
}
private string _shipper = "";
/// <summary>
/// 发货人内容
/// </summary>
[ModelDB]
public string SHIPPER
{
get { return _shipper; }
set { _shipper = value; }
}
private string _consignee = "";
/// <summary>
/// 收货人内容
/// </summary>
[ModelDB]
public string CONSIGNEE
{
get { return _consignee; }
set { _consignee = value; }
}
private string _notifyparty = "";
/// <summary>
/// 通知人内容
/// </summary>
[ModelDB]
public string NOTIFYPARTY
{
get { return _notifyparty; }
set { _notifyparty = value; }
}
private string _vessel = "";
/// <summary>
/// 船名
/// </summary>
[ModelDB]
public string VESSEL
{
get { return _vessel; }
set { _vessel = value; }
}
private string _voyno = "";
/// <summary>
/// 航次
/// </summary>
[ModelDB]
public string VOYNO
{
get { return _voyno; }
set { _voyno = value; }
}
private string _etd;
/// <summary>
/// 开船日期
/// </summary>
[ModelDB]
public string ETD
{
get { return _etd; }
set { _etd = value; }
}
private string _eta;
/// <summary>
/// 预抵日期
/// </summary>
[ModelDB]
public string ETA
{
get { return _eta; }
set { _eta = value; }
}
private string _portloadid = "";
/// <summary>
/// 装货港代码
/// </summary>
[ModelDB]
public string PORTLOADID
{
get { return _portloadid; }
set { _portloadid = value; }
}
private string _portload = "";
/// <summary>
/// 装货港
/// </summary>
[ModelDB]
public string PORTLOAD
{
get { return _portload; }
set { _portload = value; }
}
private string _PLACERECEIPTID = "";
/// <summary>
/// 装货港代码
/// </summary>
[ModelDB]
public string PLACERECEIPTID
{
get { return _PLACERECEIPTID; }
set { _PLACERECEIPTID = value; }
}
private string _PLACERECEIPT = "";
/// <summary>
/// 装货港
/// </summary>
[ModelDB]
public string PLACERECEIPT
{
get { return _PLACERECEIPT; }
set { _PLACERECEIPT = value; }
}
private string _portdischargeid = "";
/// <summary>
/// 卸货港代码
/// </summary>
[ModelDB]
public string PORTDISCHARGEID
{
get { return _portdischargeid; }
set { _portdischargeid = value; }
}
private string _portdischarge = "";
/// <summary>
/// 卸货港
/// </summary>
[ModelDB]
public string PORTDISCHARGE
{
get { return _portdischarge; }
set { _portdischarge = value; }
}
private string _placedeliveryid = "";
/// <summary>
/// 交货地代码
/// </summary>
[ModelDB]
public string PLACEDELIVERYID
{
get { return _placedeliveryid; }
set { _placedeliveryid = value; }
}
private string _placedelivery = "";
/// <summary>
/// 交货地
/// </summary>
[ModelDB]
public string PLACEDELIVERY
{
get { return _placedelivery; }
set { _placedelivery = value; }
}
private string _destinationid = "";
/// <summary>
/// 目的地代码
/// </summary>
[ModelDB]
public string DESTINATIONID
{
get { return _destinationid; }
set { _destinationid = value; }
}
private string _destination = "";
/// <summary>
/// 目的地
/// </summary>
[ModelDB]
public string DESTINATION
{
get { return _destination; }
set { _destination = value; }
}
private string _FirstPortOfCallid = "";
/// <summary>
/// 第一个停靠港代码
/// </summary>
[ModelDB]
public string FIRSTPORTOFCALLID
{
get { return _FirstPortOfCallid; }
set { _FirstPortOfCallid = value; }
}
private string _FIRSTPORTOFCALLDATE = "";
/// <summary>
/// 第一个停靠港日期
/// </summary>
[ModelDB]
public string FIRSTPORTOFCALLDATE
{
get { return _FIRSTPORTOFCALLDATE; }
set { _FIRSTPORTOFCALLDATE = value; }
}
private string _LastPortOfCalid = "";
/// <summary>
/// 境外最后驶离港口代码
/// </summary>
[ModelDB]
public string LASTPORTOFCALLID
{
get { return _LastPortOfCalid; }
set { _LastPortOfCalid = value; }
}
private string _LASTPORTOFCALLDATE = "";
/// <summary>
/// 境外最后驶离港口日期
/// </summary>
[ModelDB]
public string LASTPORTOFCALLDATE
{
get { return _LASTPORTOFCALLDATE; }
set { _LASTPORTOFCALLDATE = value; }
}
private string _service = "CY-CY";
/// <summary>
/// 运输条款
/// </summary>
[ModelDB]
public string SERVICE
{
get { return _service; }
set { _service = value; }
}
private string _marks = "";
/// <summary>
/// 唛头
/// </summary>
[ModelDB]
public string MARKS
{
get { return _marks; }
set { _marks = value; }
}
private string _description = "";
/// <summary>
/// 货物描述
/// </summary>
[ModelDB]
public string DESCRIPTION
{
get { return _description; }
set { _description = value; }
}
private int _pkgs = 0;
/// <summary>
/// 件数
/// </summary>
[ModelDB]
public int PKGS
{
get { return _pkgs; }
set { _pkgs = value; }
}
private string _kindpkgs = "";
/// <summary>
/// 件数包装
/// </summary>
[ModelDB]
public string KINDPKGS
{
get { return _kindpkgs; }
set { _kindpkgs = value; }
}
private decimal _kgs = 0;
/// <summary>
/// 毛重
/// </summary>
[ModelDB]
public decimal KGS
{
get { return _kgs; }
set { _kgs = value; }
}
private decimal _cbm = 0;
/// <summary>
/// 立方数/尺码
/// </summary>
[ModelDB]
public decimal CBM
{
get { return _cbm; }
set { _cbm = value; }
}
private string _cargoid = "";
/// <summary>
/// 货物标识
/// </summary>
[ModelDB]
public string CARGOID
{
get { return _cargoid; }
set { _cargoid = value; }
}
private string _dclass = "";
/// <summary>
/// 危险品分类/等级
/// </summary>
[ModelDB]
public string DCLASS
{
get { return _dclass; }
set { _dclass = value; }
}
private string _dunno = "";
/// <summary>
/// 危险品编号
/// </summary>
[ModelDB]
public string DUNNO
{
get { return _dunno; }
set { _dunno = value; }
}
private string _dpage = "";
/// <summary>
/// 危险品页号
/// </summary>
[ModelDB]
public string DPAGE
{
get { return _dpage; }
set { _dpage = value; }
}
private string _dlabel = "";
/// <summary>
/// 危险品标签
/// </summary>
[ModelDB]
public string DLABEL
{
get { return _dlabel; }
set { _dlabel = value; }
}
private string _linkman = "";
/// <summary>
/// 危险品联系人
/// </summary>
[ModelDB]
public string LINKMAN
{
get { return _linkman; }
set { _linkman = value; }
}
private string _reeferf = "";
/// <summary>
/// 冷藏通风量
/// </summary>
[ModelDB]
public string REEFERF
{
get { return _reeferf; }
set { _reeferf = value; }
}
private string _tempid = "";
/// <summary>
/// 温度单位
/// </summary>
[ModelDB]
public string TEMPID
{
get { return _tempid; }
set { _tempid = value; }
}
private string _tempset = "";
/// <summary>
/// 设置温度
/// </summary>
[ModelDB]
public string TEMPSET
{
get { return _tempset; }
set { _tempset = value; }
}
private string _tempmax = "";
/// <summary>
/// 最高温度
/// </summary>
[ModelDB]
public string TEMPMAX
{
get { return _tempmax; }
set { _tempmax = value; }
}
private string _tempmin = "";
/// <summary>
/// 最低温度
/// </summary>
[ModelDB]
public string TEMPMIN
{
get { return _tempmin; }
set { _tempmin = value; }
}
private string _humidity = "";
/// <summary>
/// 湿度
/// </summary>
[ModelDB]
public string HUMIDITY
{
get { return _humidity; }
set { _humidity = value; }
}
private string _freightagmno = "";
/// <summary>
/// 运费协议号
/// </summary>
[ModelDB]
public string FREIGHTAGMNO
{
get { return _freightagmno; }
set { _freightagmno = value; }
}
private string _shipimo = "";
/// <summary>
/// 船舶IMO号 船舶呼号
/// </summary>
[ModelDB]
public string SHIPIMO
{
get { return _shipimo; }
set { _shipimo = value; }
}
private string _carrierid = "";
/// <summary>
/// 船公司代码
/// </summary>
[ModelDB]
public string CARRIERID
{
get { return _carrierid; }
set { _carrierid = value; }
}
private string _orderno = "";
/// <summary>
/// 订舱编号
/// </summary>
[ModelDB]
public string ORDERNO
{
get { return _orderno; }
set { _orderno = value; }
}
private string _filerole = "";
/// <summary>
/// 传输目的
/// </summary>
[ModelDB]
public string FILEROLE
{
get { return _filerole; }
set { _filerole = value; }
}
private string _packingtype = "";
/// <summary>
/// 装箱类型
/// </summary>
[ModelDB]
public string PACKINGTYPE
{
get { return _packingtype; }
set { _packingtype = value; }
}
private string _shipserviceno = "";
/// <summary>
/// 船舶服务号
/// </summary>
[ModelDB]
public string SHIPSERVICENO
{
get { return _shipserviceno; }
set { _shipserviceno = value; }
}
private string _transtype = "";
/// <summary>
/// 运输方式
/// </summary>
[ModelDB]
public string TRANSTYPE
{
get { return _transtype; }
set { _transtype = value; }
}
private string _filetype;
/// <summary>
/// 文件类型
/// </summary>
[ModelDB]
public string FILETYPE
{
get { return _filetype; }
set { _filetype = value; }
}
private bool _islasthbl = false;
/// <summary>
/// 是否最后一票分票
/// </summary>
[ModelDB]
public bool ISLASTHBL
{
get { return _islasthbl; }
set { _islasthbl = value; }
}
private string _blfrt = "FREIGHT PREPAID";
/// <summary>
/// 付费方式
/// </summary>
[ModelDB]
public string BLFRT
{
get { return _blfrt; }
set { _blfrt = value; }
}
private string _issueplace = "";
/// <summary>
/// 签单地点
/// </summary>
[ModelDB]
public string ISSUEPLACE
{
get { return _issueplace; }
set { _issueplace = value; }
}
private string _etdtime = "";
/// <summary>
/// 开船时间
/// </summary>
[ModelDB]
public string ETDTIME
{
get { return _etdtime; }
set { _etdtime = value; }
}
private string _agentid = "";
/// <summary>
/// 代理代码
/// </summary>
[ModelDB]
public string AGENTID
{
get { return _agentid; }
set { _agentid = value; }
}
private string _cntrsealno = "";
/// <summary>
/// 箱号封号
/// </summary>
[ModelDB]
public string CNTRSEALNO
{
get { return _cntrsealno; }
set { _cntrsealno = value; }
}
private string _sendtime;
public string SENDTIME
{
get { return _sendtime; }
set { _sendtime = value; }
}
private string _status = "";
/// <summary>
/// 状态
/// </summary>
[ModelDB]
public string STATUS
{
get { return _status; }
set { _status = value; }
}
private string _yard = "";
/// <summary>
/// 场站/靠泊码头
/// </summary>
[ModelDB]
public string YARD
{
get { return _yard; }
set { _yard = value; }
}
private string _yardid = "";
/// <summary>
/// 仅用于解析舱单接口传输的场站ID
/// </summary>
public string YARDID
{
get { return _yardid; }
set { _yardid = value; }
}
private string _changereson = "";
/// <summary>
/// 更改原因
/// </summary>
[ModelDB]
public string CHANGERESON
{
get { return _changereson; }
set { _changereson = value; }
}
private string _carrier = "";
/// <summary>
/// 船公司
/// </summary>
[ModelDB]
public string CARRIER
{
get { return _carrier; }
set { _carrier = value; }
}
private string _dcarrier = "";
/// <summary>
/// 船代
/// </summary>
[ModelDB]
public string DCARRIER
{
get { return _dcarrier; }
set { _dcarrier = value; }
}
private string _forwarder = "";
/// <summary>
/// 订舱公司
/// </summary>
[ModelDB]
public string FORWARDER
{
get { return _forwarder; }
set { _forwarder = value; }
}
private string _CNTRNO = "";
/// <summary>
/// 集装箱全部内容
/// </summary>
[ModelDB]
public string CNTRNO
{
get { return _CNTRNO; }
set { _CNTRNO = value; }
}
private int _ctnnum = 0;
/// <summary>
/// 报关票数
/// </summary>
[ModelDB]
public int CTNNUM
{
get { return _ctnnum; }
set { _ctnnum = value; }
}
private string _remarks = "";
/// <summary>
/// 备注
/// </summary>
[ModelDB]
public string REMARKS
{
get { return _remarks; }
set { _remarks = value; }
}
private string _arvessel = "";
/// <summary>
/// 船名
/// </summary>
[ModelDB]
public string ARVESSEL
{
get { return _arvessel; }
set { _arvessel = value; }
}
private string _arvoyno = "";
/// <summary>
/// 航次
/// </summary>
[ModelDB]
public string ARVOYNO
{
get { return _arvoyno; }
set { _arvoyno = value; }
}
private string _arshipserviceno = "";
/// <summary>
/// 船舶服务号
/// </summary>
[ModelDB]
public string ARSHIPSERVICENO
{
get { return _arshipserviceno; }
set { _arshipserviceno = value; }
}
private string _arshipimo = "";
/// <summary>
/// 船舶IMO号
/// </summary>
[ModelDB]
public string ARSHIPIMO
{
get { return _arshipimo; }
set { _arshipimo = value; }
}
private string _MANIFESTSTATUS = "";
public string MANIFESTSTATUS
{
get { return _MANIFESTSTATUS; }
set { _MANIFESTSTATUS = value; }
}
private string _leixingShou = "";
/// <summary>
/// 类型 收货人
/// </summary>
[ModelDB]
public string LeiXingShou
{
get { return _leixingShou; }
set { _leixingShou = value; }
}
private string _leixingFa = "";
/// <summary>
/// 类型 发货人
/// </summary>
[ModelDB]
public string LeiXingFa
{
get { return _leixingFa; }
set { _leixingFa = value; }
}
private string _leixingTong = "";
/// <summary>
/// 类型 通知人
/// </summary>
[ModelDB]
public string LeiXingTong
{
get { return _leixingTong; }
set { _leixingTong = value; }
}
private string _daimaShou = "";
/// <summary>
/// 代码 收货人
/// </summary>
[ModelDB]
public string DaiMaShou
{
get { return _daimaShou; }
set { _daimaShou = value; }
}
private string _daimaFa = "";
/// <summary>
/// 代码 发货人
/// </summary>
[ModelDB]
public string DaiMaFa
{
get { return _daimaFa; }
set { _daimaFa = value; }
}
private string _daimaTong = "";
/// <summary>
/// 代码 通知人
/// </summary>
[ModelDB]
public string DaiMaTong
{
get { return _daimaTong; }
set { _daimaTong = value; }
}
[ModelDB]
public string DATTN { get => _DATTN; set => _DATTN = value; }
[ModelDB]
public string DTEL { get => _DTEL; set => _DTEL = value; }
public string SENDREMARK { get; set; }
public string status_detai { get; set; }
#endregion
public MsOpSeaeEdi()
{
TableName = "op_seae_edi";
setFieldLengthLimit();
setFieldNotCN();
}
override public string GetBillNoFieldName()
{
return "MFNO";
}
public static List<FieldLengthLimit> FieldLength = new List<FieldLengthLimit>();
protected static void setFieldLengthLimit()
{
FieldLength.Clear();
FieldLength.Add(new FieldLengthLimit("提单号", "MBLNO", 25));
FieldLength.Add(new FieldLengthLimit("分提单号", "HBLNO", 25));
FieldLength.Add(new FieldLengthLimit("开船日期", "ETD", 10));
FieldLength.Add(new FieldLengthLimit("船代", "FORWARDER", 10));
FieldLength.Add(new FieldLengthLimit("船名", "VESSEL", 60));
FieldLength.Add(new FieldLengthLimit("航次", "VOYNO", 12));
FieldLength.Add(new FieldLengthLimit("船公司", "CARRIER", 20));
FieldLength.Add(new FieldLengthLimit("发货人名称", "SHIPPERNAME", 100));
FieldLength.Add(new FieldLengthLimit("发货人地址", "SHIPPERADDR1", 100));
FieldLength.Add(new FieldLengthLimit("发货人国家", "SHIPPERCOUNTRY", 2));
FieldLength.Add(new FieldLengthLimit("发货人电话", "SHIPPERTEL", 20));
FieldLength.Add(new FieldLengthLimit("发货人代码类型", "LEIXINGFA", 50));
FieldLength.Add(new FieldLengthLimit("发货人代码", "SHIPPERCODE", 50));
FieldLength.Add(new FieldLengthLimit("收货人名称", "CONSIGNEENAME", 100));
FieldLength.Add(new FieldLengthLimit("收货人地址", "CONSIGNEEADDR1", 100));
FieldLength.Add(new FieldLengthLimit("收货人国家", "CONSIGNEECOUNTRY", 2));
FieldLength.Add(new FieldLengthLimit("收货人电话", "CONSIGNEETEL", 20));
FieldLength.Add(new FieldLengthLimit("收货人代码类型", "LEIXINGSHOU", 50));
FieldLength.Add(new FieldLengthLimit("收货人代码", "CONSIGNEECODE", 50));
FieldLength.Add(new FieldLengthLimit("通知人名称", "NOTIFYPARTYNAME", 100));
FieldLength.Add(new FieldLengthLimit("通知人地址", "NOTIFYPARTYADDR1", 100));
FieldLength.Add(new FieldLengthLimit("通知人国家", "NOTIFYPARTYCOUNTRY", 2));
FieldLength.Add(new FieldLengthLimit("通知人电话", "NOTIFYPARTYTEL", 20));
FieldLength.Add(new FieldLengthLimit("通知人代码类型", "LEIXINGTONG", 50));
FieldLength.Add(new FieldLengthLimit("通知人代码", "NOTIFYPARTYCODE", 50));
FieldLength.Add(new FieldLengthLimit("装货港", "PORTLOAD", 60));
FieldLength.Add(new FieldLengthLimit("装货港代码", "PORTLOADID", 60));
FieldLength.Add(new FieldLengthLimit("卸货港", "PORTDISCHARGE", 60));
FieldLength.Add(new FieldLengthLimit("卸货港代码", "PORTDISCHARGEID", 60));
FieldLength.Add(new FieldLengthLimit("唛头", "MARKS", 500));
FieldLength.Add(new FieldLengthLimit("货描", "DESCRIPTION", 1000));
FieldLength.Add(new FieldLengthLimit("货物类型", "CARGOID", 1));
FieldLength.Add(new FieldLengthLimit("温度", "TEMPSET", 5));
FieldLength.Add(new FieldLengthLimit("温度单位", "TEMPID", 1));
FieldLength.Add(new FieldLengthLimit("通风", "REEFERF", 20));
FieldLength.Add(new FieldLengthLimit("危险品等级", "DCLASS", 5));
FieldLength.Add(new FieldLengthLimit("危险品编号", "DUNNO", 4));
FieldLength.Add(new FieldLengthLimit("危险品联系人", "DATTN", 40));
FieldLength.Add(new FieldLengthLimit("危险品电话", "DTEL", 40));
FieldLength.Add(new FieldLengthLimit("总包装", "KINDPKGS", 20));
FieldLength.Add(new FieldLengthLimit("备注", "REMARKS", 100));
FieldLength.Add(new FieldLengthLimit("收货地", "PLACEDELIVERY", 60));
FieldLength.Add(new FieldLengthLimit("收货地代码", "PLACEDELIVERYID", 60));
}
public static List<FieldLengthLimit> FieldNotCN = new List<FieldLengthLimit>();
protected static void setFieldNotCN()
{
FieldNotCN.Clear();
FieldNotCN.Add(new FieldLengthLimit("提单号", "MBLNO", 25));
FieldNotCN.Add(new FieldLengthLimit("分提单号", "HBLNO", 25));
FieldNotCN.Add(new FieldLengthLimit("船名", "VESSEL", 60));
FieldNotCN.Add(new FieldLengthLimit("航次", "VOYNO", 12));
FieldNotCN.Add(new FieldLengthLimit("船舶呼号", "SHIPIMO", 12));
FieldNotCN.Add(new FieldLengthLimit("发货人名称", "SHIPPERNAME", 100));
FieldNotCN.Add(new FieldLengthLimit("发货人地址", "SHIPPERADDR1", 100));
FieldNotCN.Add(new FieldLengthLimit("收货人名称", "CONSIGNEENAME", 100));
FieldNotCN.Add(new FieldLengthLimit("收货人地址", "CONSIGNEEADDR1", 100));
FieldNotCN.Add(new FieldLengthLimit("通知人名称", "NOTIFYPARTYNAME", 100));
FieldNotCN.Add(new FieldLengthLimit("通知人地址", "NOTIFYPARTYADDR1", 100));
;
FieldNotCN.Add(new FieldLengthLimit("唛头", "MARKS", 500));
FieldNotCN.Add(new FieldLengthLimit("货描", "DESCRIPTION", 500));
FieldNotCN.Add(new FieldLengthLimit("危险品等级", "DCLASS", 5));
FieldNotCN.Add(new FieldLengthLimit("危险品编号", "DUNNO", 4));
FieldNotCN.Add(new FieldLengthLimit("危险品电话", "DTEL", 40));
FieldNotCN.Add(new FieldLengthLimit("收货地", "PLACEDELIVERY", 60));
FieldNotCN.Add(new FieldLengthLimit("收货地代码", "PLACEDELIVERYID", 60));
}
override public FieldLengthLimit GetFieldLength(string propertyname)
{
try
{
var f = FieldLength.Find(o => o.FieldName == propertyname);
return f;
}
catch
{
return new FieldLengthLimit();
}
}
public DBResult CheckLength()
{
var result = new DBResult(true,"");
foreach (var f in FieldLength) {
var istoolong = isTooLong(f.FieldName);
if (istoolong.Success) {
result.SetErrorInfo(istoolong.Message);
}
}
return result;
}
override public FieldLengthLimit GetNotCNField(string propertyname)
{
try
{
var f = FieldNotCN.Find(o => o.FieldName == propertyname);
return f;
}
catch
{
return new FieldLengthLimit();
}
}
public DBResult CheckCN(DBResult result)
{
//var result = new DBResult(true, "");
foreach (var f in FieldNotCN)
{
var haveCN = isContainCN(f.FieldName);
if (haveCN.Success)
{
result.SetErrorInfo(haveCN.Message);
}
}
return result;
}
/// <summary>
/// 看数据是否可以保存
/// 主要是校验长度 和主提单号不能为空
/// 主要用于平台自身的保存校验;也用在舱单发送当中校验长度
/// </summary>
/// <returns></returns>
public DBResult CheckSaveVoid() {
var result = new DBResult(true,"");
result = CheckLength();
if (isNull("MBLNO")) {
result.SetErrorInfo("主提单号不能为空");
}
if(!isNull("ETD"))
{
var cansend = false;
if (isNull("ETD"))
{
cansend = false;
}
if (Convert.ToDateTime(ETD) < BasicDataRefDAL.GetDateZero(1))
{
cansend = false;
}
else cansend = true;
if (!cansend)
{
result.SetErrorInfo("请检查开船日期");
}
}
//202010118 中文检测
result = CheckCN(result);
CheckSave_Other(ref result);
return result;
}
/// <summary>
/// 其他特殊的存储禁忌
/// </summary>
/// <param name="result"></param>
/// <returns></returns>
public DBResult CheckSave_Other(ref DBResult result)
{
//1 中远的船代 收货人不能有ORDER字符
if (FORWARDER == "中远") {
if (CONSIGNEENAME.Replace(" ","").ToUpper().IndexOf("TOORDER")>=0 ) result.SetErrorInfo("中远船代的舱单信息 不接受TO ORDER形式的收货人信息");
if (CONSIGNEENAME.Replace(" ", "").ToUpper().IndexOf("TOORDER") >= 0) result.SetErrorInfo("中远船代的舱单信息 不接受TO ORDER形式的收货人信息");
if (LeiXingFa.IndexOf("999") >= 0) result.SetErrorInfo("中远税号类型不能为999请修改。");
if (LeiXingShou.IndexOf("999") >= 0) result.SetErrorInfo("中远税号类型不能为999请修改。");
if (LeiXingTong.IndexOf("999") >= 0) result.SetErrorInfo("中远税号类型不能为999请修改。");
}
return result;
}
public DBResult CheckSendVoid()
{
//var result = new DBResult(true,"");
var result = CheckSaveVoid();
//1 主单为空则分单必填
//if (string.IsNullOrWhiteSpace(MBLNO)) {
// if (string.IsNullOrWhiteSpace(HBLNO)) {
// result.SetErrorInfo("主单为空时,分单号必填");
// }
//}
if (isNull("ETD"))
{
result.SetErrorInfo("开船日期 必填");
}
else {
var cansend = false;
if (isNull("ETD"))
{
cansend= false;
}
if (Convert.ToDateTime(ETD) < BasicDataRefDAL.GetDateZero(1))
{
cansend= false;
}
else cansend= true;
if (!cansend) {
result.SetErrorInfo("请检查开船日期");
}
}
if (isNull("FORWARDER"))
{
result.SetErrorInfo("船代 必填");
}
if (isNull("VESSEL"))
{
result.SetErrorInfo("船名 必填");
}
if (isNull("VOYNO"))
{
result.SetErrorInfo("航次 必填");
}
if (isNull("CARRIER"))
{
result.SetErrorInfo("船公司 必填");
}
if (isNull("SHIPPERNAME"))
{
result.SetErrorInfo("发货人名称 必填");
}
if (isNull("SHIPPERADDR1"))
{
result.SetErrorInfo("发货人地址 必填");
}
if (isNull("SHIPPERCOUNTRY"))
{
result.SetErrorInfo("发货人国家 必填");
}
if (isNull("SHIPPERTEL"))
{
result.SetErrorInfo("发货人电话 必填");
}
//if (isNull(LeiXingFa))
//{
// result.SetErrorInfo("发货人代码类型 必填");
//}
//if (isNull(SHIPPERCODE))
//{
// result.SetErrorInfo("发货人代码 必填");
//}
if (isNull("CONSIGNEENAME"))
{
result.SetErrorInfo("收货人名称 必填");
}
if (isNull("CONSIGNEEADDR1"))
{
//if (CONSIGNEENAME == "TO ORDER" || CONSIGNEENAME == "ORDER") {
if (CONSIGNEENAME.IndexOf("ORDER")>=0)
{
}
else
result.SetErrorInfo("收货人地址 必填");
}
if (isNull("CONSIGNEECOUNTRY"))
{
if (CONSIGNEENAME.IndexOf("ORDER") >= 0)
{
}
else
result.SetErrorInfo("收货人国家 必填");
}
if (isNull("CONSIGNEETEL"))
{
if (CONSIGNEENAME.IndexOf("ORDER") >= 0)
{
}
else
result.SetErrorInfo("收货人电话 必填");
}
//if (isNull(LeiXingShou))
//{
// if (CONSIGNEENAME == "TO ORDER" || CONSIGNEENAME == "ORDER")
// {
// }
// else
// result.SetErrorInfo("收货人代码类型 必填");
//}
//if (isNull(CONSIGNEECODE))
//{
// if (CONSIGNEENAME == "TO ORDER" || CONSIGNEENAME == "ORDER")
// {
// }
// else
// result.SetErrorInfo("收货人代码 必填");
//}
if (isNull("NOTIFYPARTYNAME"))
{
result.SetErrorInfo("通知人名称 必填");
}
if (isNull("NOTIFYPARTYADDR1"))
{
result.SetErrorInfo("通知人地址 必填");
}
if (isNull("NOTIFYPARTYCOUNTRY"))
{
result.SetErrorInfo("通知人国家 必填");
}
if (isNull("NOTIFYPARTYTEL"))
{
result.SetErrorInfo("通知人电话 必填");
}
//if (isNull(LeiXingTong))
//{
// result.SetErrorInfo("通知人代码类型 必填");
//}
//if (isNull(NOTIFYPARTYCODE))
//{
// result.SetErrorInfo("通知人代码 必填");
//}
if (isNull("PORTLOAD"))
{
result.SetErrorInfo("装货港 必填");
}
if (isNull("PORTLOADID"))
{
result.SetErrorInfo("装货港代码 必填");
}
if (isNull("PORTDISCHARGE"))
{
result.SetErrorInfo("卸货港 必填");
}
if (isNull("PORTDISCHARGEID"))
{
result.SetErrorInfo("卸货港代码 必填");
}
if (isNull("MARKS"))
{
result.SetErrorInfo("唛头 必填");
}
if (isNull("DESCRIPTION"))
{
result.SetErrorInfo("货描 必填");
}
if (isNull("CARGOID"))
{
result.SetErrorInfo("货物类型 必填");
}
if (CARGOID=="R")
{
if (isNull("TEMPSET"))
{
result.SetErrorInfo("货物类型R 温度 必填");
}
if (isNull("TEMPID"))
{
result.SetErrorInfo("货物类型R 温度单位 必填");
}
if (isNull("REEFERF"))
{
result.SetErrorInfo("货物类型R 通风 必填 可填0");
}
}
if (CARGOID == "D")
{
if (isNull("DCLASS"))
{
result.SetErrorInfo("货物类型D 危险品等级 必填");
}
if (isNull("DUNNO"))
{
result.SetErrorInfo("货物类型D 危险品编号 必填");
}
if (isNull("DATTN"))
{
result.SetErrorInfo("货物类型D 危险品联系人 必填");
}
if (isNull("DTEL"))
{
result.SetErrorInfo("货物类型D 危险品电话 必填");
}
}
else {
if (!isNull("DCLASS"))
{
result.SetErrorInfo("货物类型不为D 危险品等级 不允许有内容");
}
if (!isNull("DUNNO"))
{
result.SetErrorInfo("货物类型不为D 危险品编号 不允许有内容");
}
if (!isNull("DATTN"))
{
result.SetErrorInfo("货物类型不为D 危险品联系人 不允许有内容");
}
if (!isNull("DTEL"))
{
result.SetErrorInfo("货物类型不为D 危险品电话 不允许有内容");
}
}
if (isNull("KINDPKGS"))
{
result.SetErrorInfo("总包装 必填");
}
if (isNull("PLACEDELIVERY"))
{
result.SetErrorInfo("收货地 必填 可填QINGDAO,CHINA");
}
if (isNull("PLACEDELIVERYID"))
{
result.SetErrorInfo("收货地代码 必填 收货地代码可填CNTAO");
}
return result;
}
}
//
public class EDIStatusModel: ModelObjectBillBody
{
public string mblno { get; set; }
public string status { get; set; }
public string statustime { get; set; }
}
public class JSONRSB
{
public bool Success { get; set; }
public object Data { get; set; }
}
}