|
|
|
|
using System;
|
|
|
|
|
using HcUtility.Core;
|
|
|
|
|
using Newtonsoft.Json;
|
|
|
|
|
|
|
|
|
|
namespace DSWeb.Areas.Import.Models.create
|
|
|
|
|
{
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class createmb : ModelObjectBillHead
|
|
|
|
|
{
|
|
|
|
|
#region private Fields
|
|
|
|
|
|
|
|
|
|
private string _id = "0";
|
|
|
|
|
private string _ContractNo = string.Empty;//合同序列号
|
|
|
|
|
private string _HTH = string.Empty;//合同号
|
|
|
|
|
private string _HTDATE = string.Empty;//合同日期
|
|
|
|
|
private string _seller = string.Empty;//贸易商
|
|
|
|
|
private string _buyer = string.Empty;//客户
|
|
|
|
|
private string _STT = string.Empty;//双抬头
|
|
|
|
|
private string _countryid = string.Empty;//进口国
|
|
|
|
|
private string _creator = string.Empty;//接单人
|
|
|
|
|
private string _Mainstate = string.Empty;//合同状态
|
|
|
|
|
private string _MainstateRef = string.Empty;
|
|
|
|
|
private string _Ex_sailingdate = string.Empty;//预计开船日
|
|
|
|
|
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 _TransactionMethod = string.Empty;
|
|
|
|
|
private string _PaymentMethods = string.Empty;
|
|
|
|
|
private string _FinanceStatus = string.Empty;
|
|
|
|
|
private string _TRADINGAGENCY = string.Empty;
|
|
|
|
|
private string _FactoryNo = string.Empty;
|
|
|
|
|
private string _RCVMode = string.Empty;
|
|
|
|
|
private string _RCVModeREF = string.Empty;
|
|
|
|
|
private string _OP = string.Empty;
|
|
|
|
|
private string _BUZTYPE = string.Empty;
|
|
|
|
|
private string _BUZTYPEREF = string.Empty;
|
|
|
|
|
|
|
|
|
|
private string _HaveContract = string.Empty; //是否有合同
|
|
|
|
|
private string _HaveCargoMark = string.Empty; //是否有商品标签
|
|
|
|
|
|
|
|
|
|
private decimal _cgid = 0; //货物id
|
|
|
|
|
|
|
|
|
|
private string _CargoType = string.Empty;
|
|
|
|
|
private string _remark_2 = string.Empty;
|
|
|
|
|
|
|
|
|
|
private string _CTN = string.Empty;
|
|
|
|
|
private string _BILLTRANCNO = string.Empty;
|
|
|
|
|
private string _MODIFIEDUSER = string.Empty;
|
|
|
|
|
private string _MODIFIEDTIME = string.Empty;
|
|
|
|
|
|
|
|
|
|
private string _Agent = string.Empty;
|
|
|
|
|
private string _Agent2 = string.Empty;
|
|
|
|
|
private string _Agent3 = string.Empty;
|
|
|
|
|
private string _CORPID = string.Empty;
|
|
|
|
|
|
|
|
|
|
//private decimal _TimeMark = 0;
|
|
|
|
|
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.EditDelete, IsPrimary = true)]
|
|
|
|
|
public string id
|
|
|
|
|
{
|
|
|
|
|
get { return _id; }
|
|
|
|
|
set { _id = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.Insert)]
|
|
|
|
|
public string CORPID
|
|
|
|
|
{
|
|
|
|
|
get { return _CORPID; }
|
|
|
|
|
set { _CORPID = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string company
|
|
|
|
|
{
|
|
|
|
|
get;set;
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string ContractNo
|
|
|
|
|
{
|
|
|
|
|
get { return _ContractNo; }
|
|
|
|
|
set { _ContractNo = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string HTH
|
|
|
|
|
{
|
|
|
|
|
get { return _HTH; }
|
|
|
|
|
set { _HTH = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string HTDATE
|
|
|
|
|
{
|
|
|
|
|
get { return _HTDATE; }
|
|
|
|
|
set { _HTDATE = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string seller
|
|
|
|
|
{
|
|
|
|
|
get { return _seller; }
|
|
|
|
|
set { _seller = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string buyer
|
|
|
|
|
{
|
|
|
|
|
get { return _buyer; }
|
|
|
|
|
set { _buyer = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string STT
|
|
|
|
|
{
|
|
|
|
|
get { return _STT; }
|
|
|
|
|
set { _STT = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string countryid
|
|
|
|
|
{
|
|
|
|
|
get { return _countryid; }
|
|
|
|
|
set { _countryid = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string creator
|
|
|
|
|
{
|
|
|
|
|
get { return _creator; }
|
|
|
|
|
set { _creator = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string creattime
|
|
|
|
|
{
|
|
|
|
|
get { return _creattime; }
|
|
|
|
|
set { _creattime = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string Mainstate
|
|
|
|
|
{
|
|
|
|
|
get { return _Mainstate; }
|
|
|
|
|
set { _Mainstate = value; }
|
|
|
|
|
}
|
|
|
|
|
public string MainstateRef
|
|
|
|
|
{
|
|
|
|
|
get { return _MainstateRef; }
|
|
|
|
|
set { _MainstateRef = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public String Ex_sailingdate
|
|
|
|
|
{
|
|
|
|
|
get { return _Ex_sailingdate; }
|
|
|
|
|
set { _Ex_sailingdate = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string port
|
|
|
|
|
{
|
|
|
|
|
get { return _port; }
|
|
|
|
|
set { _port = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string remark
|
|
|
|
|
{
|
|
|
|
|
get { return _remark; }
|
|
|
|
|
set { _remark = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string remark_2
|
|
|
|
|
{
|
|
|
|
|
get { return _remark_2; }
|
|
|
|
|
set { _remark_2 = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string TransactionMethod
|
|
|
|
|
{
|
|
|
|
|
get { return _TransactionMethod; }
|
|
|
|
|
set { _TransactionMethod = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string PaymentMethods
|
|
|
|
|
{
|
|
|
|
|
get { return _PaymentMethods; }
|
|
|
|
|
set { _PaymentMethods = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string FinanceStatus
|
|
|
|
|
{
|
|
|
|
|
get { return _FinanceStatus; }
|
|
|
|
|
set { _FinanceStatus = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string TRADINGAGENCY
|
|
|
|
|
{
|
|
|
|
|
get { return _TRADINGAGENCY; }
|
|
|
|
|
set { _TRADINGAGENCY = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string portRef
|
|
|
|
|
{
|
|
|
|
|
get { return _portRef; }
|
|
|
|
|
set { _portRef = value; }
|
|
|
|
|
}
|
|
|
|
|
public decimal TimeMark
|
|
|
|
|
{
|
|
|
|
|
get { return _TimeMark; }
|
|
|
|
|
set { _TimeMark = value; }
|
|
|
|
|
}
|
|
|
|
|
public string FactoryNo
|
|
|
|
|
{
|
|
|
|
|
get { return _FactoryNo; }
|
|
|
|
|
set { _FactoryNo = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string RCVMode
|
|
|
|
|
{
|
|
|
|
|
get { return _RCVMode; }
|
|
|
|
|
set { _RCVMode = value; }
|
|
|
|
|
}
|
|
|
|
|
public string RCVModeREF
|
|
|
|
|
{
|
|
|
|
|
get { return _RCVModeREF; }
|
|
|
|
|
set { _RCVModeREF = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string OP
|
|
|
|
|
{
|
|
|
|
|
get { return _OP; }
|
|
|
|
|
set { _OP = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string BUZTYPE
|
|
|
|
|
{
|
|
|
|
|
get { return _BUZTYPE; }
|
|
|
|
|
set { _BUZTYPE = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string BUZTYPEREF
|
|
|
|
|
{
|
|
|
|
|
get { return _BUZTYPEREF; }
|
|
|
|
|
set { _BUZTYPEREF = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string HaveContract
|
|
|
|
|
{
|
|
|
|
|
get { return _HaveContract; }
|
|
|
|
|
set { _HaveContract = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string HaveCargoMark
|
|
|
|
|
{
|
|
|
|
|
get { return _HaveCargoMark; }
|
|
|
|
|
set { _HaveCargoMark = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public decimal cgid
|
|
|
|
|
{
|
|
|
|
|
get { return _cgid; }
|
|
|
|
|
set { _cgid = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string CargoType
|
|
|
|
|
{
|
|
|
|
|
get { return _CargoType; }
|
|
|
|
|
set { _CargoType = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string CTN
|
|
|
|
|
{
|
|
|
|
|
get { return _CTN; }
|
|
|
|
|
set { _CTN = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public string BILLTRANCNO
|
|
|
|
|
{
|
|
|
|
|
get { return _BILLTRANCNO; }
|
|
|
|
|
set { _BILLTRANCNO = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string MODIFIEDUSER
|
|
|
|
|
{
|
|
|
|
|
get { return _MODIFIEDUSER; }
|
|
|
|
|
set { _MODIFIEDUSER = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string MODIFIEDTIME
|
|
|
|
|
{
|
|
|
|
|
get { return _MODIFIEDTIME; }
|
|
|
|
|
set { _MODIFIEDTIME = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string Agent
|
|
|
|
|
{
|
|
|
|
|
get { return _Agent; }
|
|
|
|
|
set { _Agent = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string Agent2
|
|
|
|
|
{
|
|
|
|
|
get { return _Agent2; }
|
|
|
|
|
set { _Agent2 = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string Agent3
|
|
|
|
|
{
|
|
|
|
|
get { return _Agent3; }
|
|
|
|
|
set { _Agent3 = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string PORTLOAD{ get; set; }
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public createmb()
|
|
|
|
|
{
|
|
|
|
|
// TableName = "tMsWlPcHead";
|
|
|
|
|
TableName = "Import_main";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string GetBillNoFieldName()
|
|
|
|
|
{
|
|
|
|
|
return "ContractNo";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string GetTimeMarkFieldName ( )
|
|
|
|
|
{
|
|
|
|
|
return "TimeMark";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class createmb2 : createmb
|
|
|
|
|
{
|
|
|
|
|
#region private Fields
|
|
|
|
|
|
|
|
|
|
private string _BillNo = string.Empty;
|
|
|
|
|
private string _ContainerNo = string.Empty;
|
|
|
|
|
private string _ArrivalDate = string.Empty;
|
|
|
|
|
private string _ShipCompany_id = string.Empty;
|
|
|
|
|
private string _BillType = string.Empty;
|
|
|
|
|
private string _E_Billtime = string.Empty;
|
|
|
|
|
private string _Billtime = string.Empty;
|
|
|
|
|
private string _TRADECOUNTRY = string.Empty;
|
|
|
|
|
private string _company = string.Empty;
|
|
|
|
|
//private decimal _TimeMark = 0;
|
|
|
|
|
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string BillNo
|
|
|
|
|
{
|
|
|
|
|
get { return _BillNo; }
|
|
|
|
|
set { _BillNo = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string ContainerNo
|
|
|
|
|
{
|
|
|
|
|
get { return _ContainerNo; }
|
|
|
|
|
set { _ContainerNo = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string ArrivalDate
|
|
|
|
|
{
|
|
|
|
|
get { return _ArrivalDate; }
|
|
|
|
|
set { _ArrivalDate = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string ShipCompany_id
|
|
|
|
|
{
|
|
|
|
|
get { return _ShipCompany_id; }
|
|
|
|
|
set { _ShipCompany_id = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string BillType
|
|
|
|
|
{
|
|
|
|
|
get { return _BillType; }
|
|
|
|
|
set { _BillType = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string E_Billtime
|
|
|
|
|
{
|
|
|
|
|
get { return _E_Billtime; }
|
|
|
|
|
set { _E_Billtime = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string Billtime
|
|
|
|
|
{
|
|
|
|
|
get { return _Billtime; }
|
|
|
|
|
set { _Billtime = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string TRADECOUNTRY
|
|
|
|
|
{
|
|
|
|
|
get { return _TRADECOUNTRY; }
|
|
|
|
|
set { _TRADECOUNTRY = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string company
|
|
|
|
|
{
|
|
|
|
|
get { return _company; }
|
|
|
|
|
set { _company = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public createmb2 ( )
|
|
|
|
|
{
|
|
|
|
|
// TableName = "tMsWlPcHead";
|
|
|
|
|
TableName = "Import_main";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string GetBillNoFieldName ( )
|
|
|
|
|
{
|
|
|
|
|
return "ContractNo";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string GetTimeMarkFieldName ( )
|
|
|
|
|
{
|
|
|
|
|
return "TimeMark";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//[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";
|
|
|
|
|
// }
|
|
|
|
|
//}
|
|
|
|
|
|
|
|
|
|
[JsonObject]
|
|
|
|
|
public class Create_Cargomb : ModelObjectBillBody
|
|
|
|
|
{
|
|
|
|
|
#region private Fields
|
|
|
|
|
|
|
|
|
|
private decimal _id = 0;
|
|
|
|
|
private decimal _cgid = 0;
|
|
|
|
|
private string _name = string.Empty;//货物名称
|
|
|
|
|
private string _ContractNo = string.Empty;//货物名称
|
|
|
|
|
|
|
|
|
|
[ModelDB(MDBType = ModelDBOprationType.EditDelete, IsPrimary = true)]
|
|
|
|
|
public decimal id
|
|
|
|
|
{
|
|
|
|
|
get { return _id; }
|
|
|
|
|
set { _id = value; }
|
|
|
|
|
}
|
|
|
|
|
public decimal cgid
|
|
|
|
|
{
|
|
|
|
|
get { return _cgid; }
|
|
|
|
|
set { _cgid = value; }
|
|
|
|
|
}
|
|
|
|
|
[ModelDB]
|
|
|
|
|
public string name
|
|
|
|
|
{
|
|
|
|
|
get { return _name; }
|
|
|
|
|
set { _name = value; }
|
|
|
|
|
}
|
|
|
|
|
public string ContractNo
|
|
|
|
|
{
|
|
|
|
|
get { return _ContractNo; }
|
|
|
|
|
set { _ContractNo = value; }
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
|
|
|
|
|
public Create_Cargomb ( )
|
|
|
|
|
{
|
|
|
|
|
// TableName = "tMsWlPcHead";
|
|
|
|
|
TableName = "Import_cargo";
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public override string GetBillNoFieldName ( )
|
|
|
|
|
{
|
|
|
|
|
return "ContractNo";
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#region 参照部分
|
|
|
|
|
|
|
|
|
|
#endregion
|
|
|
|
|
}
|