|
@@ -0,0 +1,582 @@
|
|
|
+#pragma warning disable 1591
|
|
|
+using PL.Base;
|
|
|
+using System;
|
|
|
+using System.Collections.Generic;
|
|
|
+using System.Data;
|
|
|
+using PL.Server.Entity;
|
|
|
+using PL.Server.Entity.Entity;
|
|
|
+
|
|
|
+namespace FMS.Entity
|
|
|
+{
|
|
|
+ public partial class CRM_SFHR : EntityBase
|
|
|
+ {
|
|
|
+ public CRM_SFHR()
|
|
|
+ {
|
|
|
+ base.Table = new TableInfo { Name = "FMS_CRM_SFHR" };
|
|
|
+ base.Columns = CRM_SFHR_COLUMN.Instance;
|
|
|
+ this.Init();
|
|
|
+ }
|
|
|
+
|
|
|
+ public CRM_SFHR(string keyField):this()
|
|
|
+ {
|
|
|
+ base.KeyField = keyField;
|
|
|
+ }
|
|
|
+
|
|
|
+ public CRM_SFHR(string keyField,string keyValue):this()
|
|
|
+ {
|
|
|
+ base.KeyField = keyField;
|
|
|
+ this[keyField]= keyValue;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public CRM_SFHR(EntityBase entityBase)
|
|
|
+ : this()
|
|
|
+ {
|
|
|
+ this.Data = entityBase.Data;
|
|
|
+ }
|
|
|
+
|
|
|
+ #region DataMember
|
|
|
+
|
|
|
+ /// <summary>
|
|
|
+ /// GUID
|
|
|
+ /// </summary>
|
|
|
+ public string GUID
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["GUID"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["GUID"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 类型
|
|
|
+ /// </summary>
|
|
|
+ public string SFHRLX
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["SFHRLX"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["SFHRLX"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 是否生效
|
|
|
+ /// </summary>
|
|
|
+ public string STATUS
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["STATUS"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["STATUS"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 助记码
|
|
|
+ /// </summary>
|
|
|
+ public string ZJM
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["ZJM"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["ZJM"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 名称
|
|
|
+ /// </summary>
|
|
|
+ public string NAME
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["NAME"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["NAME"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 地址
|
|
|
+ /// </summary>
|
|
|
+ public string ADDRESS
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["ADDRESS"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["ADDRESS"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 代码
|
|
|
+ /// </summary>
|
|
|
+ public string CODE
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["CODE"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["CODE"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// AEO编码
|
|
|
+ /// </summary>
|
|
|
+ public string AEO
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["AEO"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["AEO"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 国家代码
|
|
|
+ /// </summary>
|
|
|
+ public string COUNTRY
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["COUNTRY"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["COUNTRY"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 省份
|
|
|
+ /// </summary>
|
|
|
+ public string PROVINCE
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["PROVINCE"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["PROVINCE"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 城市
|
|
|
+ /// </summary>
|
|
|
+ public string CITY
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["CITY"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["CITY"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 邮编
|
|
|
+ /// </summary>
|
|
|
+ public string ZIP
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["ZIP"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["ZIP"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 电话
|
|
|
+ /// </summary>
|
|
|
+ public string TEL
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["TEL"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["TEL"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 传真
|
|
|
+ /// </summary>
|
|
|
+ public string FAX
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["FAX"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["FAX"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// Print
|
|
|
+ /// </summary>
|
|
|
+ public string PIRNT
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["PIRNT"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["PIRNT"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 公司代码
|
|
|
+ /// </summary>
|
|
|
+ public string COMPANY_CODE
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["COMPANY_CODE"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["COMPANY_CODE"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 公司名称
|
|
|
+ /// </summary>
|
|
|
+ public string COMPANY_NAME
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["COMPANY_NAME"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["COMPANY_NAME"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 创建人
|
|
|
+ /// </summary>
|
|
|
+ public string CREATE_USER
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["CREATE_USER"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["CREATE_USER"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 创建人
|
|
|
+ /// </summary>
|
|
|
+ public string CREATE_USER_NAME
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["CREATE_USER_NAME"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["CREATE_USER_NAME"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 创建日期
|
|
|
+ /// </summary>
|
|
|
+ public System.Nullable<DateTime> CREATE_DATE
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.DateAccess["CREATE_DATE"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.DateAccess["CREATE_DATE"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 修改人
|
|
|
+ /// </summary>
|
|
|
+ public string UPDATE_USER
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["UPDATE_USER"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["UPDATE_USER"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 修改人
|
|
|
+ /// </summary>
|
|
|
+ public string UPDATE_USER_NAME
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["UPDATE_USER_NAME"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["UPDATE_USER_NAME"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 修改日期
|
|
|
+ /// </summary>
|
|
|
+ public System.Nullable<DateTime> UPDATE_DATE
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.DateAccess["UPDATE_DATE"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.DateAccess["UPDATE_DATE"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 组织代码
|
|
|
+ /// </summary>
|
|
|
+ public string NODE_CODE
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["NODE_CODE"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["NODE_CODE"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 组织名称
|
|
|
+ /// </summary>
|
|
|
+ public string NODE_NAME
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["NODE_NAME"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["NODE_NAME"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 集团代码
|
|
|
+ /// </summary>
|
|
|
+ public string GROUP_CODE
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["GROUP_CODE"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["GROUP_CODE"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 集团名称
|
|
|
+ /// </summary>
|
|
|
+ public string GROUP_NAME
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["GROUP_NAME"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["GROUP_NAME"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ #region Query Method
|
|
|
+ public CRM_SFHR SingleOrDefault()
|
|
|
+ {
|
|
|
+ return new EntityBuilder<CRM_SFHR>().ToEntityBySql(this.SQLSelect);
|
|
|
+ }
|
|
|
+
|
|
|
+ public CRM_SFHR SingleOrDefault(object ts)
|
|
|
+ {
|
|
|
+ return new EntityBuilder<CRM_SFHR>().ToEntityBySql(this.SQLSelect, ts);
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<CRM_SFHR> ToList()
|
|
|
+ {
|
|
|
+ return new EntityBuilder<CRM_SFHR>().ToListBySql(this.SQLSelect);
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<CRM_SFHR> ToList(object ts)
|
|
|
+ {
|
|
|
+ return new EntityBuilder<CRM_SFHR>().ToListBySql(this.SQLSelect, ts);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static CRM_SFHR SingleOrDefault(string sql)
|
|
|
+ {
|
|
|
+ return SingleOrDefault(sql, null);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static CRM_SFHR SingleOrDefault(string sql,object ts)
|
|
|
+ {
|
|
|
+ List<CRM_SFHR> list = ToListBySql(sql, ts);
|
|
|
+
|
|
|
+ if (list.Count == 0) return null;
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return list[0];
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static List<CRM_SFHR> ToListBySql(string sql)
|
|
|
+ {
|
|
|
+ return ToListBySql(sql, null);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static List<CRM_SFHR> ToListBySql(string sql, object ts)
|
|
|
+ {
|
|
|
+ return new EntityBuilder<CRM_SFHR>().ToListBySql(sql, ts);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static List<CRM_SFHR> ToList(DataTable data)
|
|
|
+ {
|
|
|
+ return new EntityBuilder<CRM_SFHR>().ToList(data);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ public static TDAL<CRM_SFHR, CRM_SFHR_FIELD> DAL
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return new TDAL<CRM_SFHR, CRM_SFHR_FIELD>();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static CRM_SFHR_FIELD Fields
|
|
|
+ {
|
|
|
+ get { return CRM_SFHR_FIELD.Instance; }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public static EntityBuilder<CRM_SFHR> EntityBuilder = new EntityBuilder<CRM_SFHR>();
|
|
|
+ }
|
|
|
+
|
|
|
+ internal class CRM_SFHR_COLUMN : BaseColumn
|
|
|
+ {
|
|
|
+ public static CRM_SFHR_COLUMN Instance;
|
|
|
+
|
|
|
+ static CRM_SFHR_COLUMN()
|
|
|
+ {
|
|
|
+ Instance = new CRM_SFHR_COLUMN();
|
|
|
+ }
|
|
|
+
|
|
|
+ private CRM_SFHR_COLUMN()
|
|
|
+ {
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "GUID", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "SFHRLX", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "STATUS", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "ZJM", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "NAME", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "ADDRESS", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "CODE", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "AEO", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "COUNTRY", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "PROVINCE", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "CITY", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "ZIP", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "TEL", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "FAX", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "PIRNT", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "COMPANY_CODE", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "COMPANY_NAME", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "CREATE_USER", Type = "TEXT" ,NText=true });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "CREATE_USER_NAME", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "CREATE_DATE", Type = "DATE" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "UPDATE_USER", Type = "TEXT" ,NText=true });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "UPDATE_USER_NAME", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "UPDATE_DATE", Type = "DATE" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "NODE_CODE", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "NODE_NAME", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "GROUP_CODE", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "GROUP_NAME", Type = "TEXT" ,NText=false });
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public class CRM_SFHR_FIELD
|
|
|
+ {
|
|
|
+ private static CRM_SFHR_FIELD instance;
|
|
|
+
|
|
|
+ public static CRM_SFHR_FIELD Instance
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ if (instance == null)
|
|
|
+ {
|
|
|
+ instance = new CRM_SFHR_FIELD();
|
|
|
+ }
|
|
|
+
|
|
|
+ return instance;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public readonly string GUID = "GUID";
|
|
|
+ public readonly string SFHRLX = "SFHRLX";
|
|
|
+ public readonly string STATUS = "STATUS";
|
|
|
+ public readonly string ZJM = "ZJM";
|
|
|
+ public readonly string NAME = "NAME";
|
|
|
+ public readonly string ADDRESS = "ADDRESS";
|
|
|
+ public readonly string CODE = "CODE";
|
|
|
+ public readonly string AEO = "AEO";
|
|
|
+ public readonly string COUNTRY = "COUNTRY";
|
|
|
+ public readonly string PROVINCE = "PROVINCE";
|
|
|
+ public readonly string CITY = "CITY";
|
|
|
+ public readonly string ZIP = "ZIP";
|
|
|
+ public readonly string TEL = "TEL";
|
|
|
+ public readonly string FAX = "FAX";
|
|
|
+ public readonly string PIRNT = "PIRNT";
|
|
|
+ public readonly string COMPANY_CODE = "COMPANY_CODE";
|
|
|
+ public readonly string COMPANY_NAME = "COMPANY_NAME";
|
|
|
+ public readonly string CREATE_USER = "CREATE_USER";
|
|
|
+ public readonly string CREATE_USER_NAME = "CREATE_USER_NAME";
|
|
|
+ public readonly string CREATE_DATE = "CREATE_DATE";
|
|
|
+ public readonly string UPDATE_USER = "UPDATE_USER";
|
|
|
+ public readonly string UPDATE_USER_NAME = "UPDATE_USER_NAME";
|
|
|
+ public readonly string UPDATE_DATE = "UPDATE_DATE";
|
|
|
+ public readonly string NODE_CODE = "NODE_CODE";
|
|
|
+ public readonly string NODE_NAME = "NODE_NAME";
|
|
|
+ public readonly string GROUP_CODE = "GROUP_CODE";
|
|
|
+ public readonly string GROUP_NAME = "GROUP_NAME";
|
|
|
+
|
|
|
+ }
|
|
|
+}
|