using System; using com.sun.org.apache.xpath.@internal.operations; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.MvcContainer.Models.MsOpCtnr { [JsonObject] public class CtnrList : ModelObjectBillHead { #region private Fields private string _BSNO = string.Empty; private string _BLTYPE = string.Empty; private bool _BSSTATUS = false; private bool _FEESTATUS = false; private string _CUSTNO = string.Empty; private string _BILLNO = string.Empty; private string _CUSTOMERNAME = string.Empty; private string _CNTRSOURCE = string.Empty; private string _BSDATE = string.Empty; private string _ACCDATE = string.Empty; private string _OP = string.Empty; private string _CORPID = string.Empty; private string _PORT = string.Empty; private string _YARD = string.Empty; private string _DRFEENAME = string.Empty; private string _CRFEENAME = string.Empty; private string _REMARK = string.Empty; private string _CREATEUSER = string.Empty; private string _CREATETIME = string.Empty; private string _MODIFIEDUSER = string.Empty; private string _MODIFIEDTIME = string.Empty; private string _MBLNO = string.Empty; private string _BSSOURCE = string.Empty; private string _BSSOURCEDETAIL = string.Empty; private string _VESSEL = string.Empty; private string _VOYNO = string.Empty; private string _ETD = string.Empty; private string _SALE = string.Empty; private string _PORTLOAD = string.Empty; private string _PORTDISCHARGE = string.Empty; private string _SALECORPID = string.Empty; private string _RETURNTYPE = string.Empty; private string _RETURNDATE = string.Empty; private string _RETURNYARD = string.Empty; private string _OWNERCTN = string.Empty; private string _ENDRENTDATE = string.Empty; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } [ModelDB] public string BLTYPE { get { return _BLTYPE; } set { _BLTYPE = value; } } [ModelDB] public bool BSSTATUS { get { return _BSSTATUS; } set { _BSSTATUS = value; } } [ModelDB] public bool FEESTATUS { get { return _FEESTATUS; } set { _FEESTATUS = value; } } [ModelDB] public string CUSTOMERNAME { get { return _CUSTOMERNAME; } set { _CUSTOMERNAME = value; } } [ModelDB] public string CUSTNO { get { return _CUSTNO; } set { _CUSTNO = value; } } [ModelDB] public string BILLNO { get { return _BILLNO; } set { _BILLNO = value; } } [ModelDB] public string CNTRSOURCE { get { return _CNTRSOURCE; } set { _CNTRSOURCE = value; } } [ModelDB] public string BSDATE { get { return _BSDATE; } set { _BSDATE = value; } } [ModelDB] public string ACCDATE { get { return _ACCDATE; } set { _ACCDATE = value; } } [ModelDB] public string OP { get { return _OP; } set { _OP = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CORPID { get { return _CORPID; } set { _CORPID = value; } } [ModelDB] public string PORT { get { return _PORT; } set { _PORT = value; } } [ModelDB] public string YARD { get { return _YARD; } set { _YARD = value; } } [ModelDB] public string DRFEENAME { get { return _DRFEENAME; } set { _DRFEENAME = value; } } [ModelDB] public string CRFEENAME { get { return _CRFEENAME; } set { _CRFEENAME = value; } } [ModelDB] public string REMARK { get { return _CRFEENAME; } set { _CRFEENAME = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CREATEUSER { get { return _CREATEUSER; } set { _CREATEUSER = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CREATETIME { get { return _CREATETIME; } set { _CREATETIME = value; } } [ModelDB] public string MODIFIEDUSER { get { return _MODIFIEDUSER; } set { _MODIFIEDUSER = value; } } [ModelDB] public string MODIFIEDTIME { get { return _MODIFIEDTIME; } set { _MODIFIEDTIME = value; } } [ModelDB] public string MBLNO { get { return _MBLNO; } set { _MBLNO = value; } } [ModelDB] public string BSSOURCE { get { return _BSSOURCE; } set { _BSSOURCE = value; } } [ModelDB] public string BSSOURCEDETAIL { get { return _BSSOURCEDETAIL; } set { _BSSOURCEDETAIL = value; } } [ModelDB] public string VESSEL { get { return _VESSEL; } set { _VESSEL = value; } } [ModelDB] public string VOYNO { get { return _VOYNO; } set { _VOYNO = value; } } [ModelDB] public string ETD { get { return _ETD; } set { _ETD = value; } } [ModelDB] public string SALE { get { return _SALE; } set { _SALE = value; } } [ModelDB] public string PORTLOAD { get { return _PORTLOAD; } set { _PORTLOAD = value; } } [ModelDB] public string PORTDISCHARGE { get { return _PORTDISCHARGE; } set { _PORTDISCHARGE = value; } } [ModelDB] public string SALECORPID { get { return _SALECORPID; } set { _SALECORPID = value; } } [ModelDB] public string RETURNTYPE { get { return _RETURNTYPE; } set { _RETURNTYPE = value; } } [ModelDB] public string RETURNDATE { get { return _RETURNDATE; } set { _RETURNDATE = value; } } [ModelDB] public string RETURNYARD { get { return _RETURNYARD; } set { _RETURNYARD = value; } } public string BillFeeStatus { get; set; } public bool ISCREATEFEE { get;set; } private string _CNTRTOTAL = string.Empty; [ModelDB] public string CNTRTOTAL { get { return _CNTRTOTAL; } set { _CNTRTOTAL = value; } } public string ISCREATEFEEREF { get; set; } public string BSSTATUSREF { get; set; } public string FEESTATUSREF { get; set; } public string DRFEESTATUS { get; set; } public string CRFEESTATUS { get; set; } [ModelDB] public string OWNERCTN { get { return _OWNERCTN; } set { _OWNERCTN = value; } } [ModelDB] public string ENDRENTDATE { get { return _ENDRENTDATE; } set { _ENDRENTDATE = value; } } public string CREATEBSFEEREF { get; set; } #endregion public CtnrList ( ) { TableName = "op_ctnmng"; } public override string GetBillNoFieldName ( ) { return "BSNO"; } public override string GetTimeMarkFieldName ( ) { return ""; } } [JsonObject] public class CtnrMngDetail : ModelObjectBillBody { #region private Fields private string _GID = string.Empty; private string _BSNO = string.Empty; private string _CTNGID = string.Empty; private string _DRFEENAME = string.Empty; private string _CRFEENAME = string.Empty; private string _DR = string.Empty; private string _CR = string.Empty; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _GID; } set { _GID = value; } } [ModelDB] public string CTNGID { get { return _CTNGID; } set { _CTNGID = value; } } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } [ModelDB] public string DRFEENAME { get { return _DRFEENAME; } set { _DRFEENAME = value; } } [ModelDB] public string CRFEENAME { get { return _CRFEENAME; } set { _CRFEENAME = value; } } [ModelDB] public string DR { get { return _DR; } set { _DR = value; } } [ModelDB] public string CR { get { return _CR; } set { _CR = value; } } [ModelDB] public string CURR { get; set; } #endregion public CtnrMngDetail() { TableName = "op_ctnmng_detail"; } public override string GetBillNoFieldName() { return "BSNO"; } public override string GetTimeMarkFieldName() { return ""; } } [JsonObject] public class CtnrDetail : ModelObjectBillHead { #region private Fields private string _CTNGID = string.Empty; private string _CTNALL = string.Empty; private string _CNTRNO = string.Empty; private string _CNTRSOURCE = string.Empty; private string _CTNSTATUS = string.Empty; private string _CTNSTATUSTIME = string.Empty; private string _PORT = string.Empty; private string _YARD = string.Empty; private string _CTNEF = string.Empty; private string _CUSTNO = string.Empty; private string _MBLNO = string.Empty; private string _REMARK = string.Empty; private string _OWNERCTN = string.Empty; private string _ENDRENTDATE = string.Empty; private string _NOTYPE = string.Empty; private string _CTNCOLOR = string.Empty; private string _ISLOCKBOX = string.Empty; private string _ISSLOT = string.Empty; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string CTNGID { get { return _CTNGID; } set { _CTNGID = value; } } private string _BSNO = string.Empty; [ModelDB(MDBType = ModelDBOprationType.Insert)] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } [ModelDB] public string CTNALL { get { return _CTNALL; } set { _CTNALL = value; } } [ModelDB] public string CNTRNO { get { return _CNTRNO; } set { _CNTRNO = value; } } [ModelDB] public string CNTRSOURCE { get { return _CNTRSOURCE; } set { _CNTRSOURCE = value; } } [ModelDB] public string CTNSTATUS { get { return _CTNSTATUS; } set { _CTNSTATUS = value; } } public string CURSTATUS { get; set; } [ModelDB] public string CTNSTATUSTIME { get { return _CTNSTATUSTIME; } set { _CTNSTATUSTIME = value; } } [ModelDB] public string PORT { get { return _PORT; } set { _PORT = value; } } [ModelDB] public string YARD { get { return _YARD; } set { _YARD = value; } } [ModelDB] public string CTNEF { get { return _CTNEF; } set { _CTNEF = value; } } [ModelDB] public string CUSTNO { get { return _CUSTNO; } set { _CUSTNO = value; } } [ModelDB] public string MBLNO { get { return _MBLNO; } set { _MBLNO = value; } } [ModelDB] public string REMARK { get { return _REMARK; } set { _REMARK = value; } } private bool _ISSTOP = false; /// /// 业务状态 /// [ModelDB] public bool ISSTOP { get { return _ISSTOP; } set { _ISSTOP = value; } } private bool _ISBERETURN = false; /// /// /// public bool ISBERETURN { get { return _ISBERETURN; } set { _ISBERETURN = value; } } #endregion public string CTNEFREF { get; set; } public string ISSTOPREF { get; set; } public string ISBERETURNREF { get; set; } private string _RETURNYARD =""; [ModelDB] public string RETURNYARD { get { return _RETURNYARD; } set { _RETURNYARD = value; } } [ModelDB] public string OWNERCTN { get { return _OWNERCTN; } set { _OWNERCTN = value; } } [ModelDB] public string ENDRENTDATE { get { return _ENDRENTDATE; } set { _ENDRENTDATE = value; } } [ModelDB] public string NOTYPE { get { return _NOTYPE; } set { _NOTYPE = value; } } [ModelDB] public string CTNCOLOR { get { return _CTNCOLOR; } set { _CTNCOLOR = value; } } [ModelDB] public string ISLOCKBOX { get { return _ISLOCKBOX; } set { _ISLOCKBOX = value; } } [ModelDB] public string ISSLOT { get { return _ISSLOT; } set { _ISSLOT = value; } } public string ISSLOTREF { get; set; } public string ISLOCKBOXREF { get; set; } public string ISLOCK { get; set; } public string ISLOCKREF { get; set; } public CtnrDetail( ) { TableName = "op_ctnmng_ctndetail"; } override public string GetBillNoFieldName() { return "CTNGID"; } public override string GetTimeMarkFieldName() { return ""; } } [JsonObject] public class CtnrDetailAX : ModelObjectBillHead { #region private Fields private string _CTNGID = string.Empty; private string _CTNALL = string.Empty; private string _CNTRNO = string.Empty; private string _CNTRSOURCE = string.Empty; private string _CTNSTATUS = string.Empty; private string _CTNSTATUSTIME = string.Empty; private string _PORT = string.Empty; private string _YARD = string.Empty; private string _CTNEF = string.Empty; private string _CUSTNO = string.Empty; private string _MBLNO = string.Empty; private string _REMARK = string.Empty; private string _BSNO = string.Empty; private string _DRFEENAME = string.Empty; private string _CRFEENAME = string.Empty; private string _DR = string.Empty; private string _CR = string.Empty; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get; set; } [ModelDB] public string CTNGID { get { return _CTNGID; } set { _CTNGID = value; } } [ModelDB] public string CTNALL { get { return _CTNALL; } set { _CTNALL = value; } } [ModelDB] public string CNTRNO { get { return _CNTRNO; } set { _CNTRNO = value; } } [ModelDB] public string CNTRSOURCE { get { return _CNTRSOURCE; } set { _CNTRSOURCE = value; } } [ModelDB] public string CTNSTATUS { get { return _CTNSTATUS; } set { _CTNSTATUS = value; } } [ModelDB] public string CTNSTATUSTIME { get { return _CTNSTATUSTIME; } set { _CTNSTATUSTIME = value; } } [ModelDB] public string PORT { get { return _PORT; } set { _PORT = value; } } [ModelDB] public string YARD { get { return _YARD; } set { _YARD = value; } } [ModelDB] public string CTNEF { get { return _CTNEF; } set { _CTNEF = value; } } [ModelDB] public string CUSTNO { get { return _CUSTNO; } set { _CUSTNO = value; } } [ModelDB] public string MBLNO { get { return _MBLNO; } set { _MBLNO = value; } } [ModelDB] public string REMARK { get { return _REMARK; } set { _REMARK = value; } } [ModelDB] public string DRFEENAME { get { return _DRFEENAME; } set { _DRFEENAME = value; } } [ModelDB] public string CRFEENAME { get { return _CRFEENAME; } set { _CRFEENAME = value; } } [ModelDB] public string DR { get { return _DR; } set { _DR = value; } } [ModelDB] public string CR { get { return _CR; } set { _CR = value; } } private string _RETURNYARD = string.Empty; [ModelDB] public string RETURNYARD { get { return _RETURNYARD; } set { _RETURNYARD = value; } } public string MXCR { get; set; } public string BSNO { get; set; } public string NBSNO { get; set; } #endregion public string CTNEFREF { get; set; } public string OWNERCTN { get; set; } public string ENDRENTDATE { get; set; } public string NOTYPE { get; set; } public string CTNCOLOR { get; set; } public string ISLOCKBOX { get; set; } public string ISSLOT { get; set; } public string ISSLOTREF { get; set; } public string ISLOCKBOXREF { get; set; } public string CURR { get; set; } public CtnrDetailAX() { TableName = "op_ctnmng_ctndetail"; } public override string GetBillNoFieldName() { return "CTNGID"; } } [JsonObject] public class CtnrDyDetail : ModelObjectBillHead { #region private Fields private string _GID = Guid.NewGuid().ToString(); private string _CTNGID = string.Empty; private string _CNTRNO = string.Empty; private string _CTNSTATUS = string.Empty; private string _CTNSTATUSTIME = string.Empty; private string _PORT = string.Empty; private string _YARD = string.Empty; private string _CTNEF = string.Empty; private string _CUSTNO = string.Empty; private string _MBLNO = string.Empty; private string _REMARK = string.Empty; private string _CREATEUSER = string.Empty; private string _CREATETIME = string.Empty; #endregion #region Public Properties [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _GID; } set { _GID = value; } } [ModelDB] public string CTNGID { get { return _CTNGID; } set { _CTNGID = value; } } [ModelDB] public string CNTRNO { get { return _CNTRNO; } set { _CNTRNO = value; } } [ModelDB] public string CTNSTATUS { get { return _CTNSTATUS; } set { _CTNSTATUS = value; } } [ModelDB] public string CTNSTATUSTIME { get { return _CTNSTATUSTIME; } set { _CTNSTATUSTIME = value; } } [ModelDB] public string PORT { get { return _PORT; } set { _PORT = value; } } private string _BSNO = string.Empty; [ModelDB(MDBType = ModelDBOprationType.Insert)] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } [ModelDB] public string YARD { get { return _YARD; } set { _YARD = value; } } [ModelDB] public string CTNEF { get { return _CTNEF; } set { _CTNEF = value; } } [ModelDB] public string CUSTNO { get { return _CUSTNO; } set { _CUSTNO = value; } } [ModelDB] public string MBLNO { get { return _MBLNO; } set { _MBLNO = value; } } [ModelDB] public string REMARK { get { return _REMARK; } set { _REMARK = value; } } [ModelDB] public string AGENTNAME { get; set; } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CREATEUSER { get { return _CREATEUSER; } set { _CREATEUSER = value; } } public string CREATEUSERREF { get; set; } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CREATETIME { get { return _CREATETIME; } set { _CREATETIME = value; } } [ModelDB] public string HBLNO { get; set; } [ModelDB] public string ETD {get;set;} [ModelDB] public string ETA { get; set; } [ModelDB] public string PORTLOAD_STATOIN { get; set; } [ModelDB] public string PORTLOAD_CNT_TIME { get; set; } [ModelDB] public string PORTLOAD { get; set; } [ModelDB] public string DESTPORT { get; set; } [ModelDB] public string DESTPORT_STATOIN { get; set; } [ModelDB] public string VESSEL { get; set; } [ModelDB] public string VOYNO { get; set; } [ModelDB] public string DEST_CNT_TIME { get; set; } [ModelDB] public string DEST_RTCNT_TIME { get; set; } [ModelDB] public decimal PORTLOAD_FREE_DAYS { get; set; } [ModelDB] public decimal PORTLOAD_OVER_DAYS { get; set; } [ModelDB] public decimal PORTLOAD_OVER_DAYS_FEE { get; set; } [ModelDB] public decimal PORTLOAD_OVER_DAYS_AMT { get; set; } [ModelDB] public decimal DESTPORT_FREE_DAYS { get; set; } [ModelDB] public decimal DESTPORT_OVER_DAYS { get; set; } [ModelDB] public decimal DESTPORT_OVER_DAYS_FEE { get; set; } [ModelDB] public decimal DESTPORT_OVER_DAYS_AMT { get; set; } [ModelDB] public string MODIFYTIME { get; set; } [ModelDB] public string MODIFYUSER { get; set; } [ModelDB] public string TRANSTYPE { get; set; } [ModelDB] public bool BSSTATUS { get; set; } [ModelDB] public bool FEESTATUS { get; set; } public string BillFeeStatus { get; set; } public string BSSTATUSREF { get; set; } public string FEESTATUSREF { get; set; } public string DRFEESTATUS { get; set; } public string CRFEESTATUS { get; set; } [ModelDB] public string ACCDATE { get; set; } [ModelDB] public string OP { get; set; } [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CORPID { get; set; } [ModelDB] public string SALECORPID { get; set; } public string CREATEBSFEEREF { get; set; } #endregion public string CTNEFREF { get; set; } public string CTNALL{ get; set; } public CtnrDyDetail() { TableName = "op_ctnmng_ctnstatus"; } public override string GetBillNoFieldName() { return "GID"; } public override string GetTimeMarkFieldName() { return ""; } } [JsonObject] public class CtnrReturn : ModelObjectBillHead { #region private Fields private string _GID = string.Empty; private string _PORT = string.Empty; private string _YARD = string.Empty; private string _AGENT = string.Empty; private string _REMARK = string.Empty; #endregion [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _GID; } set { _GID = value; } } private string _BSNO = string.Empty; [ModelDB(MDBType = ModelDBOprationType.Insert)] public string BSNO { get { return _BSNO; } set { _BSNO = value; } } [ModelDB] public string PORT { get { return _PORT; } set { _PORT = value; } } [ModelDB] public string YARD { get { return _YARD; } set { _YARD = value; } } [ModelDB] public string AGENT { get { return _AGENT; } set { _AGENT = value; } } [ModelDB] public string REMARK { get { return _REMARK; } set { _REMARK = value; } } [ModelDB] public string CREATETIME { get; set; } [ModelDB] public string CREATEUSER { get; set; } public CtnrReturn() { TableName = "op_ctnmng_return"; } override public string GetBillNoFieldName() { return "BSNO"; } public override string GetTimeMarkFieldName() { return ""; } } [JsonObject] //费用 public class CtnrCost { public string BSNO { get; set; } public string FEETYPE { get; set; } public string CUSTOMERNAME { get; set; } public string FEENAME { get; set; } public decimal FEE { get; set; } public string REMARK { get; set; } public string CURR { get; set; } } public class CNTRSUM { public string CTNALL { get; set; } public int CTNNUM { get; set; } } public class SortObject { public string property { get; set; } public string direction { get; set; } } }