using System;
using com.sun.org.apache.xpath.@internal.operations;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.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;
#endregion
#region Public Properties
[ModelDB]
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; }
public bool CREATEBSFEE { 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]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string CTNGID
{
get { return _CTNGID; }
set { _CTNGID = value; }
}
[ModelDB]
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; }
}
#endregion
public CtnrMngDetail()
{
TableName = "op_ctnmng_detail";
}
public override string GetBillNoFieldName()
{
return "BSNO";
}
}
[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;
#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; }
}
[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;
///
/// 业务状态
///
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; }
}
public CtnrDetail( )
{
TableName = "op_ctnmng_ctndetail";
}
override public string GetBillNoFieldName()
{
return "CTNGID";
}
}
[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]
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; }
#endregion
public string CTNEFREF { 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 = string.Empty;
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]
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 CREATEUSER
{
get { return _CREATEUSER; }
set { _CREATEUSER = value; }
}
[ModelDB]
public string CREATETIME
{
get { return _CREATETIME; }
set { _CREATETIME = value; }
}
#endregion
public string CTNEFREF { get; set; }
public bool CREATEBSFEE { get; set; }
public CtnrDyDetail()
{
TableName = "op_ctnmng_ctnstatus";
}
public override string GetBillNoFieldName()
{
return "GID";
}
public 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 class CNTRSUM
{
public string CTNALL { get; set; }
public int CTNNUM { get; set; }
}
}