You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
DS7/DSWeb/Areas/Import/Models/audit/audit.cs

644 lines
17 KiB
C#

3 years ago
using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.Areas.Import.Models.audit
{
[JsonObject]
public class auditmb : 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 string _Inspection_Buyer = string.Empty;
private string _Inspection_Contacter = string.Empty;
private string _Inspection_Tel = string.Empty;
private string _Inspection_Email = string.Empty;
private string _Inspection_Code = string.Empty;
private string _Inspection_DeliveryAddress = string.Empty;
private string _CTN = string.Empty;
private string _BILLTRANCNO = string.Empty;
private string _TRADECOUNTRY = string.Empty;
private string _TRADECOUNTRY_REF = string.Empty;
private string _CIQDATE = "";
private string _VSIGN = "0";
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; }
}
//以上为联合查询的结果字段,不写回数据库
private decimal _id = 0;
private string _ContractNo = string.Empty;
private string _HTH = string.Empty;
private string _seller = string.Empty;
private string _company = string.Empty;
private string _companyname = string.Empty;
private string _buyer = string.Empty;
private string _STT = 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 _Printed = string.Empty;
// private string _AutoAPP = string.Empty;
private string _ShipCompany_id = string.Empty;
private string _BillNo = string.Empty;
private string _BillType = string.Empty;
private string _BillTime = string.Empty;
private string _Vessel = string.Empty;
private string _Voyage = string.Empty;
private string _Ex_sailingdate = string.Empty;
private string _Sailingdate = string.Empty;
// private string _ArrivalDate = null;
private string _ArrivalDate = null;
private string _ContainerNo = string.Empty;
private string _SealNo = string.Empty;
private string _TransactionMethod = string.Empty;
private string _PaymentMethods = string.Empty;
private string _SecurityDeposit = string.Empty;
private decimal _TimeMark = 0;
private string _cicode = string.Empty;
private string _ciname = string.Empty;
private string _creattime = string.Empty;
private string _Audittime = string.Empty;
private string _Freetime = string.Empty;
private string _port = string.Empty;
private string _remark = string.Empty;
private string _portRef = string.Empty;
private string _CIQ_licence = string.Empty;
private string _CIQ_canbesearch = string.Empty;
private string _TRADINGAGENCY = string.Empty;
private string _MZBZ = string.Empty;
private string _HaveContract = string.Empty; //是否有合同
private string _HaveCargoMark = string.Empty; //是否有商品标签
private string _HAVESAMPLE = string.Empty; //是否做样本清单
private string _CHECKSAMPLE = string.Empty; //是否进行过样本清单确认
private string _MBLNOREPEAT = string.Empty; //提单号是否允许重复
[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; }
}
[ModelDB]
public string PORTLOAD { get; set; }
public string companyname
{
get { return _companyname; }
set { _companyname = 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; }
}
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 ShipCompany_id
{
get { return _ShipCompany_id; }
set { _ShipCompany_id = value; }
}
[ModelDB]
public string BillNo
{
get { return _BillNo; }
set { _BillNo = value; }
}
[ModelDB]
public string BillType
{
get { return _BillType; }
set { _BillType = value; }
}
[ModelDB]
public string BillTime
{
get { return _BillTime; }
set { _BillTime = value; }
}
[ModelDB]
public string Vessel
{
get { return _Vessel; }
set { _Vessel = value; }
}
[ModelDB]
public string Voyage
{
get { return _Voyage; }
set { _Voyage = 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 ContainerNo
{
get { return _ContainerNo; }
set { _ContainerNo = value; }
}
[ModelDB]
public string SealNo
{
get { return _SealNo; }
set { _SealNo = value; }
}
[ModelDB]
public string TransactionMethod
{
get { return _TransactionMethod; }
set { _TransactionMethod = value; }
}
[ModelDB]
public string PaymentMethods
{
get { return _PaymentMethods; }
set { _PaymentMethods = value; }
}
[ModelDB]
public string SecurityDeposit
{
get { return _SecurityDeposit; }
set { _SecurityDeposit = value; }
}
[ModelDB]
public string creattime
{
get { return _creattime; }
set { _creattime = value; }
}
[ModelDB]
public string Audittime
{
get { return _Audittime; }
set { _Audittime = value; }
}
[ModelDB]
public string Freetime
{
get { return _Freetime; }
set { _Freetime = value; }
}
//[ModelDB]
public string port
{
get { return _port; }
set { _port = value; }
}
[ModelDB]
public string remark
{
get { return _remark; }
set { _remark = value; }
}
[ModelDB]
public string CIQ_licence
{
get { return _CIQ_licence; }
set { _CIQ_licence = value; }
}
[ModelDB]
public string CIQ_canbesearch
{
get { return _CIQ_canbesearch; }
set { _CIQ_canbesearch = 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 cicode
{
get { return _cicode; }
set { _cicode = value; }
}
public string ciname
{
get { return _ciname; }
set { _ciname = value; }
}
[ModelDB]
public string MZBZ
{
get { return _MZBZ; }
set { _MZBZ = value; }
}
public string Inspection_Buyer
{
get { return _Inspection_Buyer; }
set { _Inspection_Buyer = value; }
}
public string Inspection_Contacter
{
get { return _Inspection_Contacter; }
set { _Inspection_Contacter = value; }
}
public string Inspection_Tel
{
get { return _Inspection_Tel; }
set { _Inspection_Tel = value; }
}
public string Inspection_DeliveryAddress
{
get { return _Inspection_DeliveryAddress; }
set { _Inspection_DeliveryAddress = value; }
}
public string Inspection_Email
{
get { return _Inspection_Email; }
set { _Inspection_Email = value; }
}
public string Inspection_Code
{
get { return _Inspection_Code; }
set { _Inspection_Code = value; }
}
public string HaveContract
{
get { return _HaveContract; }
set { _HaveContract = value; }
}
public string HaveCargoMark
{
get { return _HaveCargoMark; }
set { _HaveCargoMark = value; }
}
[ModelDB]
public string HAVESAMPLE
{
get { return _HAVESAMPLE; }
set { _HAVESAMPLE = value; }
}
[ModelDB]
public string CHECKSAMPLE
{
get { return _CHECKSAMPLE; }
set { _CHECKSAMPLE = value; }
}
[ModelDB]
public string CTN
{
get { return _CTN; }
set { _CTN = value; }
}
[ModelDB]
public string BILLTRANCNO
{
get { return _BILLTRANCNO; }
set { _BILLTRANCNO = value; }
}
[ModelDB]
public string MBLNOREPEAT
{
get { return _MBLNOREPEAT; }
set { _MBLNOREPEAT = 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; }
}
public string TRADECOUNTRY_REF
{
get { return _TRADECOUNTRY_REF; }
set { _TRADECOUNTRY_REF = value; }
}
[ModelDB]
public string CIQDATE
{
get { return _CIQDATE; }
set { _CIQDATE = value; }
}
[ModelDB]
public string VSIGN
{
get { return _VSIGN; }
set { _VSIGN = value; }
}
#endregion
public auditmb()
{
// TableName = "tMsWlPcHead";
TableName = "Import_main";
}
public override string GetBillNoFieldName()
{
return "ContractNo";
}
}
[JsonObject]
public class AuditStatusmb : ModelObjectBillBody
{
#region private Fields
private string _GID = string.Empty;
private string _BSNO = string.Empty;
private string _RECEIPTNAME = string.Empty;
private string _MODIFIEDTIME = string.Empty;
private string _MODIFIEDUSER = string.Empty;
private string _AUDITSTATUS = string.Empty;
private string _CZSTATUS = string.Empty;
#endregion
#region
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string BSNO
{
get { return _BSNO; }
set { _BSNO = value; }
}
[ModelDB]
public string RECEIPTNAME
{
get { return _RECEIPTNAME; }
set { _RECEIPTNAME = value; }
}
[ModelDB]
public string MODIFIEDTIME
{
get { return _MODIFIEDTIME; }
set { _MODIFIEDTIME = value; }
}
[ModelDB]
public string MODIFIEDUSER
{
get { return _MODIFIEDUSER; }
set { _MODIFIEDUSER = value; }
}
[ModelDB]
public string AUDITSTATUS
{
get { return _AUDITSTATUS; }
set { _AUDITSTATUS = value; }
}
[ModelDB]
public string CZSTATUS
{
get { return _CZSTATUS; }
set { _CZSTATUS = value; }
}
#endregion
public AuditStatusmb ( )
{
// TableName = "tMsWlPcHead";
TableName = "Import_AuditStatus";
}
public override string GetBillNoFieldName ( )
{
return "BSNO";
}
}
[JsonObject]
public class AuditStatus_Bodymb : ModelObjectBillBody
{
#region private Fields
private string _GID = string.Empty;
private string _BSNO = string.Empty;
private string _LINKID = string.Empty;
private string _MODIFIEDTIME = string.Empty;
private string _MODIFIEDUSER = string.Empty;
private string _AUDITSTATUS = string.Empty;
private string _CZSTATUS = string.Empty;
#endregion
#region
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string BSNO
{
get { return _BSNO; }
set { _BSNO = value; }
}
[ModelDB]
public string LINKID
{
get { return _LINKID; }
set { _LINKID = value; }
}
[ModelDB]
public string MODIFIEDTIME
{
get { return _MODIFIEDTIME; }
set { _MODIFIEDTIME = value; }
}
[ModelDB]
public string MODIFIEDUSER
{
get { return _MODIFIEDUSER; }
set { _MODIFIEDUSER = value; }
}
[ModelDB]
public string AUDITSTATUS
{
get { return _AUDITSTATUS; }
set { _AUDITSTATUS = value; }
}
[ModelDB]
public string CZSTATUS
{
get { return _CZSTATUS; }
set { _CZSTATUS = value; }
}
#endregion
public AuditStatus_Bodymb ( )
{
// TableName = "tMsWlPcHead";
TableName = "Import_AuditStatus_Body";
}
public override string GetBillNoFieldName ( )
{
return "BSNO";
}
}
#region 参照部分
#endregion
}