using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.MvcShipping.Models.MsOpSeaeBill
{
[JsonObject]
public class MsOpSeaeBill : ModelObjectBillHead
{
#region 读写属性
private string _as_id ="";
///
/// 编号
///
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string AS_ID
{
get { return _as_id; }
set { _as_id = value; }
}
private string _bsno = "topseae" + Guid.NewGuid().ToString();
///
/// 业务编号
///
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string BSNO
{
get{ return _bsno; }
set{ _bsno = value; }
}
private string _custno = "";
[ModelDB]
public string CUSTNO
{
get { return _custno; }
set { _custno = value; }
}
private string _mblno = "";
///
/// 主提单号
///
[ModelDB]
public string MBLNO
{
get{ return _mblno; }
set{ _mblno = value; }
}
private string _hblno = "";
///
/// 分提单号
///
[ModelDB]
public string HBLNO
{
get{ return _hblno; }
set{ _hblno = value; }
}
private string _ORDERCONTENT = "";
///
/// 委托内容
///
[ModelDB]
public string ORDERCONTENT
{
get { return _ORDERCONTENT; }
set { _ORDERCONTENT = value; }
}
private string _ORDERCORP = "";
///
/// 委托对象
///
[ModelDB]
public string ORDERCORP
{
get { return _ORDERCORP; }
set { _ORDERCORP = value; }
}
private string _template = "";
///
/// 模板类型
///
[ModelDB]
public string TEMPLATE
{
get { return _template; }
set { _template = value; }
}
private string _billtype = "";
///
/// 提单类型
///
[ModelDB]
public string BILLTYPE
{
get { return _billtype; }
set { _billtype = value; }
}
private string _inputby = "";
///
/// 录入人
///
[ModelDB]
public string INPUTBY
{
get{ return _inputby; }
set{ _inputby = value; }
}
private string _shipperid = "";
///
/// 发货人
///
[ModelDB]
public string SHIPPERID
{
get { return _shipperid; }
set { _shipperid = value; }
}
private string _consigneeid = "";
///
/// 收货人
///
[ModelDB]
public string CONSIGNEEID
{
get { return _consigneeid; }
set { _consigneeid = value; }
}
private string _notifypartyid = "";
///
/// 通知人
///
[ModelDB]
public string NOTIFYPARTYID
{
get { return _notifypartyid; }
set { _notifypartyid = value; }
}
private string _notifypartyidsecond = "";
///
/// 通知人
///
[ModelDB]
public string NOTIFYPARTYIDSECOND
{
get { return _notifypartyidsecond; }
set { _notifypartyidsecond = value; }
}
private string _shipper = "";
///
/// 发货人内容
///
[ModelDB]
public string SHIPPER
{
get { return _shipper; }
set { _shipper = value; }
}
private string _consignee = "";
///
/// 收货人内容
///
[ModelDB]
public string CONSIGNEE
{
get { return _consignee; }
set { _consignee = value; }
}
private string _notifyparty = "";
///
/// 通知人内容
///
[ModelDB]
public string NOTIFYPARTY
{
get { return _notifyparty; }
set { _notifyparty = value; }
}
private string _notifypartysecond = "";
///
/// 第二通知人内容
///
[ModelDB]
public string NOTIFYPARTYSECOND
{
get { return _notifypartysecond; }
set { _notifypartysecond = value; }
}
private string _agentid = "";
///
/// 国外代理
///
[ModelDB]
public string AGENTID
{
get { return _agentid; }
set { _agentid = value; }
}
private string _agent = "";
///
/// 国外代理内容
///
[ModelDB]
public string AGENT
{
get { return _agent; }
set { _agent = value; }
}
private string _yard = "";
///
/// 场站/靠泊码头
///
[ModelDB]
public string YARD
{
get { return _yard; }
set { _yard = value; }
}
private string _vessel = "";
///
/// 船名
///
[ModelDB]
public string VESSEL
{
get{ return _vessel; }
set{ _vessel = value; }
}
private string _voyno = "";
///
/// 航次
///
[ModelDB]
public string VOYNO
{
get{ return _voyno; }
set{ _voyno = value; }
}
private string _etd;
///
/// 开船日期
///
[ModelDB]
public string ETD
{
get { return _etd; }
set { _etd = value; }
}
private string _closingdate;
///
/// 截港日期
///
[ModelDB]
public string CLOSINGDATE
{
get { return _closingdate; }
set { _closingdate = value; }
}
private string _eta;
///
/// 预抵日期
///
[ModelDB]
public string ETA
{
get { return _eta; }
set { _eta = value; }
}
private string _placereceipt = "";
///
/// 收货地
///
[ModelDB]
public string PLACERECEIPT
{
get { return _placereceipt; }
set { _placereceipt = value; }
}
private string _portloadid = "";
///
/// 装货港代码
///
[ModelDB]
public string PORTLOADID
{
get{ return _portloadid; }
set{ _portloadid = value; }
}
private string _portload = "";
///
/// 装货港
///
[ModelDB]
public string PORTLOAD
{
get{ return _portload; }
set{ _portload = value; }
}
private string _portdischargeid = "";
///
/// 卸货港代码
///
[ModelDB]
public string PORTDISCHARGEID
{
get{ return _portdischargeid; }
set{ _portdischargeid = value; }
}
private string _portdischarge = "";
///
/// 卸货港
///
[ModelDB]
public string PORTDISCHARGE
{
get{ return _portdischarge; }
set{ _portdischarge = value; }
}
private string _placedeliveryid = "";
///
/// 交货地代码
///
[ModelDB]
public string PLACEDELIVERYID
{
get { return _placedeliveryid; }
set { _placedeliveryid = value; }
}
private string _placedelivery = "";
///
/// 交货地
///
[ModelDB]
public string PLACEDELIVERY
{
get { return _placedelivery; }
set { _placedelivery = value; }
}
private string _destinationid = "";
///
/// 目的地代码
///
[ModelDB]
public string DESTINATIONID
{
get { return _destinationid; }
set { _destinationid = value; }
}
private string _destination = "";
///
/// 目的地
///
[ModelDB]
public string DESTINATION
{
get { return _destination; }
set { _destination = value; }
}
private string _nobill = "";
///
/// 提单份数
///
[ModelDB]
public string NOBILL
{
get { return _nobill; }
set { _nobill = value; }
}
private string _issuetype = "";
///
/// 签单方式
///
[ModelDB]
public string ISSUETYPE
{
get { return _issuetype; }
set { _issuetype = value; }
}
private string _issuedate;
///
/// 签单日期
///
[ModelDB]
public string ISSUEDATE
{
get { return _issuedate; }
set { _issuedate = value; }
}
private string _issueplace = "";
///
/// 签单地点
///
[ModelDB]
public string ISSUEPLACE
{
get { return _issueplace; }
set { _issueplace = value; }
}
private string _BLISSUESTATUS = "";
///
///
public string BLISSUESTATUS
{
get { return _BLISSUESTATUS; }
set { _BLISSUESTATUS = value; }
}
private string _blfrt = "";
///
/// 付费方式
///
[ModelDB]
public string BLFRT
{
get{ return _blfrt; }
set{ _blfrt = value; }
}
private string _prepardat = "";
///
/// 预付地点
///
[ModelDB]
public string PREPARDAT
{
get{ return _prepardat; }
set{ _prepardat = value; }
}
private string _payableat = "";
///
/// 到付地点
///
[ModelDB]
public string PAYABLEAT
{
get{ return _payableat; }
set{ _payableat = value; }
}
private string _service = "CY-CY";
///
/// 运输条款
///
[ModelDB]
public string SERVICE
{
get{ return _service; }
set{ _service = value; }
}
private string _marks = "";
///
/// 唛头
///
[ModelDB]
public string MARKS
{
get{ return _marks; }
set{ _marks = value; }
}
private string _cntrsealno = "";
///
/// 箱号封号
///
[ModelDB]
public string CNTRSEALNO
{
get{ return _cntrsealno; }
set{ _cntrsealno = value; }
}
private string _nopkgs = "";
///
/// 件数包装
///
[ModelDB]
public string NOPKGS
{
get{ return _nopkgs; }
set{ _nopkgs = value; }
}
private string _description = "";
///
/// 货物描述
///
[ModelDB]
public string DESCRIPTION
{
get{ return _description; }
set{ _description = value; }
}
private string _grossweight = "";
///
/// 货物毛重
///
[ModelDB]
public string GROSSWEIGHT
{
get{ return _grossweight; }
set{ _grossweight = value; }
}
private string _measurement = "";
///
/// 货物尺码
///
[ModelDB]
public string MEASUREMENT
{
get{ return _measurement; }
set{ _measurement = value; }
}
private int _pkgs = 0;
///
/// 件数
///
[ModelDB]
public int PKGS
{
get{ return _pkgs; }
set{ _pkgs = value; }
}
private string _kindpkgs = "";
///
/// 件数包装
///
[ModelDB]
public string KINDPKGS
{
get{ return _kindpkgs; }
set{ _kindpkgs = value; }
}
private decimal _cbm = 0;
///
/// 立方数/尺码
///
[ModelDB]
public decimal CBM
{
get{ return _cbm; }
set{ _cbm = value; }
}
private string _totalno = "";
///
/// 件数大写
///
[ModelDB]
public string TOTALNO
{
get{ return _totalno; }
set{ _totalno = value; }
}
private string _cntrno = "";
///
/// 集装箱大写
///
[ModelDB]
public string CNTRNO
{
get { return _cntrno; }
set { _cntrno = value; }
}
private string _cntrtotal = "";
///
/// 集装箱全部内容
///
[ModelDB]
public string CNTRTOTAL
{
get { return _cntrtotal; }
set { _cntrtotal = value; }
}
private string _goodsname = "";
///
/// 品名
///
[ModelDB]
public string GOODSNAME
{
get { return _goodsname; }
set { _goodsname = value; }
}
private decimal _kgs = 0;
///
/// 毛重
///
[ModelDB]
public decimal KGS
{
get { return _kgs; }
set { _kgs = value; }
}
private string _placereceiptid = "";
///
/// 收货地代码
///
[ModelDB]
public string PLACERECEIPTID
{
get{ return _placereceiptid; }
set{ _placereceiptid = value; }
}
private string _remarks = "";
///
/// 备注
///
[ModelDB]
public string REMARKS
{
get { return _remarks; }
set { _remarks = value; }
}
private string _shippercode = "";
///
/// 发货人CODE
///
[ModelDB]
public string SHIPPERCODE
{
get { return _shippercode; }
set { _shippercode = value; }
}
private string _shippercountry = "CN";
[ModelDB]
public string SHIPPERCOUNTRY
{
get { return _shippercountry; }
set { _shippercountry = value; }
}
private string _shippertel = "";
[ModelDB]
public string SHIPPERTEL
{
get { return _shippertel; }
set { _shippertel = value; }
}
private string _shipperemail = "";
[ModelDB]
public string SHIPPEREMAIL
{
get { return _shipperemail; }
set { _shipperemail = value; }
}
private string _consigneecode = "";
///
/// 收货人CODE
///
[ModelDB]
public string CONSIGNEECODE
{
get { return _consigneecode; }
set { _consigneecode = value; }
}
private string _CONSIGNEEcountry = "";
[ModelDB]
public string CONSIGNEECOUNTRY
{
get { return _CONSIGNEEcountry; }
set { _CONSIGNEEcountry = value; }
}
private string _consigneetel = "";
[ModelDB]
public string CONSIGNEETEL
{
get { return _consigneetel; }
set { _consigneetel = value; }
}
private string _consigneeemail = "";
[ModelDB]
public string CONSIGNEEEMAIL
{
get { return _consigneeemail; }
set { _consigneeemail = value; }
}
private string _notifypartycode = "";
///
/// 通知人CODE
///
[ModelDB]
public string NOTIFYPARTYCODE
{
get { return _notifypartycode; }
set { _notifypartycode = value; }
}
private string _notifypartycodesecond = "";
///
/// 第二通知人CODE
///
[ModelDB]
public string NOTIFYPARTYCODESECOND
{
get { return _notifypartycodesecond; }
set { _notifypartycodesecond = value; }
}
private string _NOTIFYPARTYcountry = "";
[ModelDB]
public string NOTIFYPARTYCOUNTRY
{
get { return _NOTIFYPARTYcountry; }
set { _NOTIFYPARTYcountry = value; }
}
private string _NOTIFYPARTYcountrysecond = "";
[ModelDB]
public string NOTIFYPARTYCOUNTRYSECOND
{
get { return _NOTIFYPARTYcountrysecond; }
set { _NOTIFYPARTYcountrysecond = value; }
}
private string _notifypartytel = "";
[ModelDB]
public string NOTIFYPARTYTEL
{
get { return _notifypartytel; }
set { _notifypartytel = value; }
}
private string _notifypartytelsecond = "";
[ModelDB]
public string NOTIFYPARTYTELSECOND
{
get { return _notifypartytelsecond; }
set { _notifypartytelsecond = value; }
}
private string _notifypartyemail = "";
[ModelDB]
public string NOTIFYPARTYEMAIL
{
get { return _notifypartyemail; }
set { _notifypartyemail = value; }
}
private string _notifypartyemailsecond = "";
[ModelDB]
public string NOTIFYPARTYEMAILSECOND
{
get { return _notifypartyemailsecond; }
set { _notifypartyemailsecond = value; }
}
private string _CONTRACTNO;
///
/// 运费协议号 取OP_SEAE数据
///
public string CONTRACTNO
{
get { return _CONTRACTNO; }
set { _CONTRACTNO = value; }
}
private string _HSCODE;
///
/// HS代码 取OP_SEAE数据
///
public string HSCODE
{
get { return _HSCODE; }
set { _HSCODE = value; }
}
private string _CARRIER;
///
/// 船公司 取OP_SEAE数据
///
public string CARRIER
{
get { return _CARRIER; }
set { _CARRIER = value; }
}
private bool _ISCONTAINERSOC;
///
/// 是否SOC箱 取OP_SEAE数据
///
public bool ISCONTAINERSOC
{
get { return _ISCONTAINERSOC; }
set { _ISCONTAINERSOC = value; }
}
private string _CARGOID;
///
/// 货物类型 (O/S等) 取OP_SEAE数据
///
public string CARGOID
{
get { return _CARGOID; }
set { _CARGOID = value; }
}
private string _COPYNOBILL;
///
/// 副本份数 (O/S等) 取OP_SEAE数据
///
public string COPYNOBILL
{
get { return _COPYNOBILL; }
set { _COPYNOBILL = value; }
}
private bool _ishp=false;
///
/// 业务编号
///
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public bool ISHP
{
get { return _ishp; }
set { _ishp = value; }
}
private string _printstatus ="未打印";
///
/// 业务编号
///
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string PRINTSTATUS
{
get { return _printstatus; }
set { _printstatus = value; }
}
private string _INPUTDATE = DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss");
///
/// 业务编号
///
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string INPUTDATE
{
get { return _INPUTDATE; }
set { _INPUTDATE = value; }
}
private string _shippername = "";
///
/// 发货人
///
[ModelDB]
public string SHIPPERNAME
{
get { return _shippername; }
set { _shippername = value; }
}
private string _shipperaddr1 = "";
///
/// 发货人
///
[ModelDB]
public string SHIPPERADDR1
{
get { return _shipperaddr1; }
set { _shipperaddr1 = value; }
}
private string _consigneename = "";
///
/// 收货人
///
[ModelDB]
public string CONSIGNEENAME
{
get { return _consigneename; }
set { _consigneename = value; }
}
private string _consigneeaddr1 = "";
[ModelDB]
public string CONSIGNEEADDR1
{
get { return _consigneeaddr1; }
set { _consigneeaddr1 = value; }
}
private string _notifypartyname = "";
///
/// 通知人
///
[ModelDB]
public string NOTIFYPARTYNAME
{
get { return _notifypartyname; }
set { _notifypartyname = value; }
}
private string _notifypartyaddr1 = "";
[ModelDB]
public string NOTIFYPARTYADDR1
{
get { return _notifypartyaddr1; }
set { _notifypartyaddr1 = value; }
}
private string _SCACCODE = "";
[ModelDB]
public string SCACCODE
{
get { return _SCACCODE; }
set { _SCACCODE = value; }
}
private string _DELIVERYTONAME = "";
[ModelDB]
public string DELIVERYTONAME
{
get { return _DELIVERYTONAME; }
set { _DELIVERYTONAME = value; }
}
private string _DELIVERYTOADDR1 = "";
[ModelDB]
public string DELIVERYTOADDR1
{
get { return _DELIVERYTOADDR1; }
set { _DELIVERYTOADDR1 = value; }
}
private string _DELIVERYTOADDR2 = "";
[ModelDB]
public string DELIVERYTOADDR2
{
get { return _DELIVERYTOADDR2; }
set { _DELIVERYTOADDR2 = value; }
}
private string _DELIVERYTOTEL = "";
[ModelDB]
public string DELIVERYTOTEL
{
get { return _DELIVERYTOTEL; }
set { _DELIVERYTOTEL = value; }
}
private string _DELIVERYTOPOSTCODE = "";
[ModelDB]
public string DELIVERYTOPOSTCODE
{
get { return _DELIVERYTOPOSTCODE; }
set { _DELIVERYTOPOSTCODE = value; }
}
private string _DELIVERYTOCOUNTRY = "";
[ModelDB]
public string DELIVERYTOCOUNTRY
{
get { return _DELIVERYTOCOUNTRY; }
set { _DELIVERYTOCOUNTRY = value; }
}
private string _DELIVERYTOCITY = "";
[ModelDB]
public string DELIVERYTOCITY
{
get { return _DELIVERYTOCITY; }
set { _DELIVERYTOCITY = value; }
}
private string _MODIFYTIME = "";
[ModelDB]
public string MODIFYTIME
{
get { return _MODIFYTIME; }
set { _MODIFYTIME = value; }
}
private string _MODIFYUSER = "";
[ModelDB]
public string MODIFYUSER
{
get { return _MODIFYUSER; }
set { _MODIFYUSER = value; }
}
#endregion
public MsOpSeaeBill()
{
TableName = "op_seae_billmanage";
}
override public string GetBillNoFieldName()
{
return "AS_ID";
}
public override string GetTimeMarkFieldName()
{
return "";
}
}
[JsonObject]
public class MsOpSeaeCustomStatus
{
#region 读写属性
private bool _isprepared =false;
public bool ISPREPARED
{
get { return _isprepared; }
set { _isprepared = value; }
}
private string _PREPAREDSTR = "";
public string PREPAREDSTR
{
get { return _PREPAREDSTR; }
set { _PREPAREDSTR = value; }
}
private bool _isarrival =false;
public bool ISARRIVAL
{
get { return _isarrival; }
set { _isarrival = value; }
}
private string _ARRIVALSTR = "";
public string ARRIVALSTR
{
get { return _ARRIVALSTR; }
set { _ARRIVALSTR = value; }
}
private bool _ISCUSTOMCLEAR = false;
public bool ISCUSTOMCLEAR
{
get { return _ISCUSTOMCLEAR; }
set { _ISCUSTOMCLEAR = value; }
}
private string _CUSTOMCLEARSTR = "";
public string CUSTOMCLEARSTR
{
get { return _CUSTOMCLEARSTR; }
set { _CUSTOMCLEARSTR = value; }
}
private bool _ISBILLCLEAR = false;
public bool ISBILLCLEAR
{
get { return _ISBILLCLEAR; }
set { _ISBILLCLEAR = value; }
}
private string _BILLCLEARSTR = "";
public string BILLCLEARSTR
{
get { return _BILLCLEARSTR; }
set { _BILLCLEARSTR = value; }
}
private bool _ISLOADCLEAR = false;
public bool ISLOADCLEAR
{
get { return _ISLOADCLEAR; }
set { _ISLOADCLEAR = value; }
}
private string _LOADCLEARSTR = "";
public string LOADCLEARSTR
{
get { return _LOADCLEARSTR; }
set { _LOADCLEARSTR = value; }
}
#endregion
}
[JsonObject]
public class MsOpSeaeBill_SI : MsOpSeaeBill
{
public string SIREMARK { get; set; }
public string CLOSEDOCDATE { get; set; }
public static MsOpSeaeBill_SI AutoCopy(MsOpSeaeBill parent)
{
MsOpSeaeBill_SI child = new MsOpSeaeBill_SI();
var ParentType = typeof(MsOpSeaeBill);
var Properties = ParentType.GetProperties();
foreach (var Propertie in Properties)
{
if (Propertie.CanRead && Propertie.CanWrite)
{
Propertie.SetValue(child, Propertie.GetValue(parent, null), null);
}
}
return child;
}
}
//
}