using System;
using System.Data;
using System.Collections;
using System.Collections.Generic;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcContainer.Models.MsOpCtnBsCard
{
[JsonObject]
public class OpCtnBsCard : ModelObjectBillHead
{
#region 私有成员
private string _GID = Guid.NewGuid().ToString();//业务编号
private string _CTNNO;//
private string _CTNPROP;//
private string _CUSTOMERNAME;//
private string _BSNO;//
private string _SEABSNO;//
private string _FEESTATUS = "0";//
private string _APPLYNO;//
private string _PREGOODSNAME;
private string _GOODSNAME;//
private string _ETD="";//
private string _NETD = "";//
private string _ETA = "";//
private string _PREETA = "";//
private string _AGENTNAME;//
private string _CUR_PORT;
private string _CUR_DATE;
private decimal _CYCLE_DAY=0;
private decimal _CYCLE_CNTDAY = 0;
private bool _IS_RETURE_EMPTY;
private bool _IS_POD_CLEAN;
private bool _IS_BOOKING;
private string _I_CUSTNO;//
private string _I_ETD="";//
private string _I_ETA="";//
private string _PREI_ETA = "";//
private string _I_MBLNO;//
private string _I_CUSTNAME;//
private string _I_CARRIER;//
private string _I_CONTRACT;//
private string _I_PORTLOAD_CNT_TIME = "";//
private string _I_PORTLOAD;//
private string _I_ARRIVALDATE="";//
private string _I_DEST_CNT_TIME = "";//
private string _I_DEST_RTCNT_TIME = "";//
private string _I_DESTPORT_STATOIN;//
private string _I_DESTPORT;//
private string _CUSTNO;//
private string _OP;//
private string _BOOKGOODNAME;
private string _TRUCKNAME;
private string _TRUCKLINKNAME;
private string _TRUCKLINKTEL;
private string _CURSTATOIN;
private string _LOADADDR;
private string _CUSTOMGOODNAME;
private string _MBLNO;
private string _CARRIER;
private string _PORTLOAD_STATOIN;//
private string _PORTLOAD_CNT_TIME="";//
private string _NPORTLOAD_CNT_TIME = "";//
private string _LOADFACTORY;//
private string _PORTLOAD;//
private string _PORTLOADDATE;//
private decimal _PORTLOAD_FREE_DAYS = 0;
private decimal _PORTLOAD_OVER_DAYS = 0;
private decimal _PORTLOAD_OVER_DAYS_FEE = 0;
private decimal _PORTLOAD_OVER_DAYS_AMT = 0;//
private string _DESTPORT;//
private string _ARRIVALDATE;
private string _DESTAGENTNAME;
private string _DEST_CNT_TIME="";
private string _DEST_RTCNT_TIME="";
private string _DESTPORT_STATOIN;
private decimal _DESTPORT_FREE_DAYS = 0;
private decimal _DESTPORT_OVER_DAYS = 0;//
private decimal _DESTPORT_OVER_DAYS_FEE = 0;//
private decimal _DESTPORT_OVER_DAYS_AMT = 0;
private decimal _DETAIN_CTN_DAYS = 0;
private string _PRE_CNT_TIME="";
private string _REMARKS;
private string _INPUTBY;
private string _INPUTBYREF;
private string _INPUTTIME;
private bool _ISCLOSE;
private string _CLOSEDATE="";
private string _REPAIRSTATUS="未提交";
private string _CLEARINGSTATUS = "未提交";
private string _AUDITSTATUS="未提交";
private string _AUDITBY;
private string _AUDITBYREF;
private string _AUDITTIME;
private string _AUDITRESULT;
private string _COMPANYID;
private bool _IS_PUTCTN;
private string _PUTCTNDATE = "";
private bool _ISPORTLOADDATE;
private string _PUTCTNAUDITSTATUS = "未审核";
private string _PUTCTNAUDITBY;
private string _PUTCTNAUDITBYREF;
private string _PUTCTNAUDITTIME;
private string _PUTCTNAUDITRESULT;
private string _MODIFYTIME;
private string _MODIFYUSER;
private string _SHENTIME;
private string _SERVICE;//运输条款
private bool _NEEDBEHEATED;//是否加热
private string _AGENTINPUTBY;//代理维护人
private bool _EMPTYCTNALLOCATION;//空箱调拨
private string _D_CUSTNO;//
private string _D_ETD = "";//
private string _D_ETA = "";//
private string _PRED_ETA = "";//
private string _D_MBLNO;//
private string _D_CUSTNAME;//
private string _D_CARRIER;//
private string _D_CONTRACT;//
private string _D_PORTLOAD_CNT_TIME = "";//
private string _D_PORTLOAD;//
private string _D_ARRIVALDATE = "";//
private string _D_DEST_CNT_TIME = "";//
private string _D_DEST_RTCNT_TIME = "";//
private string _D_DESTPORT_STATOIN;//
private string _D_DESTPORT;//
#endregion
#region 增加显示的属性列
///
/// 系统判断业务卡中“生成目的港箱使费”这个按钮有没有点过
///
public string MDGXSFSTATUS { get; set; }
#endregion
public OpCtnBsCard()
{
TableName = "op_ctnbscard";
}
#region 读写属性
///
/// 主键唯一值
///
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string CTNNO
{
get { return _CTNNO; }
set { _CTNNO = value; }
}
[ModelDB]
public string CTNPROP
{
get { return _CTNPROP; }
set { _CTNPROP = value; }
}
[ModelDB]
public string BSNO
{
get { return _BSNO; }
set { _BSNO = value; }
}
[ModelDB]
public string SEABSNO
{
get { return _SEABSNO; }
set { _SEABSNO = value; }
}
public string FEESTATUS
{
get { return _FEESTATUS; }
set { _FEESTATUS = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string APPLYNO
{
get { return _APPLYNO; }
set { _APPLYNO = value; }
}
[ModelDB]
public string CUSTOMERNAME
{
get { return _CUSTOMERNAME; }
set { _CUSTOMERNAME = value; }
}
[ModelDB]
public string GOODSNAME
{
get { return _GOODSNAME; }
set { _GOODSNAME = value; }
}
[ModelDB]
public string PREGOODSNAME
{
get { return _PREGOODSNAME; }
set { _PREGOODSNAME = value; }
}
public string GOODSNAMEREF { get; set; }
[ModelDB]
public string ETD
{
get { return _ETD; }
set { _ETD = value; }
}
public string NETD
{
get { return _NETD; }
set { _NETD = value; }
}
[ModelDB]
public string ETA
{
get { return _ETA; }
set { _ETA = value; }
}
[ModelDB]
public string PREETA
{
get { return _PREETA; }
set { _PREETA = value; }
}
[ModelDB]
public string AGENTNAME
{
get { return _AGENTNAME; }
set { _AGENTNAME = value; }
}
public string CUR_PORT
{
get { return _CUR_PORT; }
set { _CUR_PORT = value; }
}
public string CUR_DATE
{
get { return _CUR_DATE; }
set { _CUR_DATE = value; }
}
public decimal CYCLE_DAY
{
get { return _CYCLE_DAY; }
set { _CYCLE_DAY = value; }
}
public decimal CYCLE_CNTDAY
{
get { return _CYCLE_CNTDAY; }
set { _CYCLE_CNTDAY = value; }
}
[ModelDB]
public bool IS_RETURE_EMPTY
{
get { return _IS_RETURE_EMPTY; }
set { _IS_RETURE_EMPTY = value; }
}
public bool IS_DB { get; set; }
[ModelDB]
public bool IS_POD_CLEAN
{
get { return _IS_POD_CLEAN; }
set { _IS_POD_CLEAN = value; }
}
[ModelDB]
public bool IS_BOOKING
{
get { return _IS_BOOKING; }
set { _IS_BOOKING = value; }
}
[ModelDB]
public string I_CUSTNO
{
get { return _I_CUSTNO; }
set { _I_CUSTNO = value; }
}
[ModelDB]
public string I_ETD
{
get { return _I_ETD; }
set { _I_ETD = value; }
}
[ModelDB]
public string I_ETA
{
get { return _I_ETA; }
set { _I_ETA = value; }
}
[ModelDB]
public string PREI_ETA
{
get { return _PREI_ETA; }
set { _PREI_ETA = value; }
}
[ModelDB]
public string I_MBLNO
{
get { return _I_MBLNO; }
set { _I_MBLNO = value; }
}
[ModelDB]
public string I_CUSTNAME
{
get { return _I_CUSTNAME; }
set { _I_CUSTNAME = value; }
}
[ModelDB]
public string I_CARRIER
{
get { return _I_CARRIER; }
set { _I_CARRIER = value; }
}
[ModelDB]
public string I_CONTRACT
{
get { return _I_CONTRACT; }
set { _I_CONTRACT = value; }
}
[ModelDB]
public string I_PORTLOAD_CNT_TIME
{
get { return _I_PORTLOAD_CNT_TIME; }
set { _I_PORTLOAD_CNT_TIME = value; }
}
[ModelDB]
public string I_PORTLOAD
{
get { return _I_PORTLOAD; }
set { _I_PORTLOAD = value; }
}
[ModelDB]
public string I_ARRIVALDATE
{
get { return _I_ARRIVALDATE; }
set { _I_ARRIVALDATE = value; }
}
[ModelDB]
public string I_DEST_CNT_TIME
{
get { return _I_DEST_CNT_TIME; }
set { _I_DEST_CNT_TIME = value; }
}
[ModelDB]
public string I_DEST_RTCNT_TIME
{
get { return _I_DEST_RTCNT_TIME; }
set { _I_DEST_RTCNT_TIME = value; }
}
[ModelDB]
public string I_DESTPORT_STATOIN
{
get { return _I_DESTPORT_STATOIN; }
set { _I_DESTPORT_STATOIN = value; }
}
[ModelDB]
public string I_DESTPORT
{
get { return _I_DESTPORT; }
set { _I_DESTPORT = value; }
}
[ModelDB]
public string CUSTNO
{
get { return _CUSTNO; }
set { _CUSTNO = value; }
}
[ModelDB]
public string OP
{
get { return _OP; }
set { _OP = value; }
}
[ModelDB]
public string BOOKGOODNAME
{
get { return _BOOKGOODNAME; }
set { _BOOKGOODNAME = value; }
}
[ModelDB]
public string TRUCKNAME
{
get { return _TRUCKNAME; }
set { _TRUCKNAME = value; }
}
[ModelDB]
public string TRUCKLINKNAME
{
get { return _TRUCKLINKNAME; }
set { _TRUCKLINKNAME = value; }
}
[ModelDB]
public string TRUCKLINKTEL
{
get { return _TRUCKLINKTEL; }
set { _TRUCKLINKTEL = value; }
}
[ModelDB]
public string CURSTATOIN
{
get { return _CURSTATOIN; }
set { _CURSTATOIN = value; }
}
[ModelDB]
public string LOADADDR
{
get { return _LOADADDR; }
set { _LOADADDR = value; }
}
[ModelDB]
public string CUSTOMGOODNAME
{
get { return _CUSTOMGOODNAME; }
set { _CUSTOMGOODNAME = value; }
}
[ModelDB]
public string MBLNO
{
get { return _MBLNO; }
set { _MBLNO = value; }
}
[ModelDB]
public string CARRIER
{
get { return _CARRIER; }
set { _CARRIER = value; }
}
[ModelDB]
public string PORTLOAD_STATOIN
{
get { return _PORTLOAD_STATOIN; }
set { _PORTLOAD_STATOIN = value; }
}
[ModelDB]
public string PORTLOAD_CNT_TIME
{
get { return _PORTLOAD_CNT_TIME; }
set { _PORTLOAD_CNT_TIME = value; }
}
public string NPORTLOAD_CNT_TIME
{
get { return _NPORTLOAD_CNT_TIME; }
set { _NPORTLOAD_CNT_TIME = value; }
}
[ModelDB]
public string LOADFACTORY
{
get { return _LOADFACTORY; }
set { _LOADFACTORY = value; }
}
[ModelDB]
public string PORTLOAD
{
get { return _PORTLOAD; }
set { _PORTLOAD = value; }
}
[ModelDB]
public string PORTLOADDATE
{
get { return _PORTLOADDATE; }
set { _PORTLOADDATE = value; }
}
[ModelDB]
public decimal PORTLOAD_FREE_DAYS
{
get { return _PORTLOAD_FREE_DAYS; }
set { _PORTLOAD_FREE_DAYS = value; }
}
[ModelDB]
public decimal PORTLOAD_OVER_DAYS
{
get { return _PORTLOAD_OVER_DAYS; }
set { _PORTLOAD_OVER_DAYS = value; }
}
[ModelDB]
public decimal PORTLOAD_OVER_DAYS_FEE
{
get { return _PORTLOAD_OVER_DAYS_FEE; }
set { _PORTLOAD_OVER_DAYS_FEE = value; }
}
[ModelDB]
public decimal PORTLOAD_OVER_DAYS_AMT
{
get { return _PORTLOAD_OVER_DAYS_AMT; }
set { _PORTLOAD_OVER_DAYS_AMT = value; }
}
[ModelDB]
public string DESTPORT
{
get { return _DESTPORT; }
set { _DESTPORT = value; }
}
[ModelDB]
public string ARRIVALDATE
{
get { return _ARRIVALDATE; }
set { _ARRIVALDATE = value; }
}
[ModelDB]
public string DESTAGENTNAME
{
get { return _DESTAGENTNAME; }
set { _DESTAGENTNAME = value; }
}
[ModelDB]
public string DEST_CNT_TIME
{
get { return _DEST_CNT_TIME; }
set { _DEST_CNT_TIME = value; }
}
[ModelDB]
public string DEST_RTCNT_TIME
{
get { return _DEST_RTCNT_TIME; }
set { _DEST_RTCNT_TIME = value; }
}
[ModelDB]
public string DESTPORT_STATOIN
{
get { return _DESTPORT_STATOIN; }
set { _DESTPORT_STATOIN = value; }
}
[ModelDB]
public decimal DESTPORT_FREE_DAYS
{
get { return _DESTPORT_FREE_DAYS; }
set { _DESTPORT_FREE_DAYS = value; }
}
[ModelDB]
public decimal DESTPORT_OVER_DAYS
{
get { return _DESTPORT_OVER_DAYS; }
set { _DESTPORT_OVER_DAYS = value; }
}
[ModelDB]
public decimal DESTPORT_OVER_DAYS_FEE
{
get { return _DESTPORT_OVER_DAYS_FEE; }
set { _DESTPORT_OVER_DAYS_FEE = value; }
}
[ModelDB]
public decimal DESTPORT_OVER_DAYS_AMT
{
get { return _DESTPORT_OVER_DAYS_AMT; }
set { _DESTPORT_OVER_DAYS_AMT = value; }
}
[ModelDB]
public decimal DETAIN_CTN_DAYS
{
get { return _DETAIN_CTN_DAYS; }
set { _DETAIN_CTN_DAYS = value; }
}
[ModelDB]
public string PRE_CNT_TIME
{
get { return _PRE_CNT_TIME; }
set { _PRE_CNT_TIME = value; }
}
[ModelDB]
public string REMARKS
{
get { return _REMARKS; }
set { _REMARKS = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTBY
{
get { return _INPUTBY; }
set { _INPUTBY = value; }
}
public string INPUTBYREF
{
get { return _INPUTBYREF; }
set { _INPUTBYREF = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTTIME
{
get { return _INPUTTIME; }
set { _INPUTTIME = value; }
}
[ModelDB]
public string MODIFYTIME
{
get { return _MODIFYTIME; }
set { _MODIFYTIME = value; }
}
[ModelDB]
public string MODIFYUSER
{
get { return _MODIFYUSER; }
set { _MODIFYUSER = value; }
}
///
/// 运输条款
///
[ModelDB]
public string SERVICE
{
get { return _SERVICE; }
set { _SERVICE = value; }
}
///
/// 是否加热
///
[ModelDB]
public bool NEEDBEHEATED
{
get { return _NEEDBEHEATED; }
set { _NEEDBEHEATED = value; }
}
///
/// 代理维护人
///
[ModelDB]
public string AGENTINPUTBY
{
get { return _AGENTINPUTBY; }
set { _AGENTINPUTBY = value; }
}
///
/// 空箱调拨
///
[ModelDB]
public bool EMPTYCTNALLOCATION
{
get { return _EMPTYCTNALLOCATION; }
set { _EMPTYCTNALLOCATION = value; }
}
public string AUDITSTATUS
{
get { return _AUDITSTATUS; }
set { _AUDITSTATUS = value; }
}
public string AUDITBY
{
get { return _AUDITBY; }
set { _AUDITBY = value; }
}
public string AUDITBYREF
{
get { return _AUDITBYREF; }
set { _AUDITBYREF = value; }
}
public string AUDITTIME
{
get { return _AUDITTIME; }
set { _AUDITTIME = value; }
}
public string SHENTIME
{
get { return _SHENTIME; }
set { _SHENTIME = value; }
}
public string AUDITRESULT
{
get { return _AUDITRESULT; }
set { _AUDITRESULT = value; }
}
public bool ISCLOSE
{
get { return _ISCLOSE; }
set { _ISCLOSE = value; }
}
public string CLOSEDATE
{
get { return _CLOSEDATE; }
set { _CLOSEDATE = value; }
}
public bool IS_PUTCTN
{
get { return _IS_PUTCTN; }
set { _IS_PUTCTN = value; }
}
public string PUTCTNDATE
{
get { return _PUTCTNDATE; }
set { _PUTCTNDATE = value; }
}
public bool ISPORTLOADDATE
{
get { return _ISPORTLOADDATE; }
set { _ISPORTLOADDATE = value; }
}
public string REPAIRSTATUS
{
get { return _REPAIRSTATUS; }
set { _REPAIRSTATUS = value; }
}
public string CLEARINGSTATUS
{
get { return _CLEARINGSTATUS; }
set { _CLEARINGSTATUS = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string COMPANYID
{
get { return _COMPANYID; }
set { _COMPANYID = value; }
}
private decimal _RMBDR = 0;
public decimal RMBDR
{
get { return _RMBDR; }
set { _RMBDR = value; }
}
private decimal _RMBCR = 0;
public decimal RMBCR
{
get { return _RMBCR; }
set { _RMBCR = value; }
}
private decimal _USDDR = 0;
public decimal USDDR
{
get { return _USDDR; }
set { _USDDR = value; }
}
private decimal _USDCR = 0;
public decimal USDCR
{
get { return _USDCR; }
set { _USDCR = value; }
}
private decimal _XSFUSDDR = 0;
public decimal XSFUSDDR
{
get { return _XSFUSDDR; }
set { _XSFUSDDR = value; }
}
private decimal _OTUSDDR = 0;
public decimal OTUSDDR
{
get { return _OTUSDDR; }
set { _OTUSDDR = value; }
}
private decimal _XSFRMBDR = 0;
public decimal XSFRMBDR
{
get { return _XSFRMBDR; }
set { _XSFRMBDR = value; }
}
private decimal _OTRMBDR = 0;
public decimal OTRMBDR
{
get { return _OTRMBDR; }
set { _OTRMBDR = value; }
}
private decimal _XSFDRTTLINUSD = 0;
public decimal XSFDRTTLINUSD
{
get { return _XSFDRTTLINUSD; }
set { _XSFDRTTLINUSD = value; }
}
private decimal _GXFUSDDR = 0;
public decimal GXFUSDDR
{
get { return _GXFUSDDR; }
set { _GXFUSDDR = value; }
}
private decimal _HDFDR = 0;
public decimal HDFDR
{
get { return _HDFDR; }
set { _HDFDR = value; }
}
private decimal _OTDRTTLINUSD = 0;
public decimal OTDRTTLINUSD
{
get { return _OTDRTTLINUSD; }
set { _OTDRTTLINUSD = value; }
}
private decimal _TTLDRINUSD = 0;
public decimal TTLDRINUSD
{
get { return _TTLDRINUSD; }
set { _TTLDRINUSD = value; }
}
private decimal _TTLCRINUSD = 0;
public decimal TTLCRINUSD
{
get { return _TTLCRINUSD; }
set { _TTLCRINUSD = value; }
}
private decimal _PROFITINUSD = 0;
public decimal PROFITINUSD
{
get { return _PROFITINUSD; }
set { _PROFITINUSD = value; }
}
private decimal _DAYPROFITINUSD = 0;
public decimal DAYPROFITINUSD
{
get { return _DAYPROFITINUSD; }
set { _DAYPROFITINUSD = value; }
}
private decimal _OPPROFITINUSD = 0;
public decimal OPPROFITINUSD
{
get { return _OPPROFITINUSD; }
set { _OPPROFITINUSD = value; }
}
private string _CTNRENT = "";
public string CTNRENT
{
get { return _CTNRENT; }
set { _CTNRENT = value; }
}
private decimal _RENTPROFITINUSD = 0;
public decimal RENTPROFITINUSD
{
get { return _RENTPROFITINUSD; }
set { _RENTPROFITINUSD = value; }
}
private decimal _ACPROFITINUSD = 0;
public decimal ACPROFITINUSD
{
get { return _ACPROFITINUSD; }
set { _ACPROFITINUSD = value; }
}
private string _LINES ="";
public string LINES
{
get { return _LINES; }
set { _LINES = value; }
}
private string _RTCNT_TIME = "";
public string RTCNT_TIME
{
get { return _RTCNT_TIME; }
set { _RTCNT_TIME = value; }
}
public string PUTCTNAUDITSTATUS
{
get { return _PUTCTNAUDITSTATUS; }
set { _PUTCTNAUDITSTATUS = value; }
}
public string PUTCTNAUDITBY
{
get { return _PUTCTNAUDITBY; }
set { _PUTCTNAUDITBY = value; }
}
public string PUTCTNAUDITBYREF
{
get { return _PUTCTNAUDITBYREF; }
set { _PUTCTNAUDITBYREF = value; }
}
public string PUTCTNAUDITTIME
{
get { return _PUTCTNAUDITTIME; }
set { _PUTCTNAUDITTIME = value; }
}
public string PUTCTNAUDITRESULT
{
get { return _PUTCTNAUDITRESULT; }
set { _PUTCTNAUDITRESULT = value; }
}
[ModelDB]
public string D_CUSTNO
{
get { return _D_CUSTNO; }
set { _D_CUSTNO = value; }
}
[ModelDB]
public string D_ETD
{
get { return _D_ETD; }
set { _D_ETD = value; }
}
[ModelDB]
public string D_ETA
{
get { return _D_ETA; }
set { _D_ETA = value; }
}
[ModelDB]
public string PRED_ETA
{
get { return _PRED_ETA; }
set { _PRED_ETA = value; }
}
[ModelDB]
public string D_MBLNO
{
get { return _D_MBLNO; }
set { _D_MBLNO = value; }
}
[ModelDB]
public string D_CUSTNAME
{
get { return _D_CUSTNAME; }
set { _D_CUSTNAME = value; }
}
[ModelDB]
public string D_CARRIER
{
get { return _D_CARRIER; }
set { _D_CARRIER = value; }
}
[ModelDB]
public string D_CONTRACT
{
get { return _D_CONTRACT; }
set { _D_CONTRACT = value; }
}
[ModelDB]
public string D_PORTLOAD_CNT_TIME
{
get { return _D_PORTLOAD_CNT_TIME; }
set { _D_PORTLOAD_CNT_TIME = value; }
}
[ModelDB]
public string D_PORTLOAD
{
get { return _D_PORTLOAD; }
set { _D_PORTLOAD = value; }
}
[ModelDB]
public string D_ARRIVALDATE
{
get { return _D_ARRIVALDATE; }
set { _D_ARRIVALDATE = value; }
}
[ModelDB]
public string D_DEST_CNT_TIME
{
get { return _D_DEST_CNT_TIME; }
set { _D_DEST_CNT_TIME = value; }
}
[ModelDB]
public string D_DEST_RTCNT_TIME
{
get { return _D_DEST_RTCNT_TIME; }
set { _D_DEST_RTCNT_TIME = value; }
}
[ModelDB]
public string D_DESTPORT_STATOIN
{
get { return _D_DESTPORT_STATOIN; }
set { _D_DESTPORT_STATOIN = value; }
}
[ModelDB]
public string D_DESTPORT
{
get { return _D_DESTPORT; }
set { _D_DESTPORT = value; }
}
[ModelDB]
public string RTCTNDATE
{
get;
set;
}
private bool _ISSHORTCTN = false;
[ModelDB]
public bool ISSHORTCTN
{
get { return _ISSHORTCTN; }
set { _ISSHORTCTN = value; }
}
#endregion
public string CheckUPDDate() {
var result = "";
DATEFIELD.clear();
new DATEFIELD("PORTLOADDATE", "起运港进港日期");
new DATEFIELD("PORTLOAD_CNT_TIME", "起运港提箱日期");
new DATEFIELD("ETD", "开船日期");
new DATEFIELD("ETA", "到港日期");
new DATEFIELD("DEST_CNT_TIME", "目的港提箱日期");
new DATEFIELD("DEST_RTCNT_TIME", "目的港还箱日期");
new DATEFIELD("I_PORTLOAD_CNT_TIME", "空返起运港提箱日期");
new DATEFIELD("I_ETD", "空返开船日期");
new DATEFIELD("I_ETA", "空返到港日期");
new DATEFIELD("I_DEST_CNT_TIME", "空返目的港提箱日期");
new DATEFIELD("I_DEST_RTCNT_TIME", "空返目的港还箱日期");
var PREVDate = new DATEFIELD();
var CurrDate = new DATEFIELD();
try
{
foreach (var _DATE in DATEFIELD.DATEFIELDList)
{
CurrDate = _DATE;
if (PREVDate.CNNAME == "")
{
PREVDate = CurrDate;
continue;
}
var CurrDateStr = getDateStr(CurrDate.FIELDNAME);
if (string.IsNullOrWhiteSpace(CurrDateStr)|| CurrDateStr=="null")
{
PREVDate = CurrDate;
continue;
}
var PREVDateStr = getDateStr(PREVDate.FIELDNAME);
if (string.IsNullOrWhiteSpace(PREVDateStr))
{
result = CurrDate.CNNAME + " 有数据而 " + PREVDate.CNNAME + " 数据为空,请确认数据 ";
break;
}
var CurrDateTime = Convert.ToDateTime(CurrDateStr);
var PREVDateTime = Convert.ToDateTime(PREVDateStr);
if (PREVDateTime> CurrDateTime)
{
result = CurrDate.CNNAME + " 的日期不能晚于 " + PREVDate.CNNAME + " 的日期,请确认数据 ";
break;
}
PREVDate = CurrDate;
}
}
catch (Exception e) {
result = e.Message;
}
return result;
}
private string getDateStr(string fieldname) {
return this.GetPropertyValue(fieldname).ToString().Replace("'","");
}
}
public class DATEFIELD {
public static List DATEFIELDList;
public static void clear() {
if (DATEFIELDList == null) {
DATEFIELDList = new List();
}
DATEFIELDList.Clear();
}
public string FIELDNAME { get; set; }
public string CNNAME { get; set; }
public DATEFIELD(string _n1="", string _n2="") {
FIELDNAME = _n1;
CNNAME = _n2;
if(_n1!=""&&_n2!="")
DATEFIELDList.Add(this);
}
}
[JsonObject]
public class OpCtnRepair : ModelObjectBillBody
{
#region private Fields
private string _GID = Guid.NewGuid().ToString();//业务编号
private string _LINKGID = "*";
private string _CTNNO;//
private string _BSNO;//
private string _REPAIRITEMS = "";
private string _REPAIRTIME = "";
private string _IMAGE_LINDADDR = "";
private string _IMAGE_LINDADDR2 ="";
private string _IMAGE1 = "";
private string _IMAGE2= "";
private string _CURSTATOIN = "";
private string _FEENAME = "";
private string _CURRENCY = "";
private decimal _AMOUNT = 0;
private string _INPUTBY;
private string _INPUTBYREF;
private string _INPUTTIME;
private string _AUDITSTATUS = "录入状态";
private string _AUDITBY;
private string _AUDITTIME;
private string _AUDITRESULT;
private string _REMARKS;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string LINKGID
{
get { return _LINKGID; }
set { _LINKGID = value; }
}
public string CTNNO
{
get { return _CTNNO; }
set { _CTNNO = value; }
}
public string BSNO
{
get { return _BSNO; }
set { _BSNO = value; }
}
[ModelDB]
public string REPAIRITEMS
{
get { return _REPAIRITEMS; }
set { _REPAIRITEMS = value; }
}
[ModelDB]
public string REPAIRTIME
{
get { return _REPAIRTIME; }
set { _REPAIRTIME = value; }
}
public string IMAGE_LINDADDR
{
get { return _IMAGE_LINDADDR; }
set { _IMAGE_LINDADDR = value; }
}
public string IMAGE_LINDADDR2
{
get { return _IMAGE_LINDADDR2; }
set { _IMAGE_LINDADDR2 = value; }
}
public string IMAGE1
{
get { return _IMAGE1; }
set { _IMAGE1= value; }
}
public string IMAGE2
{
get { return _IMAGE2; }
set { _IMAGE2 = value; }
}
[ModelDB]
public string CURSTATOIN
{
get { return _CURSTATOIN; }
set { _CURSTATOIN = value; }
}
[ModelDB]
public string FEENAME
{
get { return _FEENAME; }
set { _FEENAME = value; }
}
[ModelDB]
public decimal AMOUNT
{
get { return _AMOUNT; }
set { _AMOUNT = value; }
}
[ModelDB]
public string CURRENCY
{
get { return _CURRENCY; }
set { _CURRENCY = value; }
}
[ModelDB]
public string REMARKS
{
get { return _REMARKS; }
set { _REMARKS = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTBY
{
get { return _INPUTBY; }
set { _INPUTBY = value; }
}
public string INPUTBYREF
{
get { return _INPUTBYREF; }
set { _INPUTBYREF = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTTIME
{
get { return _INPUTTIME; }
set { _INPUTTIME = value; }
}
public string AUDITSTATUS
{
get { return _AUDITSTATUS; }
set { _AUDITSTATUS = value; }
}
public string AUDITBY
{
get { return _AUDITBY; }
set { _AUDITBY = value; }
}
public string AUDITTIME
{
get { return _AUDITTIME; }
set { _AUDITTIME = value; }
}
public string AUDITRESULT
{
get { return _AUDITRESULT; }
set { _AUDITRESULT = value; }
}
#endregion
public OpCtnRepair()
{
TableName = "op_ctnrepair";
}
}
[JsonObject]
public class OpCtnRepairImg : ModelObjectBillBody
{
#region private Fields
private string _GID = Guid.NewGuid().ToString();//业务编号
private string _LINKGID = "*";
private string _CTNNO;//
private string _IMAGEDESC = "";
private string _IMAGE_LINDADDR1 = "";
private string _IMAGE_LINDADDR2 = "";
private string _IMAGE1 = "";
private string _IMAGE2 = "";
private string _INPUTBY;
private string _INPUTTIME;
private string _REMARKS;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string LINKGID
{
get { return _LINKGID; }
set { _LINKGID = value; }
}
public string CTNNO
{
get { return _CTNNO; }
set { _CTNNO = value; }
}
[ModelDB]
public string IMAGEDESC
{
get { return _IMAGEDESC; }
set { _IMAGEDESC = value; }
}
public string IMAGE_LINDADDR1
{
get { return _IMAGE_LINDADDR1; }
set { _IMAGE_LINDADDR1 = value; }
}
public string IMAGE_LINDADDR2
{
get { return _IMAGE_LINDADDR2; }
set { _IMAGE_LINDADDR2 = value; }
}
public string IMAGE1
{
get { return _IMAGE1; }
set { _IMAGE1 = value; }
}
public string IMAGE2
{
get { return _IMAGE2; }
set { _IMAGE2 = value; }
}
[ModelDB]
public string REMARKS
{
get { return _REMARKS; }
set { _REMARKS = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTBY
{
get { return _INPUTBY; }
set { _INPUTBY = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTTIME
{
get { return _INPUTTIME; }
set { _INPUTTIME = value; }
}
#endregion
public OpCtnRepairImg()
{
TableName = "op_ctnbscard_img";
}
}
[JsonObject]
public class OpCtnDelivery : ModelObjectBillBody
{
#region private Fields
private string _GID = Guid.NewGuid().ToString();//业务编号
private string _LINKGID = "*";
private string _CHECKITEMS = "";
private string _INPUTBY;
private string _INPUTBYREF;
private string _INPUTTIME;
private string _REMARKS;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string LINKGID
{
get { return _LINKGID; }
set { _LINKGID = value; }
}
[ModelDB]
public string CHECKITEMS
{
get { return _CHECKITEMS; }
set { _CHECKITEMS = value; }
}
[ModelDB]
public string REMARKS
{
get { return _REMARKS; }
set { _REMARKS = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTBY
{
get { return _INPUTBY; }
set { _INPUTBY = value; }
}
public string INPUTBYREF
{
get { return _INPUTBYREF; }
set { _INPUTBYREF = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTTIME
{
get { return _INPUTTIME; }
set { _INPUTTIME = value; }
}
#endregion
public OpCtnDelivery()
{
TableName = "op_ctndelivery";
}
}
[JsonObject]
public class OpCtnClearing : ModelObjectBillBody
{
#region private Fields
private string _GID = Guid.NewGuid().ToString();//业务编号
private string _LINKGID = "*";
private string _CTNNO;//
private string _BSNO;//
private string _INSTATOINTIME = "";
private string _IMAGE1;
private string _IMAGE_LINDADDR;
private string _EIR;
private string _EIRPATH;
private string _CURSTATOIN = "";
private string _CLEARINGMODE;
private string _PREGOODSNAME;
private bool _ISCLEAR_CERT;
private string _CHECKGOV;
private bool _ISCLEAR_PLAN;
private string _CLEARTIME;
private string _IMAGE_CLEAR;
private string _IMAGE_CHECKGOV;
private string _IMAGE_CLEARPATH;
private string _IMAGE_CHECKGOVPATH;
private bool _ISCOMPLETE;
private string _FEENAME = "";
private string _CURRENCY = "";
private decimal _AMOUNT = 0;
private string _INPUTBY;
private string _INPUTBYREF;
private string _INPUTTIME;
private string _REMARKS;
private string _AUDITSTATUS="录入状态";
private string _AUDITBY;
private string _AUDITTIME;
private string _AUDITRESULT;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string LINKGID
{
get { return _LINKGID; }
set { _LINKGID = value; }
}
public string CTNNO
{
get { return _CTNNO; }
set { _CTNNO = value; }
}
public string BSNO
{
get { return _BSNO; }
set { _BSNO = value; }
}
[ModelDB]
public string INSTATOINTIME
{
get { return _INSTATOINTIME; }
set { _INSTATOINTIME = value; }
}
public string IMAGE_LINDADDR
{
get { return _IMAGE_LINDADDR; }
set { _IMAGE_LINDADDR = value; }
}
public string IMAGE1
{
get { return _IMAGE1; }
set { _IMAGE1 = value; }
}
public string EIR
{
get { return _EIR; }
set { _EIR = value; }
}
public string EIRPATH
{
get { return _EIRPATH; }
set { _EIRPATH = value; }
}
[ModelDB]
public string CURSTATOIN
{
get { return _CURSTATOIN; }
set { _CURSTATOIN = value; }
}
[ModelDB]
public string CLEARINGMODE
{
get { return _CLEARINGMODE; }
set { _CLEARINGMODE = value; }
}
[ModelDB]
public string PREGOODSNAME
{
get { return _PREGOODSNAME; }
set { _PREGOODSNAME = value; }
}
[ModelDB]
public bool ISCLEAR_CERT
{
get { return _ISCLEAR_CERT; }
set { _ISCLEAR_CERT = value; }
}
[ModelDB]
public string CHECKGOV
{
get { return _CHECKGOV; }
set { _CHECKGOV = value; }
}
[ModelDB]
public bool ISCLEAR_PLAN
{
get { return _ISCLEAR_PLAN; }
set { _ISCLEAR_PLAN = value; }
}
[ModelDB]
public string CLEARTIME
{
get { return _CLEARTIME; }
set { _CLEARTIME = value; }
}
public string IMAGE_CLEAR
{
get { return _IMAGE_CLEAR; }
set { _IMAGE_CLEAR = value; }
}
public string IMAGE_CHECKGOV
{
get { return _IMAGE_CHECKGOV; }
set { _IMAGE_CHECKGOV = value; }
}
public string IMAGE_CLEARPATH
{
get { return _IMAGE_CLEARPATH; }
set { _IMAGE_CLEARPATH = value; }
}
public string IMAGE_CHECKGOVPATH
{
get { return _IMAGE_CHECKGOVPATH; }
set { _IMAGE_CHECKGOVPATH = value; }
}
[ModelDB]
public bool ISCOMPLETE
{
get { return _ISCOMPLETE; }
set { _ISCOMPLETE = value; }
}
[ModelDB]
public string FEENAME
{
get { return _FEENAME; }
set { _FEENAME = value; }
}
[ModelDB]
public decimal AMOUNT
{
get { return _AMOUNT; }
set { _AMOUNT = value; }
}
[ModelDB]
public string CURRENCY
{
get { return _CURRENCY; }
set { _CURRENCY = value; }
}
[ModelDB]
public string REMARKS
{
get { return _REMARKS; }
set { _REMARKS = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTBY
{
get { return _INPUTBY; }
set { _INPUTBY = value; }
}
public string INPUTBYREF
{
get { return _INPUTBYREF; }
set { _INPUTBYREF = value; }
}
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTTIME
{
get { return _INPUTTIME; }
set { _INPUTTIME = value; }
}
public string AUDITSTATUS
{
get { return _AUDITSTATUS; }
set { _AUDITSTATUS = value; }
}
public string AUDITBY
{
get { return _AUDITBY; }
set { _AUDITBY = value; }
}
public string AUDITTIME
{
get { return _AUDITTIME; }
set { _AUDITTIME = value; }
}
public string AUDITRESULT
{
get { return _AUDITRESULT; }
set { _AUDITRESULT = value; }
}
#endregion
public OpCtnClearing()
{
TableName = "op_ctnclearing";
}
}
}