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.

1038 lines
25 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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; }
/// <summary>
/// 业务唯一编号
/// </summary>
[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;
/// <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 _custno = "";
/// <summary>
/// 委托编号(可以根据规则生成)
/// </summary>
[ModelDB]
public string CUSTNO
{
get { return _custno; }
set { _custno = value; }
}
private string _ORDERNO = "";
/// <summary>
/// 订舱编号
/// </summary>
[ModelDB]
public string ORDERNO
{
get { return _ORDERNO; }
set { _ORDERNO = value; }
}
private string _ORDERNO1 = "";
/// <summary>
/// 订舱编号
/// </summary>
[ModelDB]
public string ORDERNO1
{
get { return _ORDERNO1; }
set { _ORDERNO1 = 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 _customername = "";
/// <summary>
/// 委托单位
/// </summary>
[ModelDB]
public string CUSTOMERNAME
{
get { return _customername; }
set { _customername = value; }
}
private string _customernameref = "";
/// <summary>
/// 委托单位
/// </summary>
public string CUSTOMERNAMEREF
{
get { return _customernameref; }
set { _customernameref = 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 _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 _bssource = "";
/// <summary>
/// 业务来源
/// </summary>
[ModelDB]
public string BSSOURCE
{
get { return _bssource; }
set { _bssource = value; }
}
private string _bssourcedetail = "";
/// <summary>
/// 来源明细
/// </summary>
[ModelDB]
public string BSSOURCEDETAIL
{
get { return _bssourcedetail; }
set { _bssourcedetail = 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 _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 _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 _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 string _tradetype = "";
/// <summary>
/// 贸易方式
/// </summary>
[ModelDB]
public string TRADETYPE
{
get { return _tradetype; }
set { _tradetype = value; }
}
private string _goodsname = "";
/// <summary>
/// 品名
/// </summary>
[ModelDB]
public string GOODSNAME
{
get { return _goodsname; }
set { _goodsname = 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 string _kindpkgs = "";
/// <summary>
/// 件数包装
/// </summary>
[ModelDB]
public string KINDPKGS
{
get { return _kindpkgs; }
set { _kindpkgs = value; }
}
private decimal _CBM = 0;
/// <summary>
/// 立方数/尺码
/// </summary>
[ModelDB]
public decimal CBM
{
get { return _CBM; }
set { _CBM = value; }
}
private int _trucknum = 0;
/// <summary>
/// 件数
/// </summary>
[ModelDB]
public int 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 = "";
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= "是";
/// <summary>
/// </summary>
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";
}
}
}