using System; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.TruckMng.Models.MsOpTruckBulk { [JsonObject] public class MsOpTruckBulk : ModelObjectBillHead { #region 属性 private string _BSNO = 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 _PARENTID ="";//业务编号 public string PARENTID { get { return _PARENTID; } set { _PARENTID = 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 _TRANSSTATUS = "新建"; /// /// 业务状态(接受委托false、业务封帐true,和code_state 中的状态) /// [ModelDB] public string TRANSSTATUS { get { return _TRANSSTATUS; } set { _TRANSSTATUS = value; } } private string _TRANSTYPE = "普运"; /// /// 业务状态(接受委托false、业务封帐true,和code_state 中的状态) /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string TRANSTYPE { get { return _TRANSTYPE; } set { _TRANSTYPE = value; } } private string _custno = ""; /// /// 委托编号(可以根据规则生成) /// [ModelDB] public string CUSTNO { get { return _custno; } set { _custno = value; } } private string _ORDERNO = ""; /// /// 订舱编号 /// [ModelDB] public string ORDERNO { get { return _ORDERNO; } set { _ORDERNO = value; } } private string _ORDERNO1 = ""; /// /// 订舱编号 /// [ModelDB] public string ORDERNO1 { get { return _ORDERNO1; } set { _ORDERNO1 = value; } } private string _contractno = ""; /// /// 合同号 /// [ModelDB] public string CONTRACTNO { get { return _contractno; } set { _contractno = value; } } private string _TEMPLATENAME = ""; [ModelDB] public string TEMPLATENAME { get { return _TEMPLATENAME; } set { _TEMPLATENAME = value; } } private string _customername = ""; /// /// 委托单位 /// [ModelDB] public string CUSTOMERNAME { get { return _customername; } set { _customername = value; } } private string _customernameref = ""; /// /// 委托单位 /// public string CUSTOMERNAMEREF { get { return _customernameref; } set { _customernameref = value; } } private string _CUSTATTN = ""; /// /// 委托单位 /// [ModelDB] public string CUSTATTN { get { return _CUSTATTN; } set { _CUSTATTN = value; } } private string _CUSTTEL = ""; /// /// 委托单位 /// [ModelDB] public string CUSTTEL { get { return _CUSTTEL; } set { _CUSTTEL = value; } } private string _consigneename = ""; /// /// 收货人 /// [ModelDB] public string CONSIGNEENAME { get { return _consigneename; } set { _consigneename = 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 _consigneeaddr = ""; [ModelDB] public string CONSIGNEEADDR { get { return _consigneeaddr; } set { _consigneeaddr= 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 _ddop = ""; /// /// 调度 /// [ModelDB] public string DDOP { get { return _ddop; } set { _ddop = value; } } private string _custservice = ""; /// /// 客服员 /// [ModelDB] public string CUSTSERVICE { get { return _custservice; } set { _custservice = value; } } private string _sale = ""; /// /// 揽货人 /// [ModelDB] public string SALE { get { return _sale; } set { _sale = 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 _etd; /// /// 派车日期 /// [ModelDB] public string ETD { get { return _etd; } set { _etd = value; } } private string _eta; /// /// 到达日期 /// [ModelDB] public string ETA { get { return _eta; } set { _eta = 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 _mblno = ""; /// /// 提单号 /// [ModelDB] public string MBLNO { get { return _mblno; } set { _mblno = value; } } private string _yard = ""; /// /// 场站 /// [ModelDB] public string YARD { get { return _yard; } set { _yard = value; } } private string _CLOSINGDATE = ""; /// /// 截港日期 /// [ModelDB] public string CLOSINGDATE { get { return _CLOSINGDATE; } set { _CLOSINGDATE = 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 int _trucknum = 0; /// /// 件数 /// [ModelDB] public int TRUCKNUM { get { return _trucknum; } set { _trucknum = value; } } private string _cntrtotal =""; /// /// 集装箱 /// [ModelDB] public string CNTRTOTAL { get { return _cntrtotal; } set { _cntrtotal = 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 string _createtime = ""; /// /// 创建时间 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string 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 _DRFEESTATUS = ""; private string _CRFEESTATUS = ""; public string DRFEESTATUS { get { return _DRFEESTATUS; } set { _DRFEESTATUS = value; } } public string CRFEESTATUS { get { return _CRFEESTATUS; } set { _CRFEESTATUS = value; } } private string _TTLDR = ""; private string _TTLYFDR = ""; private string _TTLOTDR = ""; public string TTLDR { get { return _TTLDR; } set { _TTLDR = value; } } public string TTLYFDR { get { return _TTLYFDR; } set { _TTLYFDR = value; } } public string TTLOTDR { get { return _TTLOTDR; } set { _TTLOTDR = value; } } private decimal _PCKGS = 0; private decimal _NOPCKGS =0; public decimal PCKGS { get { return _PCKGS; } set{ _PCKGS=value; } } public decimal NOPCKGS { get { return _NOPCKGS; } set {_NOPCKGS = value; } } private int _PCPKGS = 0; private int _NOPCPKGS = 0; public int PCPKGS { get { return _PCPKGS; } set { _PCPKGS = value; } } public int NOPCPKGS { get { return _NOPCPKGS; } set { _NOPCPKGS = value; } } private decimal _PCCBM = 0; private decimal _NOPCCBM = 0; public decimal PCCBM { get { return _PCCBM; } set { _PCCBM = value; } } public decimal NOPCCBM { get { return _NOPCCBM; } set { _NOPCCBM = value; } } private string _ISPRINTPR = ""; private decimal _PCTRUCKNUM = 0; private decimal _NOPCTRUCKNUM = 0; public decimal PCTRUCKNUM { get { return _PCTRUCKNUM; } set { _PCTRUCKNUM = value; } } public decimal NOPCTRUCKNUM { get { return _NOPCTRUCKNUM; } set { _NOPCTRUCKNUM = value; } } private decimal _PCNETWEIGHT = 0; private decimal _NOPCNETWEIGHT = 0; public decimal PCNETWEIGHT { get { return _PCNETWEIGHT; } set { _PCNETWEIGHT = value; } } public decimal NOPCNETWEIGHT { get { return _NOPCNETWEIGHT; } set { _NOPCNETWEIGHT = value; } } public int PCCTNNUM { get; set; } public string NOPCCNTRTOTAL { get; set; } public string ISPRINTPR { get { return _ISPRINTPR; } set { _ISPRINTPR = value; } } private string _DRINVSTATUS = ""; public string DRINVSTATUS { get { return _DRINVSTATUS; } set { _DRINVSTATUS = value; } } private string _UNITTYPE; private string _UNIT = String.Empty; private decimal _UNITPRICE = 0; private decimal _FREIGHT = 0; private decimal _ORUNITPRICE = 0; private decimal _ORFREIGHT = 0; private string _ISFEE = "0"; private string _FEEUNIT; private string _PRICEUNIT; [ModelDB] public string UNIT { get { return _UNIT; } set { _UNIT = value; } } [ModelDB] public string UNITTYPE { get { return _UNITTYPE; } set { _UNITTYPE = value; } } [ModelDB] public decimal UNITPRICE { get { return _UNITPRICE; } set { _UNITPRICE = value; } } [ModelDB] public decimal FREIGHT { get { return _FREIGHT; } set { _FREIGHT = value; } } [ModelDB] public decimal ORUNITPRICE { get { return _ORUNITPRICE; } set { _ORUNITPRICE = value; } } [ModelDB] public decimal ORFREIGHT { get { return _ORFREIGHT; } set { _ORFREIGHT = value; } } [ModelDB] public string FEEUNIT { get { return _FEEUNIT; } set { _FEEUNIT = value; } } [ModelDB] public string PRICEUNIT { get { return _PRICEUNIT; } set { _PRICEUNIT = value; } } public string ISFEE { get { return _ISFEE; } set { _ISFEE = value; } } private string _ISAUTOFEE= "是"; /// /// public string ISAUTOFEE { get { return _ISAUTOFEE; } set { _ISAUTOFEE = value; } } #endregion public MsOpTruckBulk() { TableName = "op_truck_bulk"; } override public string GetBillNoFieldName() { return "BSNO"; } } [JsonObject] public class MsOpTruckBulkDetail : ModelObjectBillBody { #region private Fields private string _GID = Guid.NewGuid().ToString(); private string _BSNO = "*"; private string _GOODSNAME = String.Empty; private string _CTNALL = String.Empty; private decimal _PKGS = 0; private decimal _KGS = 0; private decimal _CBM = 0; private decimal _PCPKGS = 0; private decimal _PCKGS = 0; private decimal _PCCBM = 0; private decimal _PCNETWEIGHT = 0; private decimal _UNITKGS = 0; private decimal _NETWEIGHT = 0; private decimal _TRUCKNUM = 0; private decimal _PCTRUCKNUM = 0; private decimal _NPCTRUCKNUM = 0; private int _CTNNUM = 0; private int _PCCTNNUM = 0; private int _NPCCTNNUM = 0; private string _UNITTYPE; private string _UNIT = String.Empty; private decimal _UNITPRICE = 0; private decimal _FREIGHT = 0; private decimal _ORUNITPRICE = 0; private decimal _ORFREIGHT = 0; private string _CREATEUSER = String.Empty; private string _CREATETIME = String.Empty; private string _remark = String.Empty; private string _ISFEE = "0"; private decimal _NPCPKGS = 0; private decimal _NPCKGS = 0; private decimal _NPCCBM = 0; private decimal _NPCNETWEIGHT = 0; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _GID; } set { _GID = value; } } [ModelDB] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } [ModelDB] public string GOODSNAME { get { return _GOODSNAME; } set { _GOODSNAME = value; } } [ModelDB] public string CTNALL { get { return _CTNALL; } set { _CTNALL = value; } } [ModelDB] public decimal PKGS { get { return _PKGS; } set { _PKGS = value; } } [ModelDB] public decimal KGS { get { return _KGS; } set { _KGS = value; } } [ModelDB] public decimal CBM { get { return _CBM; } set { _CBM = value; } } [ModelDB] public decimal UNITKGS { get { return _UNITKGS; } set { _UNITKGS = value; } } [ModelDB] public decimal NETWEIGHT { get { return _NETWEIGHT; } set { _NETWEIGHT = value; } } [ModelDB] public decimal TRUCKNUM { get { return _TRUCKNUM; } set { _TRUCKNUM = value; } } [ModelDB] public int CTNNUM { get { return _CTNNUM; } set { _CTNNUM = value; } } [ModelDB] public string UNIT { get { return _UNIT; } set { _UNIT = value; } } [ModelDB] public string UNITTYPE { get { return _UNITTYPE; } set { _UNITTYPE = value; } } [ModelDB] public decimal UNITPRICE { get { return _UNITPRICE; } set { _UNITPRICE = value; } } [ModelDB] public decimal FREIGHT { get { return _FREIGHT; } set { _FREIGHT = value; } } [ModelDB] public decimal ORUNITPRICE { get { return _ORUNITPRICE; } set { _ORUNITPRICE = value; } } [ModelDB] public decimal ORFREIGHT { get { return _ORFREIGHT; } set { _ORFREIGHT = value; } } [ModelDB] public string REMARK { get { return _remark; } set { _remark = value; } } [ModelDB] public string CREATEUSER { get { return _CREATEUSER; } set { _CREATEUSER = value; } } [ModelDB] public string CREATETIME { get { return _CREATETIME; } set { _CREATETIME = value; } } public string ISFEE { get { return _ISFEE; } set { _ISFEE = value; } } [ModelDB] public decimal PCPKGS { get { return _PCPKGS; } set { _PCPKGS = value; } } [ModelDB] public decimal PCKGS { get { return _PCKGS; } set { _PCKGS = value; } } [ModelDB] public decimal PCCBM { get { return _PCCBM; } set { _PCCBM = value; } } [ModelDB] public decimal PCNETWEIGHT { get { return _PCNETWEIGHT; } set { _PCNETWEIGHT = value; } } [ModelDB] public decimal PCTRUCKNUM { get { return _PCTRUCKNUM; } set { _PCTRUCKNUM = value; } } [ModelDB] public int PCCTNNUM { get { return _PCCTNNUM; } set { _PCCTNNUM = value; } } public decimal NPCPKGS { get { return _NPCPKGS; } set { _NPCPKGS = value; } } public decimal NPCKGS { get { return _NPCKGS; } set { _NPCKGS = value; } } public decimal NPCCBM { get { return _NPCCBM; } set { _NPCCBM = value; } } public decimal NPCNETWEIGHT { get { return _NPCNETWEIGHT; } set { _NPCNETWEIGHT = value; } } public decimal NPCTRUCKNUM { get { return _NPCTRUCKNUM; } set { _NPCTRUCKNUM = value; } } public int NPCCTNNUM { get { return _NPCCTNNUM; } set { _NPCCTNNUM = value; } } #endregion public MsOpTruckBulkDetail() { TableName = "op_truck_bulk_detail"; } } }