using System; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.TruckMng.Models.MsOpTruckBulkPc { [JsonObject] public class MsOpTruckBulkPc : 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 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 _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 string _custno = ""; /// /// 委托编号(可以根据规则生成) /// [ModelDB] public string CUSTNO { get { return _custno; } set { _custno = value; } } private string _customername = ""; /// /// 委托单位 /// [ModelDB] public string CUSTOMERNAME { get { return _customername; } set { _customername = 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 _TRUCKER = ""; /// /// 车队 /// [ModelDB] public string TRUCKER { get { return _TRUCKER; } set { _TRUCKER = value; } } private string _DRIVER = ""; /// /// 司机 /// [ModelDB] public string DRIVER { get { return _DRIVER; } set { _DRIVER = value; } } private string _DRIVERTEL = ""; /// /// 司机 /// [ModelDB] public string DRIVERTEL { get { return _DRIVERTEL; } set { _DRIVERTEL = value; } } private string _TRUCKNO = ""; /// /// 车号 /// [ModelDB] public string TRUCKNO { get { return _TRUCKNO; } set { _TRUCKNO = 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 _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 _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 _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 _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 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 decimal _CBM = 0; /// /// 立方数/尺码 /// [ModelDB] public decimal CBM { get { return _CBM; } set { _CBM = value; } } private decimal _TRUCKNUM = 0; /// /// 立方数/尺码 /// [ModelDB] public decimal 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 = "0"; private string _TTLYFDR = "0"; private string _TTLOTDR = "0"; 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 string _ISPRINTPR = ""; public string ISPRINTPR { get { return _ISPRINTPR; } set { _ISPRINTPR = value; } } private string _DRINVSTATUS = ""; public string DRINVSTATUS { get { return _DRINVSTATUS; } set { _DRINVSTATUS = 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 _UNITTYPE; private string _UNIT = String.Empty; private decimal _UNITPRICE = 0; private decimal _FREIGHT = 0; private decimal _ORUNITPRICE = 0; private decimal _ORFREIGHT = 0; private decimal _TAXRATE = 0; private decimal _TTLFREIGHT = 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 decimal TAXRATE { get { return _TAXRATE; } set { _TAXRATE = value; } } [ModelDB] public decimal TTLFREIGHT { get { return _TTLFREIGHT; } set { _TTLFREIGHT = 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; } } public string CUSTOMERNAMEREF { get; set; } public string TRUCKERREF { get; set; } public string ORDERNO { get; set; } public string INVOICEBILLNO { get; set; } public string CTNALL { get; set; } public int CTNNUM { get; set; } public string ARRIVEDATE { get; set; } public string RETURNDOCDATE { get; set; } public string ARRIVEREMARK { get; set; } #endregion public MsOpTruckBulkPc() { TableName = "op_truck_bulk_pc"; } override public string GetBillNoFieldName() { return "BSNO"; } } [JsonObject] public class MsOpTruckBulkPcDetail : ModelObjectBillBody { #region private Fields private string _GID = Guid.NewGuid().ToString(); private string _BSNO = ""; public string LINKBSNO { get; set; } public string LINKGID { get; set; } public string TRANSSTATUS { get; set; } public string CUSTNO { get; set; } public string CONTRACTNO { get; set; } public string TEMPLATENAME { get; set; } public string CUSTOMERNAME { get; set; } public string CUSTOMERNAMEREF { get; set; } public string CUSTTEL { get; set; } public string CUSTATTN { get; set; } public string CONSIGNEENAME { get; set; } public string CONSIGNEETEL { get; set; } public string CONSIGNEEATTN { get; set; } public string CONSIGNEEADDR { get; set; } public string BSDATE { get; set; } public string CUSTSERVICE { get; set; } public string SALE { get; set; } public string ETD { get; set; } public string ETA { get; set; } public string PORTLOAD { get; set; } public string PORTDISCHARGE { get; set; } public string YARD { get; set; } public string TRADETYPE { get; set; } public decimal GPKGS { get; set; } public decimal UNITKGS { get; set; } public decimal NETWEIGHT { get; set; } public decimal GKGS { get; set; } public decimal GCBM { get; set; } public decimal GNETWEIGHT { get; set; } public decimal GTRUCKNUM { get; set; } public string UNITTYPE { get; set; } public string OP { get; set; } public decimal TRUCKNUM { get; set; } public string CTNALL { get; set; } public int CTNNUM { get; set; } public int GCTNNUM { get; set; } private string _GOODSNAME = String.Empty; private decimal _PKGS = 0; private decimal _KGS = 0; private decimal _CBM = 0; private string _CREATEUSER = String.Empty; private string _CREATETIME = String.Empty; private string _remark = String.Empty; public decimal UNITPRICE { get; set; } public decimal TTLDR { get; set; } #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 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 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 ORDERNO { get; set; } #endregion public MsOpTruckBulkPcDetail() { TableName = "op_truck_bulk_pc_detail"; } } }