/** * EC_FirmInfo.cs * * 功 能: N/A * 类 名: EC_FirmInfo * * Ver 变更日期 负责人 变更内容 * ─────────────────────────────────── * V0.01 2013-4-2 14:27:21 N/A 初版 * * * * * * */ using System; using CY.Infrastructure.Domain; using CY.Infrastructure.Common; namespace CY.Model { /// /// 厂商信息表 /// [Serializable] public partial class EC_FirmInfo : IAggregateRoot { public EC_FirmInfo() { } #region Model private int? _keyid; private string _businesslicense; private string _legalrepresentative; private string _businesslicensepic; private string _organizationcodecertificate; private string _taxregistrationcertificate; private string _contacts; private int? _filesize; private int? _shormessagenum; private string _firmtype; private string _machinetype; private string _supplyinfo; private string _firmdescribe; private string _fileid; private Guid _memberid; private DateTime? _lastupdatetime; private string _operator; private string _remark; private string _DomainName; private string _PrintLicenseImg; /// /// 厂商域名 /// public string DomainName { get { return _DomainName; } set { _DomainName = value; } } private int? _FirmStencilId; /// /// 模板编号 /// public int? FirmStencilId { get { return _FirmStencilId; } set { _FirmStencilId = value; } } /// /// 厂家信息编号 /// public int? Keyid { set { _keyid = value; } get { return _keyid; } } /// /// 注册资金 /// public string BusinessLicense { set { _businesslicense = value; } get { return _businesslicense; } } /// /// 法人代表 /// public string LegalRepresentative { set { _legalrepresentative = value; } get { return _legalrepresentative; } } /// /// 执照复印件 /// public string BusinessLicensePic { set { _businesslicensepic = value; } get { return _businesslicensepic; } } /// /// 组织机构代码证 /// public string OrganizationCodeCertificate { set { _organizationcodecertificate = value; } get { return _organizationcodecertificate; } } /// /// 税务登记证 /// public string TaxRegistrationCertificate { set { _taxregistrationcertificate = value; } get { return _taxregistrationcertificate; } } /// /// 业务联系人 /// public string Contacts { set { _contacts = value; } get { return _contacts; } } /// /// 文件空间 /// public int? FileSize { set { _filesize = value; } get { return _filesize; } } /// /// 短信剩余条数 /// public int? ShorMessageNum { set { _shormessagenum = value; } get { return _shormessagenum; } } /// /// 厂商类别 /// public string FirmType { set { _firmtype = value; } get { return _firmtype; } } /// /// 机器类别 /// public string MachineType { set { _machinetype = value; } get { return _machinetype; } } /// /// 供应信息 /// public string SupplyInfo { set { _supplyinfo = value; } get { return _supplyinfo; } } /// /// 商家简介 /// public string FirmDescribe { set { _firmdescribe = value; } get { return _firmdescribe; } } /// /// 商家图片 /// public string FileId { set { _fileid = value; } get { return _fileid; } } /// /// 会员编号 /// public Guid MemberId { set { _memberid = value; } get { return _memberid; } } /// /// 最后修改时间 /// public DateTime? LastUpdateTime { set { _lastupdatetime = value; } get { return _lastupdatetime; } } /// /// 操作人 /// public string Operator { set { _operator = value; } get { return _operator; } } /// /// 备注 /// public string Remark { set { _remark = value; } get { return _remark; } } /// /// 印刷许可证 /// public string PrintLicenseImg { set { _PrintLicenseImg = value; } get { return _PrintLicenseImg; } } /// /// 公司名称 /// public string CompanyName { set; get; } /// /// 省 /// public string Province { set; get; } /// /// 市 /// public string City { set; get; } /// /// 厂商类别名称 /// public string FirmTypeName { set; get; } /// /// 机器类别名称 /// public string MachineTypeName { set; get; } /// /// QQ /// public string QQ { set; get; } /// /// 买家编号 /// public int? bid { get; set; } /// /// 域名 /// public string bdomainname { get; set; } /// /// 模版编号 /// public int? bstenciid { get; set; } /// /// 模版路径 /// public string Stencil_Url { get; set; } #endregion Model #region Visiter /// /// 属性访问器 /// /// 属性名 /// 索引 /// 是否将指定属性设置为传入值 /// 需要赋予的值 /// 与名称对应的属性值 public object Visiter(string name, int? index = -1, bool isChange = false, object value = null) { object theValue = null; if ("Keyid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 1) { this.Keyid = isChange ? MyConvert.ConvertToInt32(value) : Keyid; theValue = this.Keyid; } else if ("BusinessLicense".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 2) { this.BusinessLicense = isChange ? MyConvert.ConvertToString(value) : BusinessLicense; theValue = this.BusinessLicense; } else if ("LegalRepresentative".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 3) { this.LegalRepresentative = isChange ? MyConvert.ConvertToString(value) : LegalRepresentative; theValue = this.LegalRepresentative; } else if ("BusinessLicensePic".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 4) { this.BusinessLicensePic = isChange ? MyConvert.ConvertToString(value) : BusinessLicensePic; theValue = this.BusinessLicensePic; } else if ("OrganizationCodeCertificate".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 5) { this.OrganizationCodeCertificate = isChange ? MyConvert.ConvertToString(value) : OrganizationCodeCertificate; theValue = this.OrganizationCodeCertificate; } else if ("TaxRegistrationCertificate".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 6) { this.TaxRegistrationCertificate = isChange ? MyConvert.ConvertToString(value) : TaxRegistrationCertificate; theValue = this.TaxRegistrationCertificate; } else if ("Contacts".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 7) { this.Contacts = isChange ? MyConvert.ConvertToString(value) : Contacts; theValue = this.Contacts; } else if ("FileSize".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 8) { this.FileSize = isChange ? MyConvert.ConvertToInt(value) : this.FileSize; theValue = this.FileSize; } else if ("ShorMessageNum".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 9) { this.ShorMessageNum = isChange ? MyConvert.ConvertToInt(value) : this.ShorMessageNum; theValue = this.ShorMessageNum; } else if ("FirmType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 10) { this.FirmType = isChange ? MyConvert.ConvertToString(value) : FirmType; theValue = this.FirmType; } else if ("MachineType".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 11) { this.MachineType = isChange ? MyConvert.ConvertToString(value) : MachineType; theValue = this.MachineType; } else if ("SupplyInfo".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 12) { this.SupplyInfo = isChange ? MyConvert.ConvertToString(value) : SupplyInfo; theValue = this.SupplyInfo; } else if ("FirmDescribe".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 13) { this.FirmDescribe = isChange ? MyConvert.ConvertToString(value) : FirmDescribe; theValue = this.FirmDescribe; } else if ("FileId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 14) { this.FileId = isChange ? MyConvert.ConvertToString(value) : FileId; theValue = this.FileId; } else if ("MemberId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 15) { this.MemberId = isChange ? MyConvert.ConvertToGuid(value) : MemberId; theValue = this.MemberId; } else if ("LastUpdateTime".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 16) { this.LastUpdateTime = isChange ? MyConvert.ConvertToDateTime(value) : LastUpdateTime; theValue = this.LastUpdateTime; } else if ("Operator".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 17) { this.Operator = isChange ? MyConvert.ConvertToString(value) : Operator; theValue = this.Operator; } else if ("Remark".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 18) { this.Remark = isChange ? MyConvert.ConvertToString(value) : Remark; theValue = this.Remark; } else if ("CompanyName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 19) { this.CompanyName = isChange ? MyConvert.ConvertToString(value) : CompanyName; theValue = this.CompanyName; } else if ("Province".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 20) { this.Province = isChange ? MyConvert.ConvertToString(value) : Province; theValue = this.Province; } else if ("City".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 21) { this.City = isChange ? MyConvert.ConvertToString(value) : City; theValue = this.City; } else if ("FirmTypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 22) { this.FirmTypeName = isChange ? MyConvert.ConvertToString(value) : FirmTypeName; theValue = this.FirmTypeName; } else if ("MachineTypeName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 23) { this.MachineTypeName = isChange ? MyConvert.ConvertToString(value) : MachineTypeName; theValue = this.MachineTypeName; } else if ("QQ".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 24) { this.QQ = isChange ? MyConvert.ConvertToString(value) : QQ; theValue = this.QQ; } else if ("PrintLicenseImg".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 25) { this.PrintLicenseImg = isChange ? MyConvert.ConvertToString(value) : PrintLicenseImg; theValue = this.PrintLicenseImg; } else if ("DomainName".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 26) { this.DomainName = isChange ? MyConvert.ConvertToString(value) : DomainName; theValue = this.DomainName; } else if ("FirmStencilId".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 27) { this.FirmStencilId = isChange ? MyConvert.ConvertToInt32(value) : FirmStencilId; theValue = this.FirmStencilId; } else if ("bid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 28) { this.bid = isChange ? MyConvert.ConvertToInt32(value) : bid; theValue = this.bid; } else if ("bdomainname".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 29) { this.bdomainname = isChange ? MyConvert.ConvertToString(value) : bdomainname; theValue = this.bdomainname; } else if ("bstenciid".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 30) { this.bstenciid = isChange ? MyConvert.ConvertToInt32(value) : bstenciid; theValue = this.bstenciid; } else if ("Stencil_Url".Equals(name, StringComparison.CurrentCultureIgnoreCase) || index == 31) { this.Stencil_Url = isChange ? MyConvert.ConvertToString(value) : Stencil_Url; theValue = this.Stencil_Url; } return theValue; } #endregion } }