using System; using HcUtility.Core; using Newtonsoft.Json; namespace DSWeb.MvcShipping.Models.MsExchangesUnit { [JsonObject] public class MsExchangesUnitEntity : ModelObjectBillHead { #region 属性 //private string _BSNO = "topother" + Guid.NewGuid().ToString();//业务编号 private string _gid = "*"; /// /// GID /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _gid; } set { _gid = 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 _description = ""; /// /// 客户中文名称或描述信息 /// [ModelDB] public string DESCRIPTION { get { return _description; } set { _description = value; } } private string _name = ""; /// /// 客户英文简称 /// [ModelDB] public string NAME { get { return _name; } set { _name = value; } } private string _enfullname = ""; /// /// 客户英文全称 /// [ModelDB] public string EnFullName { get { return _enfullname; } set { _enfullname = value; } } private int _status = 0; /// /// 客户状态 /// [ModelDB] 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 _sale = ""; /// /// 所属揽货人 /// [ModelDB] public string SALE { get { return _sale; } set { _sale = 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 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 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 _corpid = ""; /// /// CORPID /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string CORPID { get { return _corpid; } set { _corpid = value; } } private string _blcontent = ""; /// /// BLCONTENT /// [ModelDB] public string BLCONTENT { get { return _blcontent; } set { _blcontent = value; } } private bool _isstop = false; /// /// 是否停用该客户信息 /// [ModelDB] public bool ISSTOP { get { return _isstop; } set { _isstop = value; } } private string _billrises1 = ""; /// /// 发票抬头1 /// [ModelDB] public string BillRises1 { get { return _billrises1; } set { _billrises1 = value; } } private string _billrises2 = ""; /// /// 发票抬头2 /// [ModelDB] public string BillRises2 { get { return _billrises2; } set { _billrises2 = value; } } private string _usdbillrises = ""; /// /// 美元支票抬头 /// [ModelDB] public string USDBillRises { get { return _usdbillrises; } set { _usdbillrises = value; } } private string _rmbbillrises = ""; /// /// 人民币支票抬头 /// [ModelDB] public string RMBBillRises { get { return _rmbbillrises; } set { _rmbbillrises = value; } } private string _rmbbank = ""; /// /// 人民币开户银行 /// [ModelDB] public string RMBBank { get { return _rmbbank; } set { _rmbbank = value; } } private string _rmbaccount = ""; /// /// 人民币账号 /// [ModelDB] public string RMBAccount { get { return _rmbaccount; } set { _rmbaccount = value; } } private string _rmbonlineno = ""; /// /// 人民币联机行号 /// [ModelDB] public string RMBOnlineNO { get { return _rmbonlineno; } set { _rmbonlineno = value; } } private string _usdbank = ""; /// /// 美元开户银行 /// [ModelDB] public string USDBank { get { return _usdbank; } set { _usdbank = value; } } private string _usdaccount = ""; /// /// 美元账号 /// [ModelDB] public string USDAccount { get { return _usdaccount; } set { _usdaccount = value; } } private string _usdonlineno = ""; /// /// 美元联机行号 /// [ModelDB] public string USDOnlineNO { get { return _usdonlineno; } set { _usdonlineno = value; } } private string _customattributes1 = ""; /// /// 自定义属性1 /// [ModelDB] public string CustomAttributes1 { get { return _customattributes1; } set { _customattributes1 = value; } } private string _customattributes2 = ""; /// /// 自定义属性2 /// [ModelDB] public string CustomAttributes2 { get { return _customattributes2; } set { _customattributes2 = value; } } private decimal _usdmaxamountcredit = 0; /// /// 美元信用最大金额 /// [ModelDB] public decimal USDMaxAmountCredit { get { return _usdmaxamountcredit; } set { _usdmaxamountcredit = value; } } private decimal _rmbmaxamountcredit = 0; /// /// 人民币信用最大金额 /// [ModelDB] public decimal RMBMaxAmountCredit { get { return _rmbmaxamountcredit; } set { _rmbmaxamountcredit = value; } } private decimal _maxamountcredit = 0; /// /// 信用最大金额(RMB+USD) /// [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 _opname = ""; /// /// 处理人 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public string OPNAME { get { return _opname; } set { _opname = value; } } private DateTime _optime = DateTime.Now; /// /// 处理时间 /// [ModelDB(MDBType = ModelDBOprationType.Insert)] public DateTime OPTIME { get { return _optime; } set { _optime = value; } } private string _remark = ""; /// /// 备注 /// [ModelDB] public string REMARK { get { return _remark; } set { _remark = 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 = ""; /// /// STLDATEPJ /// [ModelDB] public string STLDATEPJ { get { return _stldatepj; } set { _stldatepj = value; } } private string _level = ""; /// /// LEVEL /// [ModelDB] public string LEVEL { get { return _level; } set { _level = value; } } private string _loginname = ""; /// /// LOGINNAME /// [ModelDB] public string LOGINNAME { get { return _loginname; } set { _loginname = value; } } private string _loginpassword = ""; /// /// 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 _MODIFIEDUSERNAME = ""; /// /// MODIFIEDUSERNAME /// public string MODIFIEDUSERNAME { get { return _MODIFIEDUSERNAME; } set { _MODIFIEDUSERNAME = value; } } private string _modifieduser = ""; /// /// MODIFIEDUSER /// [ModelDB] public string MODIFIEDUSER { get { return _modifieduser; } set { _modifieduser = value; } } private DateTime _modifiedtime = DateTime.Now; /// /// MODIFIEDTIME /// [ModelDB] public DateTime MODIFIEDTIME { get { return _modifiedtime; } set { _modifiedtime = value; } } private bool _iswharf = false; /// /// ISWHARF /// [ModelDB] public bool ISWHARF { get { return _iswharf; } set { _iswharf = value; } } private bool _isshippingagent = false; /// /// ISSHIPPINGAGENT /// [ModelDB] public bool ISSHIPPINGAGENT { get { return _isshippingagent; } set { _isshippingagent = value; } } private string _farcode = ""; /// /// FARCODE /// [ModelDB] public string FARCODE { get { return _farcode; } set { _farcode = value; } } private string _fapcode = ""; /// /// FAPCODE /// [ModelDB] public string FAPCODE { get { return _fapcode; } set { _fapcode = value; } } private bool _isinsure = false; /// /// ISINSURE /// [ModelDB] public bool ISINSURE { get { return _isinsure; } set { _isinsure = value; } } private bool _isleasing = false; /// /// ISLEASING /// [ModelDB] public bool ISLEASING { get { return _isleasing; } set { _isleasing = value; } } private bool _istradingagency = false; /// /// ISTRADINGAGENCY /// [ModelDB] public bool ISTRADINGAGENCY { get { return _istradingagency; } set { _istradingagency = value; } } private bool _isother = false; /// /// ISOTHER /// [ModelDB] public bool ISOTHER { get { return _isother; } set { _isother = value; } } private string _others = ""; /// /// OTHERS /// [ModelDB] public string OTHERS { get { return _others; } set { _others = value; } } private string _unitprice = "0"; /// /// UNITPRICE /// [ModelDB] public string UNITPRICE { get { return _unitprice; } set { _unitprice = value; } } private string _registrationno = ""; /// /// REGISTRATIONNO /// [ModelDB] public string REGISTRATIONNO { get { return _registrationno; } set { _registrationno = value; } } private string _orderno = ""; /// /// ORDERNO /// [ModelDB] public string ORDERNO { get { return _orderno; } set { _orderno = value; } } private bool _isenterp = false; /// /// ISENTERP /// [ModelDB] public bool ISENTERP { get { return _isenterp; } set { _isenterp = value; } } private string _taxno = ""; /// /// TAXNO /// [ModelDB] public string TAXNO { get { return _taxno; } set { _taxno = value; } } private string _edicode = ""; /// /// EDICODE /// [ModelDB] public string EDICODE { get { return _edicode; } set { _edicode = value; } } private string _edicode2 = ""; /// /// EDICODE2 /// [ModelDB] public string EDICODE2 { get { return _edicode2; } set { _edicode2 = value; } } private string _edicode3 = ""; /// /// EDICODE3 /// [ModelDB] public string EDICODE3 { get { return _edicode3; } set { _edicode3 = value; } } private string _ORGANIZATIONCODE = ""; /// /// 组织机构代码 /// [ModelDB] public string ORGANIZATIONCODE { get { return _ORGANIZATIONCODE; } set { _ORGANIZATIONCODE = value; } } private string _RMBBankAddress = ""; /// /// 人民币开户行地址 /// [ModelDB] public string RMBBankAddress { get { return _RMBBankAddress; } set { _RMBBankAddress = value; } } private string _USDBankAddress = ""; /// /// 美元开户行地址 /// [ModelDB] public string USDBankAddress { get { return _USDBankAddress; } set { _USDBankAddress = value; } } #endregion public MsExchangesUnitEntity() { TableName = "info_client"; } override public string GetBillNoFieldName() { return "GID"; } } [JsonObject] public class MsExchangesUnitContactEntity : ModelObjectBillHead { #region 属性 //private string _BSNO = "topother" + Guid.NewGuid().ToString();//业务编号 private string _gid = "*"; /// /// 惟一编号 /// [ModelDB(MDBType = ModelDBOprationType.All, IsPrimary = true)] public string GID { get { return _gid; } set { _gid = value; } } private string _linkid = ""; /// /// 客户关联id /// [ModelDB] public string LINKID { get { return _linkid; } set { _linkid = value; } } private string _codename = ""; /// /// 客户代码 /// [ModelDB] public string CODENAME { get { return _codename; } set { _codename = value; } } private string _showname = ""; /// /// 客户名称 /// [ModelDB] public string SHOWNAME { get { return _showname; } set { _showname = 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 _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 _mobile = ""; /// /// 传真 /// [ModelDB] public string MOBILE { get { return _mobile; } set { _mobile = value; } } private bool _isfinancialstaff = false; /// /// 是否为财务 /// [ModelDB] public bool ISFINANCIALSTAFF { get { return _isfinancialstaff; } set { _isfinancialstaff = value; } } private bool _isoperator = false; /// /// 是否为操作 /// [ModelDB] public bool ISOPERATOR { get { return _isoperator; } set { _isoperator = value; } } private bool _issaleman = false; /// /// 是否为销售 /// [ModelDB] public bool ISSALEMAN { get { return _issaleman; } set { _issaleman = value; } } private bool _isother = false; /// /// 是否为其他 /// [ModelDB] public bool ISOTHER { get { return _isother; } set { _isother = value; } } private bool _contacttype1 = false; /// /// 联系人类别1 /// [ModelDB] public bool CONTACTTYPE1 { get { return _contacttype1; } set { _contacttype1 = value; } } private bool _contacttype2 = false; /// /// 联系人类别2 /// [ModelDB] public bool CONTACTTYPE2 { get { return _contacttype2; } set { _contacttype2 = value; } } private bool _contacttype3 = false; /// /// 联系人类别3 /// [ModelDB] public bool CONTACTTYPE3 { get { return _contacttype3; } set { _contacttype3 = value; } } private bool _contacttype4 = false; /// /// 联系人类别4 /// [ModelDB] public bool CONTACTTYPE4 { get { return _contacttype4; } set { _contacttype4 = value; } } private bool _contacttype5 = false; /// /// 联系人类别5 /// [ModelDB] public bool CONTACTTYPE5 { get { return _contacttype5; } set { _contacttype5 = value; } } private bool _contacttype6 = false; /// /// 联系人类别6 /// [ModelDB] public bool CONTACTTYPE6 { get { return _contacttype6; } set { _contacttype6 = value; } } private bool _contacttype7 = false; /// /// 联系人类别7 /// [ModelDB] public bool CONTACTTYPE7 { get { return _contacttype7; } set { _contacttype7 = value; } } private string _createuser = ""; /// /// 创建人GID /// [ModelDB(MDBType = ModelDBOprationType.Insert, IsPrimary = true)] public string CREATEUSER { get { return _createuser; } set { _createuser = value; } } private DateTime _createtime = DateTime.Now; /// /// 创建时间 /// [ModelDB(MDBType = ModelDBOprationType.Insert, IsPrimary = true)] public DateTime CREATETIME { get { return _createtime; } set { _createtime = value; } } private string _modifieduser = ""; /// /// 最后一次更新操作人GID /// [ModelDB] public string MODIFIEDUSER { get { return _modifieduser; } set { _modifieduser = value; } } private DateTime _modifiedtime = DateTime.Now; /// /// 最后一次更新操作时间 /// [ModelDB] public DateTime MODIFIEDTIME { get { return _modifiedtime; } set { _modifiedtime = value; } } private bool _isstop = false; /// /// 是否停用该联系人信息 /// [ModelDB] public bool ISSTOP { get { return _isstop; } set { _isstop = value; } } private bool _isdeleted = false; /// /// 联系人删除状态标志 /// [ModelDB(MDBType = ModelDBOprationType.Insert, IsPrimary = true)] public bool ISDELETED { get { return _isdeleted; } set { _isdeleted = value; } } private string _remark = ""; /// /// 备注 /// [ModelDB] public string REMARK { get { return _remark; } set { _remark = value; } } private DateTime _anniversary2 = DateTime.Now; /// /// ANNIVERSARY2 /// [ModelDB] public DateTime ANNIVERSARY2 { get { return _anniversary2; } set { _anniversary2 = value; } } private string _aremark2 = ""; /// /// AREMARK2 /// [ModelDB] public string AREMARK2 { get { return _aremark2; } set { _aremark2 = value; } } private DateTime _birthday = DateTime.Now; /// /// BIRTHDAY /// [ModelDB] public DateTime BIRTHDAY { get { return _birthday; } set { _birthday = value; } } private DateTime _anniversary1 = DateTime.Now; /// /// ANNIVERSARY1 /// [ModelDB] public DateTime ANNIVERSARY1 { get { return _anniversary1; } set { _anniversary1 = value; } } private string _aremark1 = ""; /// /// AREMARK1 /// [ModelDB] public string AREMARK1 { get { return _aremark1; } set { _aremark1 = value; } } private bool _isbirthday = false; /// /// ISBIRTHDAY /// [ModelDB] public bool ISBIRTHDAY { get { return _isbirthday; } set { _isbirthday = value; } } private bool _isanniversary1 = false; /// /// ISANNIVERSARY1 /// [ModelDB] public bool ISANNIVERSARY1 { get { return _isanniversary1; } set { _isanniversary1 = value; } } private bool _isanniversary2 = false; /// /// ISANNIVERSARY2 /// [ModelDB] public bool ISANNIVERSARY2 { get { return _isanniversary2; } set { _isanniversary2 = value; } } private int _birthdayday = 0; /// /// BIRTHDAYDAY /// [ModelDB] public int BIRTHDAYDAY { get { return _birthdayday; } set { _birthdayday = value; } } private int _anniversaryday1 = 0; /// /// ANNIVERSARYDAY1 /// [ModelDB] public int ANNIVERSARYDAY1 { get { return _anniversaryday1; } set { _anniversaryday1 = value; } } private int _anniversaryday2 = 0; /// /// ANNIVERSARYDAY2 /// [ModelDB] public int ANNIVERSARYDAY2 { get { return _anniversaryday2; } set { _anniversaryday2 = value; } } private string _job = ""; /// /// JOB /// [ModelDB] public string JOB { get { return _job; } set { _job = value; } } private string _sex = ""; /// /// SEX /// [ModelDB] public string SEX { get { return _sex; } set { _sex = value; } } private string _age = ""; /// /// AGE /// [ModelDB] public string AGE { get { return _age; } set { _age = value; } } private string _marry = ""; /// /// MARRY /// [ModelDB] public string MARRY { get { return _marry; } set { _marry = value; } } private string _children = ""; /// /// CHILDREN /// [ModelDB] public string CHILDREN { get { return _children; } set { _children = value; } } private string _hobbies = ""; /// /// HOBBIES /// [ModelDB] public string HOBBIES { get { return _hobbies; } set { _hobbies = value; } } private string _MODIFIEDUSERNAME = ""; /// /// MODIFIEDUSERNAME /// public string MODIFIEDUSERNAME { get { return _MODIFIEDUSERNAME; } set { _MODIFIEDUSERNAME = value; } } #endregion public MsExchangesUnitContactEntity() { TableName = "info_client_contact"; } override public string GetBillNoFieldName() { return "GID"; } } }