using System; using HcUtility.Core; using Newtonsoft.Json; 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; } } 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; } } 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 _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 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 _LOADPORT = string.Empty; [ModelDB] public string LOADPORT { get { return _LOADPORT; } set { _LOADPORT = value; } } /// /// 别名转换码 队列 多个,间隔 转换码 多个,间隔 比如 青岛东胜,东胜软件,青东胜=>青岛东胜软件有限公司 /// [ModelDB] public string SwitchCodeList { get; set; } #endregion public MsClient() { TableName = "info_client"; } override public string GetBillNoFieldName() { return "GID"; } public override string GetTimeMarkFieldName ( ) { return ""; } } [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; } } #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 _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 _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 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 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; } } [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; 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; } } } // }