|
|
|
|
using System;
|
|
|
|
|
using HcUtility.Core;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.Areas.Import.Models.UseApp
|
|
|
|
|
{
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class UseAppmb : ModelObjectBillHead
|
|
|
|
|
{
|
|
|
|
|
#region private Fields
|
|
|
|
|
private string _cgid = string.Empty;
|
|
|
|
|
private string _name = string.Empty;
|
|
|
|
|
private string _country = string.Empty;
|
|
|
|
|
private string _AppNo = string.Empty;
|
|
|
|
|
private string _ValidDate = string.Empty;
|
|
|
|
|
private string _weight = string.Empty;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private decimal _id = 0;
|
|
|
|
|
private string _ContractNo = string.Empty;//合同序列号
|
|
|
|
|
private string _HTH = string.Empty;//合同号
|
|
|
|
|
private string _company = string.Empty;//用证公司
|
|
|
|
|
private string _companyname = string.Empty;
|
|
|
|
|
private string _countryid = string.Empty;//进口国
|
|
|
|
|
private string _creator = string.Empty;//接单人
|
|
|
|
|
// private string _Auditor = string.Empty;
|
|
|
|
|
private string _Mainstate = string.Empty;//合同状态
|
|
|
|
|
private string _MainstateRef = string.Empty;
|
|
|
|
|
private string _Ex_sailingdate = string.Empty;//预计开船日
|
|
|
|
|
private string _Sailingdate = string.Empty;//开船日
|
|
|
|
|
// private string _ArrivalDate = null;
|
|
|
|
|
private string _ArrivalDate = null;//到港日
|
|
|
|
|
private string _Printed = null;
|
|
|
|
|
private string _AutoAPP = string.Empty;
|
|
|
|
|
private string _AutoAPPApplyId = string.Empty;
|
|
|
|
|
private string _AutoAPPNum = string.Empty;
|
|
|
|
|
private DateTime? _ApplyDate = null;
|
|
|
|
|
private decimal _TimeMark = 0;
|
|
|
|
|
|
|
|
|
|
private string _creattime = string.Empty;
|
|
|
|
|
|
|
|
|
|
private string _port = string.Empty;
|
|
|
|
|
private string _remark = string.Empty;
|
|
|
|
|
private string _portRef = string.Empty;
|
|
|
|
|
private string _Writeoffs = string.Empty;
|
|
|
|
|
private string _OwnApp = string.Empty;
|
|
|
|
|
|
|
|
|
|
private string _CTN = string.Empty;
|
|
|
|
|
private string _TRADECOUNTRY = string.Empty;
|
|
|
|
|
#region
|
|
|
|
|
public string country
|
|
|
|
|
{
|
|
|
|
|
get { return _country; }
|
|
|
|
|
set { _country = value; }
|
|
|
|
|
}
|
|
|
|
|
public string cgid
|
|
|
|
|
{
|
|
|
|
|
get { return _cgid; }
|
|
|
|
|
set { _cgid = value; }
|
|
|
|
|
}
|
|
|
|
|
public string name
|
|
|
|
|
{
|
|
|
|
|
get { return _name; }
|
|
|
|
|
set { _name = value; }
|
|
|
|
|
}
|
|
|
|
|
public string AppNo
|
|
|
|
|
{
|
|
|
|
|
get { return _AppNo; }
|
|
|
|
|
set { _AppNo = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ValidDate
|
|
|
|
|
{
|
|
|
|
|
get { return _ValidDate; }
|
|
|
|
|
set { _ValidDate = value; }
|
|
|
|
|
}
|
|
|
|
|
public string weight
|
|
|
|
|
{
|
|
|
|
|
get { return _weight; }
|
|
|
|
|
set { _weight = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _ywtype = "import_main";
|
|
|
|
|
public string ywtype
|
|
|
|
|
{
|
|
|
|
|
get { return _ywtype; }
|
|
|
|
|
set { _ywtype = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.EditDelete, IsPrimary = true)]
|
|
|
|
|
public decimal id
|
|
|
|
|
{
|
|
|
|
|
get { return _id; }
|
|
|
|
|
set { _id = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string ContractNo
|
|
|
|
|
{
|
|
|
|
|
get { return _ContractNo; }
|
|
|
|
|
set { _ContractNo = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string HTH
|
|
|
|
|
{
|
|
|
|
|
get { return _HTH; }
|
|
|
|
|
set { _HTH = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string company
|
|
|
|
|
{
|
|
|
|
|
get { return _company; }
|
|
|
|
|
set { _company = value; }
|
|
|
|
|
}
|
|
|
|
|
public string companyname
|
|
|
|
|
{
|
|
|
|
|
get { return _companyname; }
|
|
|
|
|
set { _companyname = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string countryid
|
|
|
|
|
{
|
|
|
|
|
get { return _countryid; }
|
|
|
|
|
set { _countryid = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string creator
|
|
|
|
|
{
|
|
|
|
|
get { return _creator; }
|
|
|
|
|
set { _creator = value; }
|
|
|
|
|
}
|
|
|
|
|
/* [ModelDB]
|
|
|
|
|
public string Auditor
|
|
|
|
|
{
|
|
|
|
|
get { return _Auditor; }
|
|
|
|
|
set { _Auditor = value; }
|
|
|
|
|
} */
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string Mainstate
|
|
|
|
|
{
|
|
|
|
|
get { return _Mainstate; }
|
|
|
|
|
set { _Mainstate = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MainstateRef
|
|
|
|
|
{
|
|
|
|
|
get { return _MainstateRef; }
|
|
|
|
|
set { _MainstateRef = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string Writeoffs
|
|
|
|
|
{
|
|
|
|
|
get { return _Writeoffs; }
|
|
|
|
|
set { _Writeoffs = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string Printed
|
|
|
|
|
{
|
|
|
|
|
get { return _Printed; }
|
|
|
|
|
set { _Printed = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string AutoAPP
|
|
|
|
|
{
|
|
|
|
|
get { return _AutoAPP; }
|
|
|
|
|
set { _AutoAPP = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string AutoAPPApplyId
|
|
|
|
|
{
|
|
|
|
|
get { return _AutoAPPApplyId; }
|
|
|
|
|
set { _AutoAPPApplyId = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string AutoAPPNum
|
|
|
|
|
{
|
|
|
|
|
get { return _AutoAPPNum; }
|
|
|
|
|
set { _AutoAPPNum = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public DateTime? ApplyDate
|
|
|
|
|
{
|
|
|
|
|
get { return _ApplyDate; }
|
|
|
|
|
set { _ApplyDate = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public String Ex_sailingdate
|
|
|
|
|
{
|
|
|
|
|
get { return _Ex_sailingdate; }
|
|
|
|
|
set { _Ex_sailingdate = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public String Sailingdate
|
|
|
|
|
{
|
|
|
|
|
get { return _Sailingdate; }
|
|
|
|
|
set { _Sailingdate = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public String ArrivalDate
|
|
|
|
|
{
|
|
|
|
|
get { return _ArrivalDate; }
|
|
|
|
|
set { _ArrivalDate = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string creattime
|
|
|
|
|
{
|
|
|
|
|
get { return _creattime; }
|
|
|
|
|
set { _creattime = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string port
|
|
|
|
|
{
|
|
|
|
|
get { return _port; }
|
|
|
|
|
set { _port = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string remark
|
|
|
|
|
{
|
|
|
|
|
get { return _remark; }
|
|
|
|
|
set { _remark = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string OwnApp
|
|
|
|
|
{
|
|
|
|
|
get { return _OwnApp; }
|
|
|
|
|
set { _OwnApp = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* private string _Declarenumber = string.Empty;
|
|
|
|
|
private string _Exchangerate = string.Empty;*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public string portRef
|
|
|
|
|
{
|
|
|
|
|
get { return _portRef; }
|
|
|
|
|
set { _portRef = value; }
|
|
|
|
|
}
|
|
|
|
|
public decimal TimeMark
|
|
|
|
|
{
|
|
|
|
|
get { return _TimeMark; }
|
|
|
|
|
set { _TimeMark = value; }
|
|
|
|
|
}
|
|
|
|
|
public string CTN
|
|
|
|
|
{
|
|
|
|
|
get { return _CTN; }
|
|
|
|
|
set { _CTN = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private string _MODIFIEDUSER = string.Empty;
|
|
|
|
|
private string _MODIFIEDTIME = string.Empty;
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string MODIFIEDUSER
|
|
|
|
|
{
|
|
|
|
|
get { return _MODIFIEDUSER; }
|
|
|
|
|
set { _MODIFIEDUSER = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string MODIFIEDTIME
|
|
|
|
|
{
|
|
|
|
|
get { return _MODIFIEDTIME; }
|
|
|
|
|
set { _MODIFIEDTIME = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string TRADECOUNTRY
|
|
|
|
|
{
|
|
|
|
|
get { return _TRADECOUNTRY; }
|
|
|
|
|
set { _TRADECOUNTRY = value; }
|
|
|
|
|
}
|
|
|
|
|
#endregion
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public UseAppmb()
|
|
|
|
|
{
|
|
|
|
|
// TableName = "tMsWlPcHead";
|
|
|
|
|
TableName = "Import_main";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string GetBillNoFieldName()
|
|
|
|
|
{
|
|
|
|
|
return "ContractNo";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class XXHcountryDAL : ModelObjectBase
|
|
|
|
|
{
|
|
|
|
|
#region private Fields
|
|
|
|
|
|
|
|
|
|
private string _countryid = string.Empty;
|
|
|
|
|
private string _country = string.Empty;
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string countryid
|
|
|
|
|
{
|
|
|
|
|
get { return _countryid; }
|
|
|
|
|
set { _countryid = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string country
|
|
|
|
|
{
|
|
|
|
|
get { return _country; }
|
|
|
|
|
set { _country = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public XXHcountryDAL()
|
|
|
|
|
{
|
|
|
|
|
// TableName = "tMsWlPcHead";
|
|
|
|
|
TableName = "code_country";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 参照部分
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|