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/CommMng/Models/CustomRefModel.cs

615 lines
15 KiB
C#

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

using System;
using HcUtility.Core;
using Newtonsoft.Json;
namespace DSWeb.Areas.CommMng.Models
{
/// <summary>
/// 客户参照类对应95004(vMsTruckClient)
/// </summary>
[JsonObject]
public class CustomRefModel : ModelObjectBase_Base
{
public string CONTRACTNO { get; set; }
#region private Fields
private string _gid = string.Empty;
private string _custCode = String.Empty;
private string _custName = String.Empty;
private string _iSCARRIER = "0";
private string _iSBOOKING = "0";
private string _iSYARD = "0";
private string _iSTRUCK = "0";
private string _iSCONTROLLER = "0";
private string _iSCUSTOM = "0";
private string _iSAGENT = "0";
private string _iSAGENTCN = "0";
private string _iSEXPRESS = "0";
private string _iSAIRLINES = "0";
private string _iSSHIPPER = "0";
private string _iSCONSIGNEE = "0";
private string _iSNOTIFYPARTY = "0";
private string _iSWAREHOUSE = "0";
private string _codeAndName = String.Empty;
private string _codeAndFull = String.Empty;
private string _billRises1 = string.Empty;
private string _UNITPRICE = string.Empty;
private string _DESCRIPTION = string.Empty;
private string _KFCodename = string.Empty;
private string _sale = String.Empty;
private string _FEEFRT ="PP";
private string _BSSOURCE = "";
private string _EMAIL = "";
private string _TEL = "";
private string _SALECORPID = "";
#endregion
#region Public Properties
[ModelDB]
public string GId
{
get { return _gid; }
set { _gid = value; }
}
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string CustCode
{
get { return _custCode; }
set { _custCode = value; }
}
[ModelDB]
public string CustName
{
get { return _custName; }
set { _custName = value; }
}
[ModelDB]
public string ISCARRIER
{
get { return _iSCARRIER; }
set { _iSCARRIER = value; }
}
[ModelDB]
public string ISBOOKING
{
get { return _iSBOOKING; }
set { _iSBOOKING = value; }
}
[ModelDB]
public string ISYARD
{
get { return _iSYARD; }
set { _iSYARD = value; }
}
[ModelDB]
public string ISTRUCK
{
get { return _iSTRUCK; }
set { _iSTRUCK = value; }
}
[ModelDB]
public string ISCONTROLLER
{
get { return _iSCONTROLLER; }
set { _iSCONTROLLER = value; }
}
[ModelDB]
public string ISCUSTOM
{
get { return _iSCUSTOM; }
set { _iSCUSTOM = value; }
}
[ModelDB]
public string ISAGENT
{
get { return _iSAGENT; }
set { _iSAGENT = value; }
}
[ModelDB]
public string ISAGENTCN
{
get { return _iSAGENTCN; }
set { _iSAGENTCN = value; }
}
[ModelDB]
public string ISEXPRESS
{
get { return _iSEXPRESS; }
set { _iSEXPRESS = value; }
}
[ModelDB]
public string ISAIRLINES
{
get { return _iSAIRLINES; }
set { _iSAIRLINES = value; }
}
[ModelDB]
public string ISSHIPPER
{
get { return _iSSHIPPER; }
set { _iSSHIPPER = value; }
}
[ModelDB]
public string ISCONSIGNEE
{
get { return _iSCONSIGNEE; }
set { _iSCONSIGNEE = value; }
}
[ModelDB]
public string ISNOTIFYPARTY
{
get { return _iSNOTIFYPARTY; }
set { _iSNOTIFYPARTY = value; }
}
[ModelDB]
public string ISWAREHOUSE
{
get { return _iSWAREHOUSE; }
set { _iSWAREHOUSE = value; }
}
[ModelDB]
public string CodeAndName
{
get { return _codeAndName; }
set { _codeAndName = value; }
}
public string CodeAndFull
{
get { return _custCode+"-"+_DESCRIPTION; }
}
[ModelDB]
public string BillRises1
{
get{ return this._billRises1; }
set{ this._billRises1 = value; }
}
public string UNITPRICE
{
get { return this._UNITPRICE; }
set { this._UNITPRICE = value; }
}
public string DESCRIPTION
{
get { return this._DESCRIPTION; }
set { this._DESCRIPTION = value; }
}
public string CodeAndDESCRIPTION
{
get { return this._custCode+"_"+this._DESCRIPTION; }
}
public string KFCodename
{
get { return this._KFCodename; }
set { this._KFCodename = value; }
}
public string SALE
{
get { return this._sale; }
set { this._sale = value; }
}
public string OP { get; set; }
public string DOC { get; set; }
public string FEEFRT
{
get { return this._FEEFRT; }
set { this._FEEFRT = value; }
}
public string BSSOURCE
{
get { return this._BSSOURCE; }
set { this._BSSOURCE = value; }
}
public string EMAIL
{
get { return this._EMAIL; }
set { this._EMAIL = value; }
}
public string TEL
{
get { return this._TEL; }
set { this._TEL = value; }
}
public string SALECORPID
{
get { return this._SALECORPID; }
set { this._SALECORPID = value; }
}
#endregion
public CustomRefModel()
{
TableName = "vMsTruckClient";
}
}
[JsonObject]
public class CustomYardRefModel : ModelObjectBase
{
#region private Fields
private string _gid = string.Empty;
private string _custCode = String.Empty;
private string _custName = String.Empty;
private string _codeAndName = String.Empty;
private string _ADDR = string.Empty;
#endregion
#region Public Properties
[ModelDB]
public string GId
{
get { return _gid; }
set { _gid = value; }
}
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string CustCode
{
get { return _custCode; }
set { _custCode = value; }
}
[ModelDB]
public string CustName
{
get { return _custName; }
set { _custName = value; }
}
[ModelDB]
public string CodeAndName
{
get { return _codeAndName; }
set { _codeAndName = value; }
}
[ModelDB]
public string ADDR
{
get { return _ADDR; }
set { _ADDR = value; }
}
#endregion
public CustomYardRefModel()
{
TableName = "vMsTruckClient";
}
}
[JsonObject]
public class CustomInvRefModel : ModelObjectBase
{
#region private Fields
private string _gid = string.Empty;
private string _custCode = String.Empty;
private string _custName = String.Empty;
private string _codeAndName = String.Empty;
private string _billRises1 = string.Empty;
private string _rmbbillRises = string.Empty;
private string _rmbbank = string.Empty;
private string _rmbaccount = string.Empty;
private string _usdbillRises = string.Empty;
private string _usdbank = string.Empty;
private string _usdaccount = string.Empty;
private string _taxno = string.Empty;
private string _addr = string.Empty;
private string _tel = string.Empty;
private string _INVADDRTEL = string.Empty;
private string _KFCodename = string.Empty;
#endregion
#region Public Properties
public string GId
{
get { return _gid; }
set { _gid = value; }
}
public string CustCode
{
get { return _custCode; }
set { _custCode = value; }
}
public string CustName
{
get { return _custName; }
set { _custName = value; }
}
public string CodeAndName
{
get { return _codeAndName; }
set { _codeAndName = value; }
}
public string BillRises1
{
get { return this._billRises1; }
set { this._billRises1 = value; }
}
public string INVADDRTEL
{
get { return _INVADDRTEL; }
set { _INVADDRTEL = value; }
}
public string RMBBillRises
{
get { return _rmbbillRises; }
set { _rmbbillRises = value; }
}
public string RMBBank
{
get { return _rmbbank; }
set { _rmbbank = value; }
}
public string RMBAccount
{
get { return _rmbaccount; }
set { _rmbaccount = value; }
}
public string USDBillRises
{
get { return _usdbillRises; }
set { _usdbillRises = value; }
}
public string USDBank
{
get { return _usdbank; }
set { _usdbank = value; }
}
public string USDAccount
{
get { return _usdaccount; }
set { _usdaccount = value; }
}
public string TaxNo
{
get { return _taxno; }
set { _taxno = value; }
}
public string Addr
{
get { return _addr; }
set { _addr = value; }
}
public string Tel
{
get { return _tel; }
set { _tel = value; }
}
public string KFCodename
{
get { return this._KFCodename; }
set { this._KFCodename = value; }
}
public string DESCRIPTION
{
get; set;
}
public string CodeAndFull
{
get { return _custCode + "-" + DESCRIPTION; }
}
public string EMail { get; set; }
#endregion
}
[JsonObject]
public class CustomVIPModel : CustomRefModel
{
#region private Fields
private string _ISVIP = string.Empty;
private string _VIPDJ = string.Empty;
private string _VIPDP = string.Empty;
#endregion
#region Public Properties
public string ISVIP
{
get { return _ISVIP; }
set { _ISVIP = value; }
}
public string VIPDJ
{
get { return _VIPDJ; }
set { _VIPDJ = value; }
}
public string VIPDP
{
get { return _VIPDP; }
set { _VIPDP = value; }
}
#endregion
}
#region 参照部分
#endregion
[JsonObject]
public class sys_template : ModelObjectBase
{
#region private Fields
private string _gid = string.Empty;
private string _TEMPLATE = String.Empty;
private string _TEMPLATETYPE = String.Empty;
private string _TEMPLDATE_DESC = String.Empty;
private string _COMPANYID = String.Empty;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
[ModelDB]
public string TEMPLATE
{
get { return _TEMPLATE; }
set { _TEMPLATE = value; }
}
[ModelDB]
public string TEMPLATETYPE
{
get { return _TEMPLATETYPE; }
set { _TEMPLATETYPE = value; }
}
[ModelDB]
public string TEMPLDATE_DESC
{
get { return _TEMPLDATE_DESC; }
set { _TEMPLDATE_DESC = value; }
}
[ModelDB]
public string COMPANYID
{
get { return _COMPANYID; }
set { _COMPANYID = value; }
}
#endregion
public sys_template()
{
TableName = "sys_template";
}
}
[JsonObject]
public class CustomContactRefModel : ModelObjectBase
{
private string _linkId = String.Empty;
public string LinkId
{
get { return _linkId; }
set { _linkId = value; }
}
private string _code = String.Empty;
public string Code
{
get { return _code; }
set { _code = value; }
}
private string _name = String.Empty;
public string Name
{
get { return _name; }
set { _name = value; }
}
private string _tel = string.Empty;
public string Tel
{
get { return _tel; }
set { _tel = value; }
}
public string EMail { get; set; }
}
[JsonObject]
public class CustomSimpleModel : ModelObjectBase_Base
{
#region private Fields
private string _gid = string.Empty;
private string _custCode = String.Empty;
private string _custName = String.Empty;
private string _DESCRIPTION = string.Empty;
#endregion
#region Public Properties
[ModelDB]
public string GId
{
get { return _gid; }
set { _gid = value; }
}
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string CustCode
{
get { return _custCode; }
set { _custCode = value; }
}
[ModelDB]
public string CustName
{
get { return _custName; }
set { _custName = value; }
}
public string DESCRIPTION
{
get { return this._DESCRIPTION; }
set { this._DESCRIPTION = value; }
}
//public string CodeAndName
//{
// get;
// set;
//}
#endregion
public CustomSimpleModel()
{
TableName = "info_client";
}
}
}