using System; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.MvcShipping.Models.MsOpOther { [JsonObject] public class MsOpOtherEntity : ModelObjectBillHead { #region 属性 private string _BSNO = "topother" + Guid.NewGuid().ToString();//业务编号 public string BillFeeStatus { get; set; } /// /// 业务唯一编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } private string _oplb = "op_other"; /// /// 业务类型op_other /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string OPLB { get { return _oplb; } set { _oplb = value; } } private string _oplbname = "散杂运输"; /// /// 业务类型名称(散杂运输) /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string OPLBNAME { get { return _oplbname; } set { _oplbname = value; } } private bool _bsstatus = false; /// /// 业务状态(接受委托false、业务封帐true,和code_state 中的状态) /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public bool BSSTATUS { get { return _bsstatus; } set { _bsstatus = value; } } private bool _feestatus = false; /// /// 费用状态 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public bool FEESTATUS { get { return _feestatus; } set { _feestatus = value; } } private string _BSSTATUSREF = ""; /// /// 业务状态(接受委托false、业务封帐true,和code_state 中的状态) /// public string BSSTATUSREF { get { return _BSSTATUSREF; } set { _BSSTATUSREF = value; } } private string _FEESTATUSREF = ""; /// /// 费用状态 /// public string FEESTATUSREF { get { return _FEESTATUSREF; } set { _FEESTATUSREF = value; } } private string _custno = ""; /// /// 委托编号(可以根据规则生成) /// [ModelDB] public string CUSTNO { get { return _custno; } set { _custno = value; } } private string _mblno = ""; /// /// 主提单号(可以根据规则生成) /// [ModelDB] public string MBLNO { get { return _mblno; } set { _mblno = value; } } private string _hblno = ""; /// /// 分提单号(可以根据规则生成) /// [ModelDB] public string HBLNO { get { return _hblno; } set { _hblno = value; } } private string _contractno = ""; /// /// 合同号 /// [ModelDB] public string CONTRACTNO { get { return _contractno; } set { _contractno = value; } } private string _customername = ""; /// /// 委托单位 /// [ModelDB] public string CUSTOMERNAME { get { return _customername; } set { _customername = value; } } private string _bsdate = ""; /// /// 接单日期 /// [ModelDB] public string BSDATE { get { return _bsdate; } set { _bsdate = value; } } private string _accdate = ""; /// /// 会计期间 /// [ModelDB] public string ACCDATE { get { return _accdate; } set { _accdate = value; } } private string _bssource = ""; /// /// 业务来源 /// [ModelDB] public string BSSOURCE { get { return _bssource; } set { _bssource = value; } } private string _bssourcedetail = ""; /// /// 来源明细 /// [ModelDB] public string BSSOURCEDETAIL { get { return _bssourcedetail; } set { _bssourcedetail = value; } } private string _op = ""; /// /// 操作员 /// [ModelDB] public string OP { get { return _op; } set { _op = value; } } private string _custservice = ""; /// /// 客服员 /// [ModelDB] public string CUSTSERVICE { get { return _custservice; } set { _custservice = value; } } private string _frcustservice = ""; /// /// 客服员 /// [ModelDB] public string FRCUSTSERVICE { get { return _frcustservice; } set { _frcustservice = value; } } private string _sale = ""; /// /// 揽货人 /// [ModelDB] public string SALE { get { return _sale; } set { _sale = value; } } private string _saledept = ""; /// /// 所属部门 /// [ModelDB] public string SALEDEPT { get { return _saledept; } set { _saledept = value; } } private string _corpid = ""; /// /// 分公司代码 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CORPID { get { return _corpid; } set { _corpid = value; } } private string _salecorpid = ""; /// /// 分公司代码 /// [ModelDB] public string SALECORPID { get { return _salecorpid; } set { _salecorpid = value; } } private string _salecorp = ""; /// /// 分公司代码 /// public string SALECORP { get { return _salecorp; } set { _salecorp = value; } } private string _transtype = ""; /// /// 运输方式(Code_trantype对应V_OP_BILL中的BSTYPE) /// [ModelDB] public string TRANSTYPE { get { return _transtype; } set { _transtype = value; } } private string _operator = ""; /// /// 客户操作名称 /// [ModelDB] public string OPERATOR { get { return _operator; } set { _operator = value; } } private string _CUSTOMERNAME2 = ""; /// /// 实际客户 /// [ModelDB] public string CUSTOMERNAME2 { get { return _CUSTOMERNAME2; } set { _CUSTOMERNAME2 = value; } } private string _vessel = ""; /// /// 运输工具(例:船名) /// [ModelDB] public string VESSEL { get { return _vessel; } set { _vessel = value; } } private string _voyno = ""; /// /// 班次号(例:航次) /// [ModelDB] public string VOYNO { get { return _voyno; } set { _voyno = value; } } private string _etd; /// /// 业务日期(到港/开船日期) /// [ModelDB] public string ETD { get { return _etd; } set { _etd = value; } } private string _portload = ""; /// /// 装货地 /// [ModelDB] public string PORTLOAD { get { return _portload; } set { _portload = value; } } private string _portdischarge = ""; /// /// 卸货地 /// [ModelDB] public string PORTDISCHARGE { get { return _portdischarge; } set { _portdischarge = value; } } private string _tradetype = ""; /// /// 贸易方式 /// [ModelDB] public string TRADETYPE { get { return _tradetype; } set { _tradetype = value; } } private string _goodsname = ""; /// /// 品名 /// [ModelDB] public string GOODSNAME { get { return _goodsname; } set { _goodsname = value; } } private decimal _kgs = 0; /// /// 毛重 /// [ModelDB] public decimal KGS { get { return _kgs; } set { _kgs = value; } } private decimal _netweight = 0; /// /// 净重 /// [ModelDB] public decimal NETWEIGHT { get { return _netweight; } set { _netweight = value; } } private int _pkgs = 0; /// /// 件数 /// [ModelDB] public int PKGS { get { return _pkgs; } set { _pkgs = value; } } private string _kindpkgs = ""; /// /// 件数包装 /// [ModelDB] public string KINDPKGS { get { return _kindpkgs; } set { _kindpkgs = value; } } private decimal _CBM = 0; /// /// 立方数/尺码 /// [ModelDB] public decimal CBM { get { return _CBM; } set { _CBM = value; } } private string _ctnall = ""; /// /// 表现形式 /// [ModelDB] public string CTNALL { get { return _ctnall; } set { _ctnall = value; } } private int _ctnnum =0; /// /// 箱量 /// [ModelDB] public int CTNNUM { get { return _ctnnum; } set { _ctnnum = value; } } private string _ENTERP = ""; [ModelDB] public string ENTERP { get { return _ENTERP; } set { _ENTERP = value; } } private bool _isvou = false; /// /// 是否生成凭证 /// public bool ISVOU { get { return _isvou; } set { _isvou = value; } } private string _vouno = ""; /// /// 凭证号 /// public string VOUNO { get { return _vouno; } set { _vouno = value; } } private string _stlname = ""; /// /// 结算方式 /// [ModelDB] public string STLNAME { get { return _stlname; } set { _stlname = value; } } private string _stldate; /// /// 结算时间 /// [ModelDB] public string STLDATE { get { return _stldate; } set { _stldate = value; } } private string _remark = ""; /// /// 备注 /// [ModelDB] public string REMARK { get { return _remark; } set { _remark = value; } } private string _createuser = ""; /// /// 创建人 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CREATEUSER { get { return _createuser; } set { _createuser = value; } } private DateTime _createtime = DateTime.Now; /// /// 创建时间 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public DateTime CREATETIME { get { return _createtime; } set { _createtime = value; } } private string _modifieduser = ""; /// /// 最后一次操作人 /// [ModelDB] public string MODIFIEDUSER { get { return _modifieduser; } set { _modifieduser = value; } } private DateTime _modifiedtime = DateTime.Now; /// /// 最后一次操作时间 /// [ModelDB] public DateTime MODIFIEDTIME { get { return _modifiedtime; } set { _modifiedtime = value; } } private string _BOOKNO = ""; /// /// 手册号 /// [ModelDB] public string BOOKNO { get { return _BOOKNO; } set { _BOOKNO = value; } } private string _AMEND = "0"; /// /// 是否有更改 /// public string AMEND { get { return _AMEND; } set { _AMEND = value; } } private string _ORDERNO = ""; /// /// 订舱编号 /// [ModelDB] public string ORDERNO { get { return _ORDERNO; } set { _ORDERNO = value; } } private string _CUSTOMSER = ""; /// /// 报关行 /// [ModelDB] public string CUSTOMSER { get { return _CUSTOMSER; } set { _CUSTOMSER = value; } } private string _WAREHOUSE = ""; /// /// 仓库 /// [ModelDB] public string WAREHOUSE { get { return _WAREHOUSE; } set { _WAREHOUSE = value; } } private string _COUNTRYOFORIGIN = ""; /// /// 原产国 /// [ModelDB] public string COUNTRYOFORIGIN { get { return _COUNTRYOFORIGIN; } set { _COUNTRYOFORIGIN = value; } } private string _IsSERVICE1 = "0"; private string _IsSERVICE2 = "0"; private string _IsSERVICE3 = "0"; private string _IsSERVICE4 = "0"; private string _IsSERVICE5 = "0"; private string _IsSERVICE6 = "0"; private string _IsSERVICE7 = "0"; private string _IsSERVICE8 = "0"; private string _IsSERVICE9 = "0"; private string _IsSERVICE10 = "0"; private string _IsSERVICE11 = "0"; private string _IsSERVICE12 = "0"; private string _IsSERVICE13 = "0"; private string _IsSERVICE14 = "0"; private string _IsSERVICE15 = "0"; private string _IsSERVICE16 = "0"; private string _SERVICE1 = ""; private string _SERVICE2 = ""; private string _SERVICE3 = ""; private string _SERVICE4 = ""; private string _SERVICE5 = ""; private string _SERVICE6 = ""; private string _SERVICE7 = ""; private string _SERVICE8 = ""; private string _SERVICE9 = ""; private string _SERVICE10 = ""; private string _SERVICE11 = ""; private string _SERVICE12 = ""; private string _SERVICE13= ""; private string _SERVICE14 = ""; private string _SERVICE15 = ""; private string _SERVICE16 = ""; [ModelDB] public string IsSERVICE1 { get { return _IsSERVICE1; } set { _IsSERVICE1 = value; } } [ModelDB] public string IsSERVICE2 { get { return _IsSERVICE2; } set { _IsSERVICE2 = value; } } [ModelDB] public string IsSERVICE3 { get { return _IsSERVICE3; } set { _IsSERVICE3 = value; } } [ModelDB] public string IsSERVICE4 { get { return _IsSERVICE4; } set { _IsSERVICE4 = value; } } [ModelDB] public string IsSERVICE5 { get { return _IsSERVICE5; } set { _IsSERVICE5 = value; } } [ModelDB] public string IsSERVICE6 { get { return _IsSERVICE6; } set { _IsSERVICE6 = value; } } [ModelDB] public string IsSERVICE7 { get { return _IsSERVICE7; } set { _IsSERVICE7 = value; } } [ModelDB] public string IsSERVICE8 { get { return _IsSERVICE8; } set { _IsSERVICE8 = value; } } [ModelDB] public string IsSERVICE9 { get { return _IsSERVICE9; } set { _IsSERVICE9 = value; } } [ModelDB] public string IsSERVICE10 { get { return _IsSERVICE10; } set { _IsSERVICE10 = value; } } [ModelDB] public string IsSERVICE11 { get { return _IsSERVICE11; } set { _IsSERVICE11 = value; } } [ModelDB] public string IsSERVICE12 { get { return _IsSERVICE12; } set { _IsSERVICE12 = value; } } [ModelDB] public string IsSERVICE13 { get { return _IsSERVICE13; } set { _IsSERVICE13 = value; } } [ModelDB] public string IsSERVICE14 { get { return _IsSERVICE14; } set { _IsSERVICE14 = value; } } [ModelDB] public string IsSERVICE15 { get { return _IsSERVICE15; } set { _IsSERVICE15 = value; } } [ModelDB] public string IsSERVICE16 { get { return _IsSERVICE16; } set { _IsSERVICE16= value; } } public string SERVICE1 { get { return _SERVICE1; } set { _SERVICE1 = value; } } public string SERVICE2 { get { return _SERVICE2; } set { _SERVICE2 = value; } } public string SERVICE3 { get { return _SERVICE3; } set { _SERVICE3 = value; } } public string SERVICE4 { get { return _SERVICE4; } set { _SERVICE4 = value; } } public string SERVICE5 { get { return _SERVICE5; } set { _SERVICE5 = value; } } public string SERVICE6 { get { return _SERVICE6; } set { _SERVICE6 = value; } } public string SERVICE7 { get { return _SERVICE7; } set { _SERVICE7 = value; } } public string SERVICE8 { get { return _SERVICE8; } set { _SERVICE8 = value; } } public string SERVICE9 { get { return _SERVICE9; } set { _SERVICE9 = value; } } public string SERVICE10 { get { return _SERVICE10; } set { _SERVICE10 = value; } } public string SERVICE11 { get { return _SERVICE11; } set { _SERVICE11= value; } } public string SERVICE12 { get { return _SERVICE12; } set { _SERVICE12 = value; } } public string SERVICE13 { get { return _SERVICE13; } set { _SERVICE13 = value; } } public string SERVICE14 { get { return _SERVICE14; } set { _SERVICE14 = value; } } public string SERVICE15 { get { return _SERVICE15; } set { _SERVICE15 = value; } } public string SERVICE16 { get { return _SERVICE16; } set { _SERVICE16 = value; } } private string _DRFEESTATUS = ""; private string _CRFEESTATUS = ""; public string DRFEESTATUS { get { return _DRFEESTATUS; } set { _DRFEESTATUS = value; } } public string CRFEESTATUS { get { return _CRFEESTATUS; } set { _CRFEESTATUS = value; } } private string _ISPRINTPR = ""; public string ISPRINTPR { get { return _ISPRINTPR; } set { _ISPRINTPR = value; } } private string _DRINVSTATUS = ""; public string DRINVSTATUS { get { return _DRINVSTATUS; } set { _DRINVSTATUS = value; } } public string DRDUISTATUS { get; set; } private string _closingdate; /// /// 截港日期 /// [ModelDB] public string CLOSINGDATE { get { return _closingdate; } set { _closingdate = value; } } private string _closedocdate; /// /// 截单日期 /// [ModelDB] public string CLOSEDOCDATE { get { return _closedocdate; } set { _closedocdate = value; } } private string _DUIYUEHAO; /// /// 对账约号 存于op_logicinfo /// /// public string DUIYUEHAO { get { return _DUIYUEHAO; } set { _DUIYUEHAO = value; } } private string _SHIPAGENT; /// /// 船代 /// [ModelDB] public string SHIPAGENT { get { return _SHIPAGENT; } set { _SHIPAGENT = value; } } private string _SOURCEOP; /// /// 对账约号 /// [ModelDB] public string SOURCEOP { get { return _SOURCEOP; } set { _SOURCEOP = value; } } #endregion public MsOpOtherEntity() { TableName = "op_other"; } override public string GetBillNoFieldName() { return "BSNO"; } } [JsonObject] public class MsOpApplySum : ModelObjectBillHead { #region 读写属性 private int _nobill = 0; private int _SERVICE1 = 0; private int _SERVICE2 = 0; private int _SERVICE3 = 0; private int _SERVICE4 = 0; private int _SERVICE5 = 0; private int _SERVICE6 = 0; private int _SERVICE7 = 0; private int _SERVICE8 = 0; private int _SERVICE9 = 0; private int _SERVICE10 = 0; private int _SERVICE11 = 0; private int _SERVICE12 = 0; private int _SERVICE13 = 0; private int _SERVICE14 = 0; private int _SERVICE15 = 0; private int _SERVICE16 = 0; /// /// 提单份数 /// public int NOBILL { get { return _nobill; } set { _nobill = value; } } public int TEU { get; set; } private int _customsnum = 0; public int CUSTOMSNUM { get { return _customsnum; } set { _customsnum = value; } } public int SERVICE1 { get { return _SERVICE1; } set { _SERVICE1 = value; } } public int SERVICE2 { get { return _SERVICE2; } set { _SERVICE2 = value; } } public int SERVICE3 { get { return _SERVICE3; } set { _SERVICE3 = value; } } public int SERVICE4 { get { return _SERVICE4; } set { _SERVICE4 = value; } } public int SERVICE5 { get { return _SERVICE5; } set { _SERVICE5 = value; } } public int SERVICE6 { get { return _SERVICE6; } set { _SERVICE6 = value; } } public int SERVICE7 { get { return _SERVICE7; } set { _SERVICE7 = value; } } public int SERVICE8 { get { return _SERVICE8; } set { _SERVICE8 = value; } } public int SERVICE9 { get { return _SERVICE9; } set { _SERVICE9 = value; } } public int SERVICE10 { get { return _SERVICE10; } set { _SERVICE10 = value; } } public int SERVICE11 { get { return _SERVICE11; } set { _SERVICE11 = value; } } public int SERVICE12 { get { return _SERVICE12; } set { _SERVICE12 = value; } } public int SERVICE13 { get { return _SERVICE13; } set { _SERVICE13 = value; } } public int SERVICE14 { get { return _SERVICE14; } set { _SERVICE14 = value; } } public int SERVICE15 { get { return _SERVICE15; } set { _SERVICE15 = value; } } public int SERVICE16 { get { return _SERVICE16; } set { _SERVICE16 = value; } } #endregion } [JsonObject] public class ENTERP : ModelObjectBase { #region private Fields private string _CUSTOMER = string.Empty; private string _ENTERPID = string.Empty; #endregion #region Public Properties public string ENTERPID { get { return _ENTERPID; } set { _ENTERPID = value; } } public string CUSTOMER { get { return _CUSTOMER; } set { _CUSTOMER = value; } } #endregion } }