using System; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.MvcShipping.Models.MsOpBulk { [JsonObject] public class MsOpBulk : ModelObjectBillHead { #region 私有成员 private string _BSNO ="*";//业务编号 private decimal _timeMark = 0; private bool _BSSTATUS;//业务状态 private bool _FEESTATUS;//费用状态 private string _BSSTATUSREF = "未锁定";//会计期间 private string _FEESTATUSREF = "未锁定";//主提单号 private string _OPSTATUS ="新建"; private DateTime _BSDATE = DateTime.Now;//录入日期 private string _ACCDATE = DateTime.Now.ToString("yyyy-MM");//会计期间 private string _OPDATE =DateTime.Now.ToString("yyyy-MM-dd");//业务期间 private string _CUSTNO = "";//委托编号 private string _ORDERNO = "";//订舱编号 private string _CUSTOMERNAME = "";//委托单位 private string _TRANSTYPE = "铁路";//运输方式 private string _ETD=null;//开船日期 private string _LASTETD = null;//开船日期 private string _ETA = null;//开船日期 private string _PORTLOAD = "";//卸货港代码 private string _PORTDISCHARGE = "";//卸货港 private string _INPUTBY = "";//录入人 private string _OP = "";//操作员 private string _SALE = "";//揽货人 private string _BSSOURCE = "";//业务来源 private string _BSSOURCEDETAIL = "";//来源明细 private string _GOODCODE = "";//商品代码 private string _GOODSNAME = "";//商品名称 private string _CORPID = "";//分公司代码 private string _SALEDEPT = "";//所属业务部门 private int _PKGS;//件数;eger private Decimal _KGS;//毛重 private Decimal _OVERKGS=0;//毛重 private Decimal _OVERPKGS = 0;//毛重 private Decimal _CBM;//尺码 private string _REMARK = "";//成交方式 #endregion #region 读写属性 /// /// 业务编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string BSNO {get{return _BSNO ;}set { _BSNO = value;}} public decimal TimeMark { get { return _timeMark; } set { _timeMark = value; } } /// /// 业务状态 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public bool BSSTATUS { get { return _BSSTATUS; } set { _BSSTATUS = value; } } public string BSSTATUSREF { get { return _BSSTATUSREF; } set { _BSSTATUSREF = value; } } /// /// 费用状态 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public bool FEESTATUS { get { return _FEESTATUS; } set { _FEESTATUS = value; } } public string FEESTATUSREF { get { return _FEESTATUSREF; } set { _FEESTATUSREF = value; } } [ModelDB] public string OPSTATUS { get { return _OPSTATUS; } set { _OPSTATUS = value; } } /// /// 录入日期 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public DateTime BSDATE { get { return _BSDATE; } set { _BSDATE = value; } } /// /// 会计期间 /// [ModelDB] public string ACCDATE { get { return _ACCDATE; } set { _ACCDATE = value; } } /// /// 业务期间 /// [ModelDB] public string OPDATE { get { return _OPDATE; } set { _OPDATE = value; } } /// /// 委托编号 /// [ModelDB] public string CUSTNO { get { return _CUSTNO; } set { _CUSTNO = value; } } /// /// 订舱编号 /// [ModelDB] public string ORDERNO { get { return _ORDERNO; } set { _ORDERNO = value; } } /// /// 委托单位 /// [ModelDB] public string CUSTOMERNAME { get { return _CUSTOMERNAME; } set { _CUSTOMERNAME = value; } } /// /// 业务类型 /// [ModelDB] public string TRANSTYPE { get { return _TRANSTYPE; } set { _TRANSTYPE = value; } } /// /// 开船日期 /// [ModelDB] public string ETD { get { return _ETD; } set { _ETD = value; } } [ModelDB] public string LASTETD { get { return _LASTETD; } set { _LASTETD = value; } } /// /// 预抵日期 /// [ModelDB] public string ETA { get { return _ETA; } set { _ETA = value; } } [ModelDB] public string PORTLOAD { get { return _PORTLOAD; } set { _PORTLOAD = value; } } /// /// 卸货港 /// [ModelDB] public string PORTDISCHARGE { get { return _PORTDISCHARGE; } set { _PORTDISCHARGE = value; } } /// /// 录入人 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string INPUTBY { get { return _INPUTBY; } set { _INPUTBY = value; } } /// /// 操作员 /// [ModelDB] public string OP { get { return _OP; } set { _OP = value; } } /// /// 揽货人 /// [ModelDB] public string SALE { get { return _SALE; } set { _SALE = value; } } /// /// 业务来源 /// [ModelDB] public string BSSOURCE { get { return _BSSOURCE; } set { _BSSOURCE = value; } } /// /// 来源明细 /// [ModelDB] public string BSSOURCEDETAIL { get { return _BSSOURCEDETAIL; } set { _BSSOURCEDETAIL = value; } } [ModelDB] public string GOODSNAME { get { return _GOODSNAME; } set { _GOODSNAME= value; } } [ModelDB] public string GOODCODE { get { return _GOODCODE; } set { _GOODCODE = value; } } [ModelDB] public string CORPID { get { return _CORPID; } set { _CORPID = value; } } /// /// 所属业务部门 /// [ModelDB] public string SALEDEPT { get { return _SALEDEPT; } set { _SALEDEPT = value; } } [ModelDB] public int PKGS { get { return _PKGS; } set { _PKGS = value; } } /// /// 毛重 /// [ModelDB] public Decimal KGS { get { return _KGS; } set { _KGS = value; } } public Decimal OVERKGS { get { return _OVERKGS; } set { _OVERKGS = value; } } public Decimal OVERPKGS { get { return _OVERPKGS; } set { _OVERPKGS = value; } } /// /// 尺码 /// [ModelDB] public Decimal CBM { get { return _CBM; } set { _CBM = value; } } [ModelDB] public string REMARK { get { return _REMARK; } set { _REMARK = 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 _ISPRINTPR = ""; public string ISPRINTPR { get { return _ISPRINTPR; } set { _ISPRINTPR = value; } } #endregion public MsOpBulk() { TableName = "op_bulk"; } override public string GetBillNoFieldName() { return "BsNo"; } } #region 参照部分 #endregion }