using System;
using HcUtility.Core;
using Newtonsoft.Json;
using System.Collections.Generic;
using System.Data.Entity.SqlServer;
namespace DSWeb.MvcShipping.Models.MsInfoClient
{
[JsonObject]
public class MsClient : ModelObjectBillHead
{
#region 读写属性
private string _GID = Guid.NewGuid().ToString();
///
/// 编号
///
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
private string _PCORPNAME = "";
[ModelDB]
public string PCORPNAME
{
get { return _PCORPNAME; }
set { _PCORPNAME = value; }
}
public string ACCTYPE { get; set; }
public string ACCDAYS { get; set; }
public string ACCMONTH { get; set; }
public string ALLOWAMOUNT { get; set; }
private string _CODENAME = "";
///
/// 代码
///
[ModelDB]
public string CODENAME
{
get { return _CODENAME; }
set { _CODENAME = value; }
}
private string _SHORTNAME = "";
///
/// 简称
///
[ModelDB]
public string SHORTNAME
{
get { return _SHORTNAME; }
set { _SHORTNAME = value; }
}
private string _CodeAndName = "";
///
/// 代码
///
public string CodeAndName
{
get { return _CodeAndName; }
set { _CodeAndName = value; }
}
private string _DESCRIPTION = "";
///
/// 全称
///
[ModelDB]
public string DESCRIPTION
{
get { return _DESCRIPTION; }
set { _DESCRIPTION = value; }
}
private string _enfullname = "";
///
/// 英文全称
///
[ModelDB]
public string ENFULLNAME
{
get { return _enfullname; }
set { _enfullname = value; }
}
private int _status =0;
///
///
public int STATUS
{
get { return _status; }
set { _status = value; }
}
private string _addr = "";
///
/// 地址
///
[ModelDB]
public string ADDR
{
get { return _addr; }
set { _addr = value; }
}
private string _EMAIL = "";
///
///
///
[ModelDB]
public string EMAIL
{
get { return _EMAIL; }
set { _EMAIL = value; }
}
private string _WEB = "";
///
///
///
[ModelDB]
public string WEB
{
get { return _WEB; }
set { _WEB = value; }
}
private string _TEL = "";
///
///
///
[ModelDB]
public string TEL
{
get { return _TEL; }
set { _TEL = value; }
}
private string _FAX = "";
///
///
///
[ModelDB]
public string FAX
{
get { return _FAX; }
set { _FAX = value; }
}
private string _CHIEF = "";
///
///
///
[ModelDB]
public string CHIEF
{
get { return _CHIEF; }
set { _CHIEF = value; }
}
private string _op = "";
///
/// 操作员
///
[ModelDB]
public string OP
{
get{ return _op; }
set{ _op = value; }
}
[ModelDB]
public string CUSTSERVICE { get; set; }
private string _DOC = "";
///
/// 客服员
///
[ModelDB]
public string DOC
{
get { return _DOC; }
set { _DOC = value; }
}
private string _sale = "";
///
/// 揽货人
///
[ModelDB]
public string SALE
{
get{ return _sale; }
set{ _sale = value; }
}
private string _OPNAME = "";
///
/// 录入人
///
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string OPNAME
{
get { return _OPNAME; }
set { _OPNAME = value; }
}
private string _OPTIME = DateTime.Now.ToString("yyyy-MM-dd HH:mm");
///
/// 创建时间
///
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string OPTIME
{
get { return _OPTIME; }
set { _OPTIME = value; }
}
private string _corpid = "";
///
/// 分公司代码
///
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string CORPID
{
get{ return _corpid; }
set{ _corpid = value; }
}
private string _salecorpid = "";
///
/// 分公司代码
///
[ModelDB]
public string SALECORPID
{
get { return _salecorpid; }
set { _salecorpid = value; }
}
private string _OTHERS = "";
///
///
[ModelDB]
public string OTHERS
{
get { return _OTHERS; }
set { _OTHERS = value; }
}
private bool _ISSTOP =false;
///
/// 停用
///
[ModelDB]
public bool ISSTOP
{
get { return _ISSTOP; }
set { _ISSTOP = value; }
}
private string _COUNTRY;
///
/// 国家
///
[ModelDB]
public string COUNTRY
{
get { return _COUNTRY; }
set { _COUNTRY = value; }
}
private string _PROVINCE;
///
/// 省
///
[ModelDB]
public string PROVINCE
{
get { return _PROVINCE; }
set { _PROVINCE = value; }
}
private string _CITY = "";
///
/// 城市
///
[ModelDB]
public string CITY
{
get { return _CITY; }
set { _CITY = value; }
}
private string _BLCONTENT = "";
///
/// 单证内容
///
[ModelDB]
public string BLCONTENT
{
get { return _BLCONTENT; }
set { _BLCONTENT = value; }
}
private string _BillRises1 = "";
///
/// 发票抬头
///
[ModelDB]
public string BILLRISES1
{
get { return _BillRises1; }
set { _BillRises1 = value; }
}
private string _BillRises2 = "";
///
/// 发票抬头
///
[ModelDB]
public string BILLRISES2
{
get { return _BillRises2; }
set { _BillRises2 = value; }
}
private string _INVBANK = "";
[ModelDB]
public string INVBANK
{
get { return _INVBANK; }
set { _INVBANK = value; }
}
private string _INVADDRTEL = "";
[ModelDB]
public string INVADDRTEL
{
get { return _INVADDRTEL; }
set { _INVADDRTEL = value; }
}
private string _RMBBillRises = "";
///
/// 人民币支票抬头
///
[ModelDB]
public string RMBBILLRISES
{
get { return _RMBBillRises; }
set { _RMBBillRises = value; }
}
private string _USDBillRises = "";
///
/// USD支票抬头
///
[ModelDB]
public string USDBILLRISES
{
get { return _USDBillRises; }
set { _USDBillRises = value; }
}
private decimal _USDMaxAmountCredit = 0;
///
/// 美元最大信用额度
///
[ModelDB]
public decimal USDMAXAMOUNTCREDIT
{
get { return _USDMaxAmountCredit; }
set { _USDMaxAmountCredit = value; }
}
private decimal _RMBMaxAmountCredit = 0;
///
/// RMB最大信用额度
///
[ModelDB]
public decimal RMBMAXAMOUNTCREDIT
{
get { return _RMBMaxAmountCredit; }
set { _RMBMaxAmountCredit = value; }
}
private decimal _MaxAmountCredit = 0;
///
/// 最大信用额度
///
[ModelDB]
public decimal MAXAMOUNTCREDIT
{
get { return _MaxAmountCredit; }
set { _MaxAmountCredit = value; }
}
private string _stlname = "";
///
/// 结算方式
///
[ModelDB]
public string STLNAME
{
get { return _stlname; }
set { _stlname = value; }
}
private string _remark = "";
///
///
///
[ModelDB]
public string REMARK
{
get { return _remark; }
set { _remark = value; }
}
private string _TICHENG ="0";
///
///
///
[ModelDB]
public string TICHENG
{
get { return _TICHENG; }
set { _TICHENG = value; }
}
private string _FENCHENG = "0";
///
///
///
[ModelDB]
public string FENCHENG
{
get { return _FENCHENG; }
set { _FENCHENG = value; }
}
private string _TICHENGCANYU = "";
///
/// 提成参与人
///
[ModelDB]
public string TICHENGCANYU
{
get { return _TICHENGCANYU; }
set { _TICHENGCANYU = value; }
}
private string _accremark = "";
///
///
///
public string ACCREMARK
{
get { return _accremark; }
set { _accremark = value; }
}
private decimal _USDExchangeRate = 0;
///
/// 美元汇率
///
[ModelDB]
public decimal USDEXCHANGERATE
{
get { return _USDExchangeRate; }
set { _USDExchangeRate = value; }
}
private string _stldate = "";
///
/// 结算日
///
[ModelDB]
public string STLDATE
{
get { return _stldate; }
set { _stldate = value; }
}
private string _STLFIRSTHALFDATE = "";
///
/// 上半月时间
///
[ModelDB]
public string STLFIRSTHALFDATE
{
get { return _STLFIRSTHALFDATE; }
set { _STLFIRSTHALFDATE = value; }
}
private string _STLMIDDLEDATE = "";
///
/// 下半月日期
///
[ModelDB]
public string STLMIDDLEDATE
{
get { return _STLMIDDLEDATE; }
set { _STLMIDDLEDATE = value; }
}
private string _STLDATEPJ = "";
///
/// 票结日期
///
[ModelDB]
public string STLDATEPJ
{
get { return _STLDATEPJ; }
set { _STLDATEPJ = value; }
}
private string _LEVEL = "";
///
/// 运价级别
///
[ModelDB]
public string LEVEL
{
get { return _LEVEL; }
set { _LEVEL = value; }
}
private string _LOGINNAME = "";
///
/// 登陆名称
///
[ModelDB]
public string LOGINNAME
{
get { return _LOGINNAME; }
set { _LOGINNAME = value; }
}
private string _LOGINPASSWORD = "";
///
/// 登陆名称
///
[ModelDB]
public string LOGINPASSWORD
{
get { return _LOGINPASSWORD; }
set { _LOGINPASSWORD = value; }
}
private string _QQ = "";
///
/// QQ
///
[ModelDB]
public string QQ
{
get { return _QQ; }
set { _QQ = value; }
}
private string _MSN= "";
///
/// MSN
///
[ModelDB]
public string MSN
{
get { return _MSN; }
set { _MSN = value; }
}
private string _FARCODE = "";
///
/// 收财务代码
///
[ModelDB]
public string FARCODE
{
get { return _FARCODE; }
set { _FARCODE = value; }
}
private string _FAPCODE = "";
///
/// 付财务代码
///
[ModelDB]
public string FAPCODE
{
get { return _FAPCODE; }
set { _FAPCODE = value; }
}
private string _UNITPRICE = "";
///
/// 仓储费
///
[ModelDB]
public string UNITPRICE
{
get { return _UNITPRICE; }
set { _UNITPRICE = value; }
}
private string _REGISTRATIONNO = "";
///
/// 企业备案号
///
[ModelDB]
public string REGISTRATIONNO
{
get { return _REGISTRATIONNO; }
set { _REGISTRATIONNO = value; }
}
private string _TAXNO = "";
///
/// 税号
///
[ModelDB]
public string TAXNO
{
get { return _TAXNO; }
set { _TAXNO = value; }
}
private string _InspectionNo = "";
///
/// 商检备案号
///
[ModelDB]
public string InspectionNo
{
get { return _InspectionNo; }
set { _InspectionNo = value; }
}
private string _EDICODE = "";
///
/// EDI CODE
///
[ModelDB]
public string EDICODE
{
get { return _EDICODE; }
set { _EDICODE = value; }
}
private string _EDICODE2 = "";
///
/// EDI CODE
///
[ModelDB]
public string EDICODE2
{
get { return _EDICODE2; }
set { _EDICODE2 = value; }
}
private string _EDICODE3 = "";
///
/// EDI CODE
///
[ModelDB]
public string EDICODE3
{
get { return _EDICODE3; }
set { _EDICODE3 = value; }
}
private string _ORGANIZATIONCODE = "";
///
/// 机构代码
///
[ModelDB]
public string ORGANIZATIONCODE
{
get { return _ORGANIZATIONCODE; }
set { _ORGANIZATIONCODE = value; }
}
private bool _ISCARRIER = false;
///
///
///
[ModelDB]
public bool ISCARRIER
{
get { return _ISCARRIER; }
set { _ISCARRIER = value; }
}
private bool _ISBOOKING = false;
///
///
///
[ModelDB]
public bool ISBOOKING
{
get { return _ISBOOKING; }
set { _ISBOOKING = value; }
}
private bool _ISYARD = false;
///
///
///
[ModelDB]
public bool ISYARD
{
get { return _ISYARD; }
set { _ISYARD = value; }
}
private bool _ISTRUCK = false;
///
///
///
[ModelDB]
public bool ISTRUCK
{
get { return _ISTRUCK; }
set { _ISTRUCK = value; }
}
private bool _ISCONTROLLER = false;
///
///
///
[ModelDB]
public bool ISCONTROLLER
{
get { return _ISCONTROLLER; }
set { _ISCONTROLLER = value; }
}
private bool _ISCUSTOM = false;
///
///
///
[ModelDB]
public bool ISCUSTOM
{
get { return _ISCUSTOM; }
set { _ISCUSTOM = value; }
}
private bool _ISAGENT = false;
///
///
///
[ModelDB]
public bool ISAGENT
{
get { return _ISAGENT; }
set { _ISAGENT = value; }
}
private bool _ISAGENTCN = false;
///
///
///
[ModelDB]
public bool ISAGENTCN
{
get { return _ISAGENTCN; }
set { _ISAGENTCN = value; }
}
private bool _ISEXPRESS = false;
///
///
///
[ModelDB]
public bool ISEXPRESS
{
get { return _ISEXPRESS; }
set { _ISEXPRESS = value; }
}
private bool _ISAIRLINES = false;
///
///
///
[ModelDB]
public bool ISAIRLINES
{
get { return _ISAIRLINES; }
set { _ISAIRLINES = value; }
}
private bool _ISSHIPPER = false;
///
///
///
[ModelDB]
public bool ISSHIPPER
{
get { return _ISSHIPPER; }
set { _ISSHIPPER = value; }
}
private bool _ISCONSIGNEE = false;
///
///
///
[ModelDB]
public bool ISCONSIGNEE
{
get { return _ISCONSIGNEE; }
set { _ISCONSIGNEE = value; }
}
private bool _ISNOTIFYPARTY = false;
///
///
///
[ModelDB]
public bool ISNOTIFYPARTY
{
get { return _ISNOTIFYPARTY; }
set { _ISNOTIFYPARTY = value; }
}
private bool _ISWAREHOUSE = false;
///
///
///
[ModelDB]
public bool ISWAREHOUSE
{
get { return _ISWAREHOUSE; }
set { _ISWAREHOUSE = value; }
}
private bool _ISINSURE = false;
///
///
///
[ModelDB]
public bool ISINSURE
{
get { return _ISINSURE; }
set { _ISINSURE = value; }
}
private bool _ISLEASING = false;
///
///
///
[ModelDB]
public bool ISLEASING
{
get { return _ISLEASING; }
set { _ISLEASING = value; }
}
private bool _ISTRADINGAGENCY = false;
///
///
///
[ModelDB]
public bool ISTRADINGAGENCY
{
get { return _ISTRADINGAGENCY; }
set { _ISTRADINGAGENCY = value; }
}
private bool _ISOTHER = false;
///
///
///
[ModelDB]
public bool ISOTHER
{
get { return _ISOTHER; }
set { _ISOTHER = value; }
}
private bool _ISENTERP = false;
///
///
///
[ModelDB]
public bool ISENTERP
{
get { return _ISENTERP; }
set { _ISENTERP = value; }
}
private string _ORDERNO = "";
///
/// 机构代码
///
[ModelDB]
public string ORDERNO
{
get { return _ORDERNO; }
set { _ORDERNO = value; }
}
private bool _ISSHIPAGENCY = false;
///
/// 是否船代
///
[ModelDB]
public bool ISSHIPAGENCY
{
get { return _ISSHIPAGENCY; }
set { _ISSHIPAGENCY = value; }
}
private string _BLSTATUSREF = "";
///
/// 审核状态
///
public string BLSTATUSREF
{
get { return _BLSTATUSREF; }
set { _BLSTATUSREF = value; }
}
private string _CUSTPROP = "";
///
/// 客户属性
///
public string CUSTPROP
{
get { return _CUSTPROP; }
set { _CUSTPROP = value; }
}
private bool _ISSP = false;
///
/// 是否特殊审批客户
///
[ModelDB]
public bool ISSP
{
get { return _ISSP; }
set { _ISSP = value; }
}
private string _FEEFRT ="PP";
///
/// 是否船代
///
[ModelDB]
public string FEEFRT
{
get { return _FEEFRT; }
set { _FEEFRT = value; }
}
private string _BSSOURCE = "";
///
/// 业务来源
///
[ModelDB]
public string BSSOURCE
{
get { return _BSSOURCE; }
set { _BSSOURCE = value; }
}
private string _RCVMode = string.Empty;
[ModelDB]
public string RCVMode
{
get { return _RCVMode; }
set { _RCVMode = value; }
}
private string _CUSTTYPE = string.Empty;
[ModelDB]
public string CUSTTYPE
{
get { return _CUSTTYPE; }
set { _CUSTTYPE = value; }
}
private string _CUSTGUIMO = string.Empty;
[ModelDB]
public string CUSTGUIMO
{
get { return _CUSTGUIMO; }
set { _CUSTGUIMO = value; }
}
private string _CUSTCLASS = string.Empty;
[ModelDB]
public string CUSTCLASS
{
get { return _CUSTCLASS; }
set { _CUSTCLASS = value; }
}
private string _QUALIFICATION = string.Empty;
[ModelDB]
public string QUALIFICATION
{
get { return _QUALIFICATION; }
set { _QUALIFICATION = value; }
}
private string _NATURE = string.Empty;
[ModelDB]
public string NATURE
{
get { return _NATURE; }
set { _NATURE = value; }
}
private string _REGDATE = string.Empty;
[ModelDB]
public string REGDATE
{
get { return _REGDATE; }
set { _REGDATE = value; }
}
private string _CARGOL = string.Empty;
[ModelDB]
public string CARGOL
{
get { return _CARGOL; }
set { _CARGOL = value; }
}
private string _PRODUCT = string.Empty;
[ModelDB]
public string PRODUCT
{
get { return _PRODUCT; }
set { _PRODUCT = value; }
}
private string _EXPREGION = string.Empty;
[ModelDB]
public string EXPREGION
{
get { return _EXPREGION; }
set { _EXPREGION = value; }
}
private string _CARRIERLIST = string.Empty;
[ModelDB]
public string CARRIERLIST
{
get { return _CARRIERLIST; }
set { _CARRIERLIST = value; }
}
private string _CTNTYPE = string.Empty;
[ModelDB]
public string CTNTYPE
{
get { return _CTNTYPE; }
set { _CTNTYPE = value; }
}
private string _CUSTNUM = string.Empty;
[ModelDB]
public string CUSTNUM
{
get { return _CUSTNUM; }
set { _CUSTNUM = value; }
}
private string _MODIFIEDUSER = string.Empty;
private string _MODIFIEDTIME = string.Empty;
[ModelDB]
public string MODIFIEDUSER
{
get { return _MODIFIEDUSER; }
set { _MODIFIEDUSER = value; }
}
private string _MODIFIEDUSERREF;
public string MODIFIEDUSERREF
{
get { return _MODIFIEDUSERREF; }
set { _MODIFIEDUSERREF = value; }
}
[ModelDB]
public string MODIFIEDTIME
{
get { return _MODIFIEDTIME; }
set { _MODIFIEDTIME = value; }
}
#endregion
[ModelDB]
public bool ISNOTPR {get;set;}
[ModelDB]
public string SALEDEPT { get; set; }
[ModelDB]
public string OFFICEADDR { get; set; }
[ModelDB]
public string PSCUST { get; set; }
[ModelDB]
public bool ISHPS { get; set; }
[ModelDB]
public bool ISFANGDAN { get; set; }
[ModelDB]
public string FIRSTOP { get; set; }
[ModelDB]
public string AFTEROP { get; set; }
public MsClient()
{
TableName = "info_client";
}
override public string GetBillNoFieldName()
{
return "GID";
}
public override string GetTimeMarkFieldName ( )
{
return "";
}
///
/// 用于显示合同 是否上传 有效期等
///
///
public string CONTRACTSTATUS { get; set; }
public string CONTRACTDATE { get; set; }
///
///20210425 寻找合同列表中的合同
///如果存在3个月以后还生效的合同 STATUS +1
///如果存在未来90天以内失效的合同 STATUS +10 日期写该合同时间
///如果存在过去15天内失效的合同 STATUS +100 日期写该合同时间
///
///
public void SetContractStatus(List ContractList) {
CONTRACTSTATUS = "";
CONTRACTDATE = "";
var _CONTRACTSTATUS = 0;
var _ContractList = ContractList.FindAll(x => x.LINKID == GID && (x.CANCELDATE!=null && x.CANCELDATE !=""));
if (_ContractList.Exists(x => Convert.ToDateTime(x.CANCELDATE).Subtract(DateTime.Now).TotalDays > 90)){
_CONTRACTSTATUS += 1;
}
if (_ContractList.Exists(x => Convert.ToDateTime(x.CANCELDATE).Subtract(DateTime.Now).TotalDays <= 90 && Convert.ToDateTime(x.CANCELDATE).Subtract(DateTime.Now).TotalDays >= 0))
{
_CONTRACTSTATUS += 10;
var _f = _ContractList.Find(x => Convert.ToDateTime(x.CANCELDATE).Subtract(DateTime.Now).TotalDays <= 90 && Convert.ToDateTime(x.CANCELDATE).Subtract(DateTime.Now).TotalDays >= 0);
CONTRACTDATE = _f.CANCELDATE;
}
if (_ContractList.Exists(x => Convert.ToDateTime(x.CANCELDATE).Subtract(DateTime.Now).TotalDays < 0 && Convert.ToDateTime(x.CANCELDATE).Subtract(DateTime.Now).TotalDays >= -10))
{
_CONTRACTSTATUS += 100;
var _f = _ContractList.Find(x => Convert.ToDateTime(x.CANCELDATE).Subtract(DateTime.Now).TotalDays < 0 && Convert.ToDateTime(x.CANCELDATE).Subtract(DateTime.Now).TotalDays >= -10);
CONTRACTDATE = _f.CANCELDATE;
}
CONTRACTSTATUS= _CONTRACTSTATUS.ToString().PadLeft(3, '0');
}
}
[JsonObject]
public class MsClientAccount : ModelObjectBillBody
{
#region 读写属性
private string _gid = "";
///
/// GID
///
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
private string _linkid = "";
///
/// 公司关联id
///
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string LINKID
{
get { return _linkid; }
set { _linkid = value; }
}
private string _accountname = "";
///
/// CODENAME
///
[ModelDB]
public string ACCOUNTNAME
{
get { return _accountname; }
set { _accountname = value; }
}
private string _codename = "";
///
/// CODENAME
///
[ModelDB]
public string CODENAME
{
get { return _codename; }
set { _codename = value; }
}
private string _currency = "";
///
/// CURRENCY
///
[ModelDB]
public string CURRENCY
{
get { return _currency; }
set { _currency = value; }
}
private string _bankname = "";
///
/// BANKNAME
///
[ModelDB]
public string BANKNAME
{
get { return _bankname; }
set { _bankname = value; }
}
private string _account = "";
///
/// ACCOUNT
///
[ModelDB]
public string ACCOUNT
{
get { return _account; }
set { _account = value; }
}
private string _subjectcode = "";
///
/// 银行账户
///
[ModelDB]
public string SUBJECTCODE
{
get { return _subjectcode; }
set { _subjectcode = value; }
}
private string _remark = "";
///
/// REMARK
///
[ModelDB]
public string REMARK
{
get { return _remark; }
set { _remark = value; }
}
private string _financesoftcode = "";
///
/// FINANCESOFTCODE
///
[ModelDB]
public string FINANCESOFTCODE
{
get { return _financesoftcode; }
set { _financesoftcode = value; }
}
private string _createuser = "";
///
/// CREATEUSER
///
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string CREATEUSER
{
get { return _createuser; }
set { _createuser = value; }
}
private string _createtime ="";
///
/// CREATETIME
///
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string CREATETIME
{
get { return _createtime; }
set { _createtime = value; }
}
private string _CUSTNAME = "";
///
/// 简称
///
public string CUSTNAME
{
get { return _CUSTNAME; }
set { _CUSTNAME = value; }
}
private string _ACCOUNTNAMEREF = "";
///
/// 简称
///
public string ACCOUNTNAMEREF
{
get { return _ACCOUNTNAMEREF; }
set { _ACCOUNTNAMEREF = value; }
}
private string _SWIFT = string.Empty;
private string _BANKAGENTNAME = string.Empty;
private string _BANKADDR = string.Empty;
private string _BANKACNO = string.Empty;
private string _BANKNAME_ACCOUNT = string.Empty;
[ModelDB]
public string SWIFT //SWIFT号 首款银行的代理银行信息
{
get { return _SWIFT; }
set { _SWIFT = value; }
}
[ModelDB]
public string BANKAGENTNAME //代理银行名称
{
get { return _BANKAGENTNAME; }
set { _BANKAGENTNAME = value; }
}
[ModelDB]
public string BANKADDR
{
get { return _BANKADDR; }
set { _BANKADDR = value; }
}
[ModelDB]
public string BANKACNO //收款银行在其代理银行的编号
{
get { return _BANKACNO; }
set { _BANKACNO = value; }
}
public string BANKNAME_ACCOUNT
{
get { return _BANKNAME_ACCOUNT; }
set { _BANKNAME_ACCOUNT = value; }
}
private string _COUNTRYID = string.Empty;
private string _COUNTRY = string.Empty;
[ModelDB]
public string COUNTRYID
{
get { return _COUNTRYID; }
set { _COUNTRYID = value; }
}
public string COUNTRY
{
get { return _COUNTRY; }
set { _COUNTRY = value; }
}
[ModelDB]
public string ISINVDEF { get; set; }
public string ISINVDEFREF { get; set; }
#endregion
public MsClientAccount()
{
TableName = "info_client_bank";
}
override public string GetBillNoFieldName()
{
return "LINKID";
}
}
[JsonObject]
public class MsInfoClentGroup : ModelObjectBillHead
{
private string _PCORPNAME = "";
public string PCORPNAME
{
get { return _PCORPNAME; }
set { _PCORPNAME = value; }
}
private string _CODENAME = "";
public string CODENAME
{
get { return _CODENAME; }
set { _CODENAME = value; }
}
private string _SHORTNAME = "";
public string SHORTNAME
{
get { return _SHORTNAME; }
set { _SHORTNAME = value; }
}
private string _CodeAndName = "";
public string CodeAndName
{
get { return _CodeAndName; }
set { _CodeAndName = value; }
}
}
[JsonObject]
public class Info_Client_ACCDATEmb : ModelObjectBillBody
{
private string _GID = string.Empty;
private string _CONTRACTGID = string.Empty;
private string _LINKGID = string.Empty;
private string _BGNDATE = string.Empty;
private string _ENDDATE = string.Empty;
private string _OPLBNAME = string.Empty;
private string _SALE = string.Empty;
private string _BSSOURCE = string.Empty;
private string _COMMISSIONRATE ="0";
private string _ACCTYPE = string.Empty;
private string _ACCSTARTDATE = string.Empty;
private string _ACCMONTH = string.Empty;
private string _ACCDAYS = string.Empty;
private string _ALLOWAMOUNT = string.Empty;
private string _MODIFIEDUSER = string.Empty;
private string _MODIFIEDTIME = string.Empty;
private string _REMARK = string.Empty;
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string LINKGID
{
get { return _LINKGID; }
set { _LINKGID = value; }
}
[ModelDB]
public string CONTRACTGID
{
get { return _CONTRACTGID; }
set { _CONTRACTGID = value; }
}
[ModelDB]
public string BGNDATE
{
get { return _BGNDATE; }
set { _BGNDATE = value; }
}
[ModelDB]
public string ENDDATE
{
get { return _ENDDATE; }
set { _ENDDATE = value; }
}
[ModelDB]
public string OPLBNAME
{
get { return _OPLBNAME; }
set { _OPLBNAME = value; }
}
[ModelDB]
public string SALE
{
get { return _SALE; }
set { _SALE = value; }
}
[ModelDB]
public string BSSOURCE
{
get { return _BSSOURCE; }
set { _BSSOURCE = value; }
}
[ModelDB]
public string COMMISSIONRATE
{
get { return _COMMISSIONRATE; }
set { _COMMISSIONRATE = value; }
}
[ModelDB]
public string ACCTYPE
{
get { return _ACCTYPE; }
set { _ACCTYPE = value; }
}
[ModelDB]
public string ACCSTARTDATE
{
get { return _ACCSTARTDATE; }
set { _ACCSTARTDATE = value; }
}
[ModelDB]
public string ACCMONTH
{
get { return _ACCMONTH; }
set { _ACCMONTH = value; }
}
[ModelDB]
public string ACCDAYS
{
get { return _ACCDAYS; }
set { _ACCDAYS = value; }
}
[ModelDB]
public string ALLOWAMOUNT
{
get { return _ALLOWAMOUNT; }
set { _ALLOWAMOUNT = value; }
}
[ModelDB]
public string MODIFIEDUSER
{
get { return _MODIFIEDUSER; }
set { _MODIFIEDUSER = value; }
}
private string _MODIFIEDUSERREF;
public string MODIFIEDUSERREF
{
get { return _MODIFIEDUSERREF; }
set { _MODIFIEDUSERREF = value; }
}
[ModelDB]
public string MODIFIEDTIME
{
get { return _MODIFIEDTIME; }
set { _MODIFIEDTIME = value; }
}
[ModelDB]
public string REMARK
{
get { return _REMARK; }
set { _REMARK = value; }
}
[ModelDB]
public string CARRIER { get; set; }
[ModelDB]
public string STLREMARK { get; set; }
public Info_Client_ACCDATEmb ( )
{
TableName = "Info_Client_ACCDATE";
}
override public string GetBillNoFieldName()
{
return "LINKGID";
}
}
[JsonObject]
public class STLDATEmb : ModelObjectBillBody
{
private string _STLDATE = string.Empty;
private string _STLNAME = string.Empty;
private string _STLDAYS = string.Empty;
private string _BSSOURCE = string.Empty;
public string STLDATE
{
get { return _STLDATE; }
set { _STLDATE = value; }
}
public string STLNAME
{
get { return _STLNAME; }
set { _STLNAME = value; }
}
public string STLDAYS
{
get { return _STLDAYS; }
set { _STLDAYS = value; }
}
public string BSSOURCE
{
get { return _BSSOURCE; }
set { _BSSOURCE = value; }
}
public decimal ALLOWAMOUNT { get; set; }
}
[JsonObject]
public class Info_Client_GDFYWHmb : ModelObjectBillBody
{
#region private Fields
private string _GID = String.Empty;
private string _FEENAME = String.Empty;
private string _CLIENTREF = String.Empty;
private string _CUSTOMERNAME = String.Empty;
private string _UNIT = String.Empty;
private string _CURRENCY = "RMB";
private decimal _UNITPRICE = 0;
private decimal _EXCHANGERATE = 0;
private decimal _TAXRATE = 0;
private decimal _TAX = 0;
private string _CREATEUSER = String.Empty;
private string _CREATETIME = String.Empty;
private string _REMARK = String.Empty;
private string _FEEFRT = String.Empty;
private bool _ISCTN = false;
private string _ISCTNREF = String.Empty;
private bool _ISINVOICE = false;
private bool _ISADVANCEDPAY = false;
#endregion
#region Public Properties
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _GID; }
set { _GID = value; }
}
[ModelDB]
public string FEENAME
{
get { return _FEENAME; }
set { _FEENAME = value; }
}
public string CLIENTREF
{
get { return _CLIENTREF; }
set { _CLIENTREF = value; }
}
[ModelDB]
public string CUSTOMERNAME
{
get { return _CUSTOMERNAME; }
set { _CUSTOMERNAME = value; }
}
[ModelDB]
public string UNIT
{
get { return _UNIT; }
set { _UNIT = value; }
}
[ModelDB]
public string CURRENCY
{
get { return _CURRENCY; }
set { _CURRENCY = value; }
}
[ModelDB]
public decimal UNITPRICE
{
get { return _UNITPRICE; }
set { _UNITPRICE = value; }
}
[ModelDB]
public decimal EXCHANGERATE
{
get { return _EXCHANGERATE; }
set { _EXCHANGERATE = value; }
}
[ModelDB]
public decimal TAXRATE
{
get { return _TAXRATE; }
set { _TAXRATE = value; }
}
[ModelDB]
public decimal TAX
{
get { return _TAX; }
set { _TAX = value; }
}
[ModelDB]
public string FEEFRT
{
get { return _FEEFRT; }
set { _FEEFRT = value; }
}
[ModelDB]
public string CREATEUSER
{
get { return _CREATEUSER; }
set { _CREATEUSER = value; }
}
[ModelDB]
public string CREATETIME
{
get { return _CREATETIME; }
set { _CREATETIME = value; }
}
[ModelDB]
public string REMARK
{
get { return _REMARK; }
set { _REMARK = value; }
}
[ModelDB]
public bool ISCTN
{
get { return _ISCTN; }
set { _ISCTN = value; }
}
public string ISCTNREF
{
get { return _ISCTNREF; }
set { _ISCTNREF = value; }
}
[ModelDB]
public bool ISINVOICE
{
get { return _ISINVOICE; }
set { _ISINVOICE = value; }
}
[ModelDB]
public bool ISADVANCEDPAY
{
get { return _ISADVANCEDPAY; }
set { _ISADVANCEDPAY = value; }
}
public int FEETYPE { get; set; }
public string FEETYPEREF { get; set; }
#endregion
public Info_Client_GDFYWHmb()
{
TableName = "cust_fee_templatedetail";
}
override public string GetBillNoFieldName()
{
return "GID";
}
}
[JsonObject]//20191010 为往来单位增加存放电子章的位置
public class MsInfoClientImgmb : ModelObjectBillBody
{
public override Dictionary GetPKey()
{//用于给扩展的动态数据提供主键字段名
var d = new Dictionary() { { "GID", ModelDBOprationType.All } };
return d;
}
public Dictionary SaveDic = new Dictionary();
public static string getSQL()
{
return " SELECT [GID],[LINKGID],[NAME],[DESCRIPTION],[REMARK],[IMGURL],[INDATABASE],[CREATEUSER] FROM [dbo].[info_client_img] where 1=1 ";
}
public MsInfoClientImgmb()
{
TableName = "info_client_img";
}
//public MsInfoClientImgmb(string BSNO)
//{
// setDefault();
// SetValue("BSNO", BSNO);
// TableName = "info_client_img";
//}
//public void setDefault()
//{
// SetValue("GID", System.Guid.NewGuid().ToString());
// SetValue("FIXFEE", "0");
// SetValue("WASHFEE", "0");
// SetValue("FWFEE", "0");
// SetValue("OVERFEE", "0");
// SetValue("LATEFEE", "0");
// SetValue("TOTALFEE", "0");
//}
public override string GetBillNoFieldName()
{
return "LINKGID";
}
public override string GetTimeMarkFieldName()
{
return "";
}
}
[JsonObject]
public class MsHangXinCust
{
public string GID { set; get; }
public string CUSTGID { set; get; }
public string SHORTNAME { set; get; }
public string CUSTNAME { set; get; }
public string TAXNO { set; get; }
public string ADDRTEL { set; get; }
public string BANK { set; get; }
}
[JsonObject]
public class ClientPS
{
public string GID { set; get; }
public string LINKGID { set; get; }
public string CUSTNAME { set; get; }
public string SALEDEPT { set; get; }
public decimal PS { set; get; }
public string REMARK { set; get; }
}
[JsonObject]
public class ClientINV
{
public string GID { set; get; }
public string LINKGID { set; get; }
public string CUSTNAME { set; get; }
public string INVOICECUSTNAME { set; get; }
public string CUSTRATENO { set; get; }
public string CUSTADDRTEL { set; get; }
public string CUSTBANK { set; get; }
public string CUSTUSDBANK { set; get; }
public string REMARK { set; get; }
}
}