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.

870 lines
21 KiB
C#

10 months ago
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; }
/// <summary>
/// 业务唯一编号
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string BSNO
{
get { return _BSNO; }
set { _BSNO = value; }
}
private bool _bsstatus = false;
/// <summary>
/// 业务状态接受委托false、业务封帐true和code_state 中的状态)
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public bool BSSTATUS
{
get { return _bsstatus; }
set { _bsstatus = value; }
}
private bool _feestatus = false;
/// <summary>
/// 费用状态
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public bool FEESTATUS
{
get { return _feestatus; }
set { _feestatus = value; }
}
private string _BSSTATUSREF = "";
/// <summary>
/// 业务状态接受委托false、业务封帐true和code_state 中的状态)
/// </summary>
public string BSSTATUSREF
{
get { return _BSSTATUSREF; }
set { _BSSTATUSREF = value; }
}
private string _FEESTATUSREF = "";
/// <summary>
/// 费用状态
/// </summary>
public string FEESTATUSREF
{
get { return _FEESTATUSREF; }
set { _FEESTATUSREF = value; }
}
private string _TRANSSTATUS = "";
/// <summary>
/// 业务状态接受委托false、业务封帐true和code_state 中的状态)
/// </summary>
[ModelDB]
public string TRANSSTATUS
{
get { return _TRANSSTATUS; }
set { _TRANSSTATUS = value; }
}
private string _TRANSTYPE = "普运";
/// <summary>
/// 业务状态接受委托false、业务封帐true和code_state 中的状态)
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string TRANSTYPE
{
get { return _TRANSTYPE; }
set { _TRANSTYPE = value; }
}
private string _TRADETYPE = "";
/// <summary>
/// 业务类型(进口、出口)
/// </summary>
[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 = "";
/// <summary>
/// 委托编号(可以根据规则生成)
/// </summary>
[ModelDB]
public string CUSTNO
{
get { return _custno; }
set { _custno = value; }
}
private string _customername = "";
/// <summary>
/// 委托单位
/// </summary>
[ModelDB]
public string CUSTOMERNAME
{
get { return _customername; }
set { _customername = value; }
}
private string _CUSTATTN = "";
/// <summary>
/// 委托单位
/// </summary>
[ModelDB]
public string CUSTATTN
{
get { return _CUSTATTN; }
set { _CUSTATTN = value; }
}
private string _CUSTTEL = "";
/// <summary>
/// 委托单位
/// </summary>
[ModelDB]
public string CUSTTEL
{
get { return _CUSTTEL; }
set { _CUSTTEL = value; }
}
private string _TRUCKER = "";
/// <summary>
/// 车队
/// </summary>
[ModelDB]
public string TRUCKER
{
get { return _TRUCKER; }
set { _TRUCKER = value; }
}
private string _DRIVER = "";
/// <summary>
/// 司机
/// </summary>
[ModelDB]
public string DRIVER
{
get { return _DRIVER; }
set { _DRIVER = value; }
}
private string _DRIVERTEL = "";
/// <summary>
/// 司机
/// </summary>
[ModelDB]
public string DRIVERTEL
{
get { return _DRIVERTEL; }
set { _DRIVERTEL = value; }
}
private string _TRUCKNO = "";
/// <summary>
/// 车号
/// </summary>
[ModelDB]
public string TRUCKNO
{
get { return _TRUCKNO; }
set { _TRUCKNO = value; }
}
private string _consigneename = "";
/// <summary>
/// 收货人
/// </summary>
[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 = "";
/// <summary>
/// 接单日期
/// </summary>
[ModelDB]
public string BSDATE
{
get { return _bsdate; }
set { _bsdate = value; }
}
private string _accdate = "";
/// <summary>
/// 会计期间
/// </summary>
[ModelDB]
public string ACCDATE
{
get { return _accdate; }
set { _accdate = value; }
}
private string _op = "";
/// <summary>
/// 操作员
/// </summary>
[ModelDB]
public string OP
{
get { return _op; }
set { _op = value; }
}
private string _ddop = "";
/// <summary>
/// 调度
/// </summary>
[ModelDB]
public string DDOP
{
get { return _ddop; }
set { _ddop = value; }
}
private string _corpid = "";
/// <summary>
/// 分公司代码
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string CORPID
{
get { return _corpid; }
set { _corpid = value; }
}
private string _salecorpid = "";
/// <summary>
/// 分公司代码
/// </summary>
[ModelDB]
public string SALECORPID
{
get { return _salecorpid; }
set { _salecorpid = value; }
}
private string _salecorp = "";
/// <summary>
/// 分公司代码
/// </summary>
public string SALECORP
{
get { return _salecorp; }
set { _salecorp = value; }
}
private string _custservice = "";
/// <summary>
/// 客服员
/// </summary>
[ModelDB]
public string CUSTSERVICE
{
get { return _custservice; }
set { _custservice = value; }
}
private string _sale = "";
/// <summary>
/// 揽货人
/// </summary>
[ModelDB]
public string SALE
{
get { return _sale; }
set { _sale = 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 _portload = "";
/// <summary>
/// 装货地
/// </summary>
[ModelDB]
public string PORTLOAD
{
get { return _portload; }
set { _portload = value; }
}
private string _portdischarge = "";
/// <summary>
/// 卸货地
/// </summary>
[ModelDB]
public string PORTDISCHARGE
{
get { return _portdischarge; }
set { _portdischarge = value; }
}
private string _mblno= "";
/// <summary>
/// 提单号
/// </summary>
[ModelDB]
public string MBLNO
{
get { return _mblno; }
set { _mblno = value; }
}
private string _yard = "";
/// <summary>
/// 场站
/// </summary>
[ModelDB]
public string YARD
{
get { return _yard; }
set { _yard = value; }
}
private string _CLOSINGDATE = "";
/// <summary>
/// 截港日期
/// </summary>
[ModelDB]
public string CLOSINGDATE
{
get { return _CLOSINGDATE; }
set { _CLOSINGDATE = value; }
}
private decimal _kgs = 0;
/// <summary>
/// 毛重
/// </summary>
[ModelDB]
public decimal KGS
{
get { return _kgs; }
set { _kgs = value; }
}
private decimal _netweight = 0;
/// <summary>
/// 净重
/// </summary>
[ModelDB]
public decimal NETWEIGHT
{
get { return _netweight; }
set { _netweight = value; }
}
private int _pkgs = 0;
/// <summary>
/// 件数
/// </summary>
[ModelDB]
public int PKGS
{
get { return _pkgs; }
set { _pkgs = value; }
}
private decimal _CBM = 0;
/// <summary>
/// 立方数/尺码
/// </summary>
[ModelDB]
public decimal CBM
{
get { return _CBM; }
set { _CBM = value; }
}
private decimal _TRUCKNUM = 0;
/// <summary>
/// 立方数/尺码
/// </summary>
[ModelDB]
public decimal TRUCKNUM
{
get { return _TRUCKNUM; }
set { _TRUCKNUM = value; }
}
private string _cntrtotal = "";
/// <summary>
/// 集装箱
/// </summary>
[ModelDB]
public string CNTRTOTAL
{
get { return _cntrtotal; }
set { _cntrtotal = value; }
}
private bool _isvou = false;
/// <summary>
/// 是否生成凭证
/// </summary>
public bool ISVOU
{
get { return _isvou; }
set { _isvou = value; }
}
private string _vouno = "";
/// <summary>
/// 凭证号
/// </summary>
public string VOUNO
{
get { return _vouno; }
set { _vouno = value; }
}
private string _stlname = "";
/// <summary>
/// 结算方式
/// </summary>
[ModelDB]
public string STLNAME
{
get { return _stlname; }
set { _stlname = value; }
}
private string _stldate;
/// <summary>
/// 结算时间
/// </summary>
[ModelDB]
public string STLDATE
{
get { return _stldate; }
set { _stldate = value; }
}
private string _remark = "";
/// <summary>
/// 备注
/// </summary>
[ModelDB]
public string REMARK
{
get { return _remark; }
set { _remark = value; }
}
private string _createuser = "";
/// <summary>
/// 创建人
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string CREATEUSER
{
get { return _createuser; }
set { _createuser = value; }
}
private string _createtime ="";
/// <summary>
/// 创建时间
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string CREATETIME
{
get { return _createtime; }
set { _createtime = value; }
}
private string _modifieduser = "";
/// <summary>
/// 最后一次操作人
/// </summary>
[ModelDB]
public string MODIFIEDUSER
{
get { return _modifieduser; }
set { _modifieduser = value; }
}
private DateTime _modifiedtime = DateTime.Now;
/// <summary>
/// 最后一次操作时间
/// </summary>
[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 = "";
/// <summary>
/// 合同号
/// </summary>
[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 = "是";
/// <summary>
/// </summary>
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 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";
}
}
}