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/MvcShipping/Models/MsInfoClient/MsInfoClient.cs

1795 lines
44 KiB
C#

2 years ago
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();
/// <summary>
/// 编号
/// </summary>
[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 = "";
/// <summary>
/// 代码
/// </summary>
[ModelDB]
public string CODENAME
{
get { return _CODENAME; }
set { _CODENAME = value; }
}
private string _SHORTNAME = "";
/// <summary>
/// 简称
/// </summary>
[ModelDB]
public string SHORTNAME
{
get { return _SHORTNAME; }
set { _SHORTNAME = value; }
}
private string _CodeAndName = "";
/// <summary>
/// 代码
/// </summary>
public string CodeAndName
{
get { return _CodeAndName; }
set { _CodeAndName = value; }
}
private string _DESCRIPTION = "";
/// <summary>
/// 全称
/// </summary>
[ModelDB]
public string DESCRIPTION
{
get { return _DESCRIPTION; }
set { _DESCRIPTION = value; }
}
private string _enfullname = "";
/// <summary>
/// 英文全称
/// </summary>
[ModelDB]
public string ENFULLNAME
{
get { return _enfullname; }
set { _enfullname = value; }
}
private int _status =0;
/// <summary>
/// </summary>
public int STATUS
{
get { return _status; }
set { _status = value; }
}
private string _addr = "";
/// <summary>
/// 地址
/// </summary>
[ModelDB]
public string ADDR
{
get { return _addr; }
set { _addr = value; }
}
private string _EMAIL = "";
/// <summary>
///
/// </summary>
[ModelDB]
public string EMAIL
{
get { return _EMAIL; }
set { _EMAIL = value; }
}
private string _WEB = "";
/// <summary>
///
/// </summary>
[ModelDB]
public string WEB
{
get { return _WEB; }
set { _WEB = value; }
}
private string _TEL = "";
/// <summary>
///
/// </summary>
[ModelDB]
public string TEL
{
get { return _TEL; }
set { _TEL = value; }
}
private string _FAX = "";
/// <summary>
///
/// </summary>
[ModelDB]
public string FAX
{
get { return _FAX; }
set { _FAX = value; }
}
private string _CHIEF = "";
/// <summary>
///
/// </summary>
[ModelDB]
public string CHIEF
{
get { return _CHIEF; }
set { _CHIEF = value; }
}
private string _op = "";
/// <summary>
/// 操作员
/// </summary>
[ModelDB]
public string OP
{
get{ return _op; }
set{ _op = value; }
}
private string _DOC = "";
/// <summary>
/// 客服员
/// </summary>
[ModelDB]
public string DOC
{
get { return _DOC; }
set { _DOC = value; }
}
private string _sale = "";
/// <summary>
/// 揽货人
/// </summary>
[ModelDB]
public string SALE
{
get{ return _sale; }
set{ _sale = value; }
}
private string _OPNAME = "";
/// <summary>
/// 录入人
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string OPNAME
{
get { return _OPNAME; }
set { _OPNAME = value; }
}
private string _OPTIME = DateTime.Now.ToString("yyyy-MM-dd HH:mm");
/// <summary>
/// 创建时间
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string OPTIME
{
get { return _OPTIME; }
set { _OPTIME = value; }
}
private string _corpid = "";
/// <summary>
/// 分公司代码
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string CORPID
{
get{ return _corpid; }
set{ _corpid = value; }
}
private string _salecorpid = "";
/// <summary>
/// 分公司代码
/// </summary>
[ModelDB]
public string SALECORPID
{
get { return _salecorpid; }
set { _salecorpid = value; }
}
private string _OTHERS = "";
/// <summary>
/// </summary>
[ModelDB]
public string OTHERS
{
get { return _OTHERS; }
set { _OTHERS = value; }
}
private bool _ISSTOP =false;
/// <summary>
/// 停用
/// </summary>
[ModelDB]
public bool ISSTOP
{
get { return _ISSTOP; }
set { _ISSTOP = value; }
}
private string _COUNTRY;
/// <summary>
/// 国家
/// </summary>
[ModelDB]
public string COUNTRY
{
get { return _COUNTRY; }
set { _COUNTRY = value; }
}
private string _PROVINCE;
/// <summary>
/// 省
/// </summary>
[ModelDB]
public string PROVINCE
{
get { return _PROVINCE; }
set { _PROVINCE = value; }
}
private string _CITY = "";
/// <summary>
/// 城市
/// </summary>
[ModelDB]
public string CITY
{
get { return _CITY; }
set { _CITY = value; }
}
private string _BLCONTENT = "";
/// <summary>
/// 单证内容
/// </summary>
[ModelDB]
public string BLCONTENT
{
get { return _BLCONTENT; }
set { _BLCONTENT = value; }
}
private string _BillRises1 = "";
/// <summary>
/// 发票抬头
/// </summary>
[ModelDB]
public string BILLRISES1
{
get { return _BillRises1; }
set { _BillRises1 = value; }
}
private string _BillRises2 = "";
/// <summary>
/// 发票抬头
/// </summary>
[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 = "";
/// <summary>
/// 人民币支票抬头
/// </summary>
[ModelDB]
public string RMBBILLRISES
{
get { return _RMBBillRises; }
set { _RMBBillRises = value; }
}
private string _USDBillRises = "";
/// <summary>
/// USD支票抬头
/// </summary>
[ModelDB]
public string USDBILLRISES
{
get { return _USDBillRises; }
set { _USDBillRises = value; }
}
private decimal _USDMaxAmountCredit = 0;
/// <summary>
/// 美元最大信用额度
/// </summary>
[ModelDB]
public decimal USDMAXAMOUNTCREDIT
{
get { return _USDMaxAmountCredit; }
set { _USDMaxAmountCredit = value; }
}
private decimal _RMBMaxAmountCredit = 0;
/// <summary>
/// RMB最大信用额度
/// </summary>
[ModelDB]
public decimal RMBMAXAMOUNTCREDIT
{
get { return _RMBMaxAmountCredit; }
set { _RMBMaxAmountCredit = value; }
}
private decimal _MaxAmountCredit = 0;
/// <summary>
/// 最大信用额度
/// </summary>
[ModelDB]
public decimal MAXAMOUNTCREDIT
{
get { return _MaxAmountCredit; }
set { _MaxAmountCredit = value; }
}
private string _stlname = "";
/// <summary>
/// 结算方式
/// </summary>
[ModelDB]
public string STLNAME
{
get { return _stlname; }
set { _stlname = value; }
}
private string _remark = "";
/// <summary>
///
/// </summary>
[ModelDB]
public string REMARK
{
get { return _remark; }
set { _remark = value; }
}
private string _TICHENG ="0";
/// <summary>
///
/// </summary>
[ModelDB]
public string TICHENG
{
get { return _TICHENG; }
set { _TICHENG = value; }
}
private string _FENCHENG = "0";
/// <summary>
///
/// </summary>
[ModelDB]
public string FENCHENG
{
get { return _FENCHENG; }
set { _FENCHENG = value; }
}
private string _TICHENGCANYU = "";
/// <summary>
/// 提成参与人
/// </summary>
[ModelDB]
public string TICHENGCANYU
{
get { return _TICHENGCANYU; }
set { _TICHENGCANYU = value; }
}
private string _accremark = "";
/// <summary>
///
/// </summary>
public string ACCREMARK
{
get { return _accremark; }
set { _accremark = value; }
}
private decimal _USDExchangeRate = 0;
/// <summary>
/// 美元汇率
/// </summary>
[ModelDB]
public decimal USDEXCHANGERATE
{
get { return _USDExchangeRate; }
set { _USDExchangeRate = value; }
}
private string _stldate = "";
/// <summary>
/// 结算日
/// </summary>
[ModelDB]
public string STLDATE
{
get { return _stldate; }
set { _stldate = value; }
}
private string _STLFIRSTHALFDATE = "";
/// <summary>
/// 上半月时间
/// </summary>
[ModelDB]
public string STLFIRSTHALFDATE
{
get { return _STLFIRSTHALFDATE; }
set { _STLFIRSTHALFDATE = value; }
}
private string _STLMIDDLEDATE = "";
/// <summary>
/// 下半月日期
/// </summary>
[ModelDB]
public string STLMIDDLEDATE
{
get { return _STLMIDDLEDATE; }
set { _STLMIDDLEDATE = value; }
}
private string _STLDATEPJ = "";
/// <summary>
/// 票结日期
/// </summary>
[ModelDB]
public string STLDATEPJ
{
get { return _STLDATEPJ; }
set { _STLDATEPJ = value; }
}
private string _LEVEL = "";
/// <summary>
/// 运价级别
/// </summary>
[ModelDB]
public string LEVEL
{
get { return _LEVEL; }
set { _LEVEL = value; }
}
private string _LOGINNAME = "";
/// <summary>
/// 登陆名称
/// </summary>
[ModelDB]
public string LOGINNAME
{
get { return _LOGINNAME; }
set { _LOGINNAME = value; }
}
private string _LOGINPASSWORD = "";
/// <summary>
/// 登陆名称
/// </summary>
[ModelDB]
public string LOGINPASSWORD
{
get { return _LOGINPASSWORD; }
set { _LOGINPASSWORD = value; }
}
private string _QQ = "";
/// <summary>
/// QQ
/// </summary>
[ModelDB]
public string QQ
{
get { return _QQ; }
set { _QQ = value; }
}
private string _MSN= "";
/// <summary>
/// MSN
/// </summary>
[ModelDB]
public string MSN
{
get { return _MSN; }
set { _MSN = value; }
}
private string _FARCODE = "";
/// <summary>
/// 收财务代码
/// </summary>
[ModelDB]
public string FARCODE
{
get { return _FARCODE; }
set { _FARCODE = value; }
}
private string _FAPCODE = "";
/// <summary>
/// 付财务代码
/// </summary>
[ModelDB]
public string FAPCODE
{
get { return _FAPCODE; }
set { _FAPCODE = value; }
}
private string _UNITPRICE = "";
/// <summary>
/// 仓储费
/// </summary>
[ModelDB]
public string UNITPRICE
{
get { return _UNITPRICE; }
set { _UNITPRICE = value; }
}
private string _REGISTRATIONNO = "";
/// <summary>
/// 企业备案号
/// </summary>
[ModelDB]
public string REGISTRATIONNO
{
get { return _REGISTRATIONNO; }
set { _REGISTRATIONNO = value; }
}
private string _TAXNO = "";
/// <summary>
/// 税号
/// </summary>
[ModelDB]
public string TAXNO
{
get { return _TAXNO; }
set { _TAXNO = value; }
}
private string _InspectionNo = "";
/// <summary>
/// 商检备案号
/// </summary>
[ModelDB]
public string InspectionNo
{
get { return _InspectionNo; }
set { _InspectionNo = value; }
}
private string _EDICODE = "";
/// <summary>
/// EDI CODE
/// </summary>
[ModelDB]
public string EDICODE
{
get { return _EDICODE; }
set { _EDICODE = value; }
}
private string _EDICODE2 = "";
/// <summary>
/// EDI CODE
/// </summary>
[ModelDB]
public string EDICODE2
{
get { return _EDICODE2; }
set { _EDICODE2 = value; }
}
private string _EDICODE3 = "";
/// <summary>
/// EDI CODE
/// </summary>
[ModelDB]
public string EDICODE3
{
get { return _EDICODE3; }
set { _EDICODE3 = value; }
}
private string _ORGANIZATIONCODE = "";
/// <summary>
/// 机构代码
/// </summary>
[ModelDB]
public string ORGANIZATIONCODE
{
get { return _ORGANIZATIONCODE; }
set { _ORGANIZATIONCODE = value; }
}
private bool _ISCARRIER = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISCARRIER
{
get { return _ISCARRIER; }
set { _ISCARRIER = value; }
}
private bool _ISBOOKING = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISBOOKING
{
get { return _ISBOOKING; }
set { _ISBOOKING = value; }
}
private bool _ISYARD = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISYARD
{
get { return _ISYARD; }
set { _ISYARD = value; }
}
private bool _ISTRUCK = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISTRUCK
{
get { return _ISTRUCK; }
set { _ISTRUCK = value; }
}
private bool _ISCONTROLLER = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISCONTROLLER
{
get { return _ISCONTROLLER; }
set { _ISCONTROLLER = value; }
}
private bool _ISCUSTOM = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISCUSTOM
{
get { return _ISCUSTOM; }
set { _ISCUSTOM = value; }
}
private bool _ISAGENT = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISAGENT
{
get { return _ISAGENT; }
set { _ISAGENT = value; }
}
private bool _ISAGENTCN = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISAGENTCN
{
get { return _ISAGENTCN; }
set { _ISAGENTCN = value; }
}
private bool _ISEXPRESS = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISEXPRESS
{
get { return _ISEXPRESS; }
set { _ISEXPRESS = value; }
}
private bool _ISAIRLINES = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISAIRLINES
{
get { return _ISAIRLINES; }
set { _ISAIRLINES = value; }
}
private bool _ISSHIPPER = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISSHIPPER
{
get { return _ISSHIPPER; }
set { _ISSHIPPER = value; }
}
private bool _ISCONSIGNEE = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISCONSIGNEE
{
get { return _ISCONSIGNEE; }
set { _ISCONSIGNEE = value; }
}
private bool _ISNOTIFYPARTY = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISNOTIFYPARTY
{
get { return _ISNOTIFYPARTY; }
set { _ISNOTIFYPARTY = value; }
}
private bool _ISWAREHOUSE = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISWAREHOUSE
{
get { return _ISWAREHOUSE; }
set { _ISWAREHOUSE = value; }
}
private bool _ISINSURE = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISINSURE
{
get { return _ISINSURE; }
set { _ISINSURE = value; }
}
private bool _ISLEASING = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISLEASING
{
get { return _ISLEASING; }
set { _ISLEASING = value; }
}
private bool _ISTRADINGAGENCY = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISTRADINGAGENCY
{
get { return _ISTRADINGAGENCY; }
set { _ISTRADINGAGENCY = value; }
}
private bool _ISOTHER = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISOTHER
{
get { return _ISOTHER; }
set { _ISOTHER = value; }
}
private bool _ISENTERP = false;
/// <summary>
///
/// </summary>
[ModelDB]
public bool ISENTERP
{
get { return _ISENTERP; }
set { _ISENTERP = value; }
}
private string _ORDERNO = "";
/// <summary>
/// 机构代码
/// </summary>
[ModelDB]
public string ORDERNO
{
get { return _ORDERNO; }
set { _ORDERNO = value; }
}
private bool _ISSHIPAGENCY = false;
/// <summary>
/// 是否船代
/// </summary>
[ModelDB]
public bool ISSHIPAGENCY
{
get { return _ISSHIPAGENCY; }
set { _ISSHIPAGENCY = value; }
}
private string _BLSTATUSREF = "";
/// <summary>
/// 审核状态
/// </summary>
public string BLSTATUSREF
{
get { return _BLSTATUSREF; }
set { _BLSTATUSREF = value; }
}
private string _CUSTPROP = "";
/// <summary>
/// 客户属性
/// </summary>
public string CUSTPROP
{
get { return _CUSTPROP; }
set { _CUSTPROP = value; }
}
private bool _ISSP = false;
/// <summary>
/// 是否特殊审批客户
/// </summary>
[ModelDB]
public bool ISSP
{
get { return _ISSP; }
set { _ISSP = value; }
}
private string _FEEFRT ="PP";
/// <summary>
/// 是否船代
/// </summary>
[ModelDB]
public string FEEFRT
{
get { return _FEEFRT; }
set { _FEEFRT = value; }
}
private string _BSSOURCE = "";
/// <summary>
/// 业务来源
/// </summary>
[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
public MsClient()
{
TableName = "info_client";
}
override public string GetBillNoFieldName()
{
return "GID";
}
public override string GetTimeMarkFieldName ( )
{
return "";
}
/// <summary>
/// 用于显示合同 是否上传 有效期等
/// </summary>
///
public string CONTRACTSTATUS { get; set; }
public string CONTRACTDATE { get; set; }
/// <summary>
///20210425 寻找合同列表中的合同
///如果存在3个月以后还生效的合同 STATUS +1
///如果存在未来90天以内失效的合同 STATUS +10 日期写该合同时间
///如果存在过去15天内失效的合同 STATUS +100 日期写该合同时间
/// </summary>
/// <param name="ContractList"></param>
public void SetContractStatus(List<MsInfoContract.MsInfoContract> 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 = "";
/// <summary>
/// GID
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)]
public string GID
{
get { return _gid; }
set { _gid = value; }
}
private string _linkid = "";
/// <summary>
/// 公司关联id
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string LINKID
{
get { return _linkid; }
set { _linkid = value; }
}
private string _accountname = "";
/// <summary>
/// CODENAME
/// </summary>
[ModelDB]
public string ACCOUNTNAME
{
get { return _accountname; }
set { _accountname = value; }
}
private string _codename = "";
/// <summary>
/// CODENAME
/// </summary>
[ModelDB]
public string CODENAME
{
get { return _codename; }
set { _codename = value; }
}
private string _currency = "";
/// <summary>
/// CURRENCY
/// </summary>
[ModelDB]
public string CURRENCY
{
get { return _currency; }
set { _currency = value; }
}
private string _bankname = "";
/// <summary>
/// BANKNAME
/// </summary>
[ModelDB]
public string BANKNAME
{
get { return _bankname; }
set { _bankname = value; }
}
private string _account = "";
/// <summary>
/// ACCOUNT
/// </summary>
[ModelDB]
public string ACCOUNT
{
get { return _account; }
set { _account = value; }
}
private string _subjectcode = "";
/// <summary>
/// 银行账户
/// </summary>
[ModelDB]
public string SUBJECTCODE
{
get { return _subjectcode; }
set { _subjectcode = value; }
}
private string _remark = "";
/// <summary>
/// REMARK
/// </summary>
[ModelDB]
public string REMARK
{
get { return _remark; }
set { _remark = value; }
}
private string _financesoftcode = "";
/// <summary>
/// FINANCESOFTCODE
/// </summary>
[ModelDB]
public string FINANCESOFTCODE
{
get { return _financesoftcode; }
set { _financesoftcode = value; }
}
private string _createuser = "";
/// <summary>
/// CREATEUSER
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string CREATEUSER
{
get { return _createuser; }
set { _createuser = value; }
}
private string _createtime ="";
/// <summary>
/// CREATETIME
/// </summary>
[ModelDB(MDBType = ModelDBOprationType.Insert)]
public string CREATETIME
{
get { return _createtime; }
set { _createtime = value; }
}
private string _CUSTNAME = "";
/// <summary>
/// 简称
/// </summary>
public string CUSTNAME
{
get { return _CUSTNAME; }
set { _CUSTNAME = value; }
}
private string _ACCOUNTNAMEREF = "";
/// <summary>
/// 简称
/// </summary>
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; }
}
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; }
}
}
[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; }
}
#endregion
public Info_Client_GDFYWHmb()
{
TableName = "cust_fee_templatedetail";
}
override public string GetBillNoFieldName()
{
return "GID";
}
}
[JsonObject]//20191010 为往来单位增加存放电子章的位置
public class MsInfoClientImgmb : ModelObjectBillBody
{
public override Dictionary<string, ModelDBOprationType> GetPKey()
{//用于给扩展的动态数据提供主键字段名
var d = new Dictionary<string, ModelDBOprationType>() { { "GID", ModelDBOprationType.All } };
return d;
}
public Dictionary<string, string> SaveDic = new Dictionary<string, string>();
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; }
}
}