using System; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.MvcShipping.Models.MsOpSocCtn { [JsonObject] public class MsOpSocCtnContract : ModelObjectBillHead { #region 属性 private string _BSNO = "topsoc" + Guid.NewGuid().ToString();//业务编号 /// /// 业务唯一编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } private string _BSSTATUS = ""; /// /// 业务状态(接受委托false、业务封帐true,和code_state 中的状态) /// [ModelDB] public string BSSTATUS { get { return _BSSTATUS; } set { _BSSTATUS = value; } } private string _CONTRACTNO = ""; /// /// 委托编号(可以根据规则生成) /// [ModelDB] public string CONTRACTNO { get { return _CONTRACTNO; } set { _CONTRACTNO = value; } } private string _CONTRACTDATE = ""; /// /// /// [ModelDB] public string CONTRACTDATE { get { return _CONTRACTDATE; } set { _CONTRACTDATE = value; } } private string _customername = ""; /// /// 委托单位 /// [ModelDB] public string CUSTOMERNAME { get { return _customername; } set { _customername = value; } } private string _customerattn = ""; /// /// 委托单位 /// [ModelDB] public string CUSTOMERATTN { get { return _customerattn; } set { _customerattn = value; } } private string _customertel = ""; /// /// 委托单位 /// [ModelDB] public string CUSTOMERTEL { get { return _customertel; } set { _customertel = value; } } private string _CLOSEDOCDATE; /// /// 业务日期(到港/开船日期) /// [ModelDB] public string CLOSEDOCDATE { get { return _CLOSEDOCDATE; } set { _CLOSEDOCDATE = value; } } private string _CLOSEFEEDATE; /// /// 业务日期(到港/开船日期) /// [ModelDB] public string CLOSEFEEDATE { get { return _CLOSEFEEDATE; } set { _CLOSEFEEDATE = 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 decimal _DEPOSIT = 0; /// /// /// [ModelDB] public decimal DEPOSIT { get { return _DEPOSIT; } set { _DEPOSIT = value; } } private decimal _RENT = 0; /// /// /// [ModelDB] public decimal RENT { get { return _RENT; } set { _RENT = value; } } private string _RETURNDEPOSITDATE; /// /// 业务日期(到港/开船日期) /// [ModelDB] public string RETURNDEPOSITDATE { get { return _RETURNDEPOSITDATE; } set { _RETURNDEPOSITDATE = value; } } private string _corpid = ""; /// /// 分公司代码 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CORPID { get { return _corpid; } set { _corpid = 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 =null; /// /// 创建时间 /// [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; } } public string CREATEUSERREF { get; set; } public string MODIFIEDUSERREF { get; set; } public string CNTRTOTAL { get; set; } public Int32 LOADCTNCOUNT { get; set; } private string _modifiedtime =null; /// /// 最后一次操作时间 /// [ModelDB] public string MODIFIEDTIME { get { return _modifiedtime; } set { _modifiedtime = value; } } #endregion public MsOpSocCtnContract() { TableName = "op_socctn_contract"; } override public string GetBillNoFieldName() { return "BSNO"; } } [JsonObject] public class MsOpSocCtnCtn : ModelObjectBillBody { #region 读写属性 private string _ctn_id = ""; /// /// 编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string CTN_ID { get { return _ctn_id; } set { _ctn_id = value; } } private string _BSNO = ""; /// /// 业务编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } private int _ctnnum = 0; /// /// 箱量 /// [ModelDB] public int CTNNUM { get { return _ctnnum; } set { _ctnnum = value; } } private string _ctnall = ""; /// /// 表现形式 /// [ModelDB] public string CTNALL { get { return _ctnall; } set { _ctnall = value; } } private decimal _DEPOSITPRICE = 0; /// /// /// [ModelDB] public decimal DEPOSITPRICE { get { return _DEPOSITPRICE; } set { _DEPOSITPRICE = value; } } private decimal _DEPOSIT = 0; /// /// /// [ModelDB] public decimal DEPOSIT { get { return _DEPOSIT; } set { _DEPOSIT = 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=null; /// /// 创建时间 /// [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 string _modifiedtime = null; /// /// 最后一次操作时间 /// [ModelDB] public string MODIFIEDTIME { get { return _modifiedtime; } set { _modifiedtime = value; } } public string CREATEUSERREF { get; set; } public string MODIFIEDUSERREF { get; set; } #endregion public MsOpSocCtnCtn() { TableName = "op_socctn_ctn"; } } [JsonObject] public class MsOpSocCtnCtnDetail : ModelObjectBillBody { #region 读写属性 private string _CTNGID = ""; /// /// 编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string CTNGID { get { return _CTNGID; } set { _CTNGID = value; } } private string _ctn_id = ""; /// /// 编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string CTN_ID { get { return _ctn_id; } set { _ctn_id = value; } } private string _BSNO = ""; /// /// 业务编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } private string _ctnall = ""; /// /// 表现形式 /// [ModelDB] public string CTNALL { get { return _ctnall; } set { _ctnall = value; } } private string _cntrno = ""; /// /// 箱号 /// [ModelDB] public string CNTRNO { get { return _cntrno; } set { _cntrno = value; } } private string _remark = ""; /// /// 备注 /// [ModelDB] public string REMARK { get { return _remark; } set { _remark = value; } } private string _CTNSTATUS = ""; /// /// KINDPKGS /// [ModelDB] public string CTNSTATUS { get { return _CTNSTATUS; } set { _CTNSTATUS = value; } } private string _INPUTYARDDATE = ""; /// /// INPUTYARDDATE /// [ModelDB] public string INPUTYARDDATE { get { return _INPUTYARDDATE; } set { _INPUTYARDDATE = value; } } private string _OUTYARDDATE = ""; public string OUTYARDDATE { get { return _OUTYARDDATE; } set { _OUTYARDDATE = value; } } private string _YARD = ""; /// /// public string YARD { get { return _YARD; } set { _YARD = value; } } private string _RTCTNDATE = ""; public string RTCTNDATE { get { return _RTCTNDATE; } set { _RTCTNDATE = value; } } private string _RTCTNYARD = ""; /// /// public string RTCTNYARD { get { return _RTCTNYARD; } set { _RTCTNYARD = value; } } private decimal _DEPOSITPRICE = 0; /// /// /// [ModelDB] public decimal DEPOSITPRICE { get { return _DEPOSITPRICE; } set { _DEPOSITPRICE = value; } } private string _createuser = ""; /// /// 创建人 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CREATEUSER { get { return _createuser; } set { _createuser = value; } } private string _createtime =null; /// /// 创建时间 /// [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 string _modifiedtime =null; /// /// 最后一次操作时间 /// [ModelDB] public string MODIFIEDTIME { get { return _modifiedtime; } set { _modifiedtime = value; } } public string CREATEUSERREF { get; set; } public string MODIFIEDUSERREF { get; set; } public string CONTRACTNO { get; set; } public string PORTDISCHARGE { get; set; } #endregion public MsOpSocCtnCtnDetail() { TableName = "op_socctn_ctndetail"; } } [JsonObject] public class MsOpSocCtnBs : ModelObjectBillHead { #region 属性 private string _BSNO = "socbs" + Guid.NewGuid().ToString();//业务编号 /// /// 业务唯一编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } private string _BSSTATUS = ""; /// /// 业务状态(接受委托false、业务封帐true,和code_state 中的状态) /// [ModelDB] public string BSSTATUS { get { return _BSSTATUS; } set { _BSSTATUS = value; } } private string _MBLNO = ""; /// /// 主提单号(可以根据规则生成) /// [ModelDB] public string MBLNO { get { return _MBLNO; } set { _MBLNO = value; } } private string _ETD = ""; /// /// /// [ModelDB] public string ETD { get { return _ETD; } set { _ETD = value; } } private string _VESSEL; /// /// /// [ModelDB] public string VESSEL { get { return _VESSEL; } set { _VESSEL = value; } } private string _VOYNO; /// /// VOYNO /// [ModelDB] public string VOYNO { get { return _VOYNO; } set { _VOYNO = 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 _TRANSPORT = ""; /// /// 卸货地 /// [ModelDB] public string TRANSPORT { get { return _TRANSPORT; } set { _TRANSPORT = value; } } private string _ETA = ""; /// /// /// [ModelDB] public string ETA { get { return _ETA; } set { _ETA = value; } } private string _AGENT = ""; /// /// 卸货地 /// [ModelDB] public string AGENT { get { return _AGENT; } set { _AGENT = value; } } private string _RTCTNDATE; /// /// /// [ModelDB] public string RTCTNDATE { get { return _RTCTNDATE; } set { _RTCTNDATE = value; } } private string _RTCTNYARD; /// /// 业务日期(到港/开船日期) /// [ModelDB] public string RTCTNYARD { get { return _RTCTNYARD; } set { _RTCTNYARD = value; } } private string _corpid = ""; /// /// 分公司代码 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CORPID { get { return _corpid; } set { _corpid = 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 =null; /// /// 创建时间 /// [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 string _modifiedtime =null; /// /// 最后一次操作时间 /// [ModelDB] public string MODIFIEDTIME { get { return _modifiedtime; } set { _modifiedtime = value; } } public string CREATEUSERREF { get; set; } public string MODIFIEDUSERREF { get; set; } public string CNTRTOTAL { get; set; } #endregion public MsOpSocCtnBs() { TableName = "op_socctn_bs"; } override public string GetBillNoFieldName() { return "BSNO"; } } }