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.
DS7/DSWeb/Areas/MvcShipping/Models/MsOpBulk/MsOpBulk.cs

283 lines
7.9 KiB
C#

3 years ago
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 读写属性
/// <summary>
/// 业务编号
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string BSNO {get{return _BSNO ;}set { _BSNO = value;}}
public decimal TimeMark
{
get { return _timeMark; }
set { _timeMark = value; }
}
/// <summary>
/// 业务状态
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public bool BSSTATUS { get { return _BSSTATUS; } set { _BSSTATUS = value; } }
public string BSSTATUSREF { get { return _BSSTATUSREF; } set { _BSSTATUSREF = value; } }
/// <summary>
/// 费用状态
/// </summary>
[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; } }
/// <summary>
/// 录入日期
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public DateTime BSDATE { get { return _BSDATE; } set { _BSDATE = value; } }
/// <summary>
/// 会计期间
/// </summary>
[ModelDB]
public string ACCDATE { get { return _ACCDATE; } set { _ACCDATE = value; } }
/// <summary>
/// 业务期间
/// </summary>
[ModelDB]
public string OPDATE { get { return _OPDATE; } set { _OPDATE = value; } }
/// <summary>
/// 委托编号
/// </summary>
[ModelDB]
public string CUSTNO { get { return _CUSTNO; } set { _CUSTNO = value; } }
/// <summary>
/// 订舱编号
/// </summary>
[ModelDB]
public string ORDERNO { get { return _ORDERNO; } set { _ORDERNO = value; } }
/// <summary>
/// 委托单位
/// </summary>
[ModelDB]
public string CUSTOMERNAME { get { return _CUSTOMERNAME; } set { _CUSTOMERNAME = value; } }
/// <summary>
/// 业务类型
/// </summary>
[ModelDB]
public string TRANSTYPE { get { return _TRANSTYPE; } set { _TRANSTYPE = value; } }
/// <summary>
/// 开船日期
/// </summary>
[ModelDB]
public string ETD { get { return _ETD; } set { _ETD = value; } }
[ModelDB]
public string LASTETD { get { return _LASTETD; } set { _LASTETD = value; } }
/// <summary>
/// 预抵日期
/// </summary>
[ModelDB]
public string ETA { get { return _ETA; } set { _ETA = value; } }
[ModelDB]
public string PORTLOAD { get { return _PORTLOAD; } set { _PORTLOAD = value; } }
/// <summary>
/// 卸货港
/// </summary>
[ModelDB]
public string PORTDISCHARGE { get { return _PORTDISCHARGE; } set { _PORTDISCHARGE = value; } }
/// <summary>
/// 录入人
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTBY { get { return _INPUTBY; } set { _INPUTBY = value; } }
/// <summary>
/// 操作员
/// </summary>
[ModelDB]
public string OP { get { return _OP; } set { _OP = value; } }
/// <summary>
/// 揽货人
/// </summary>
[ModelDB]
public string SALE { get { return _SALE; } set { _SALE = value; } }
/// <summary>
/// 业务来源
/// </summary>
[ModelDB]
public string BSSOURCE { get { return _BSSOURCE; } set { _BSSOURCE = value; } }
/// <summary>
/// 来源明细
/// </summary>
[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; } }
/// <summary>
/// 所属业务部门
/// </summary>
[ModelDB]
public string SALEDEPT { get { return _SALEDEPT; } set { _SALEDEPT = value; } }
[ModelDB]
public int PKGS { get { return _PKGS; } set { _PKGS = value; } }
/// <summary>
/// 毛重
/// </summary>
[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; } }
/// <summary>
/// 尺码
/// </summary>
[ModelDB]
public Decimal CBM { get { return _CBM; } set { _CBM = value; } }
[ModelDB]
public string REMARK { get { return _REMARK; } set { _REMARK = 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 _ISPRINTPR = "";
public string ISPRINTPR
{
get { return _ISPRINTPR; }
set { _ISPRINTPR = value; }
}
#endregion
public MsOpBulk()
{
TableName = "op_bulk";
}
override public string GetBillNoFieldName()
{
return "BsNo";
}
}
#region 参照部分
#endregion
}