123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550 |
- #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 BD_SERVICE_KM : EntityBase
- {
- public BD_SERVICE_KM()
- {
- base.Table = new TableInfo { Name = "FMS_BD_SERVICE_KM" };
- base.Columns = BD_SERVICE_KM_COLUMN.Instance;
- this.Init();
- }
-
- public BD_SERVICE_KM(string keyField):this()
- {
- base.KeyField = keyField;
- }
- public BD_SERVICE_KM(string keyField,string keyValue):this()
- {
- base.KeyField = keyField;
- this[keyField]= keyValue;
- }
-
-
- public BD_SERVICE_KM(EntityBase entityBase)
- : this()
- {
- this.Data = entityBase.Data;
- }
-
- #region DataMember
-
- /// <summary>
- /// 主键
- /// </summary>
- public string GUID
- {
- get
- {
- return this.TextAccess["GUID"];
- }
- set
- {
- this.TextAccess["GUID"] = value;
- }
- }
- /// <summary>
- /// 科目代码
- /// </summary>
- public string CODE
- {
- get
- {
- return this.TextAccess["CODE"];
- }
- set
- {
- this.TextAccess["CODE"] = value;
- }
- }
- /// <summary>
- /// 科目名称
- /// </summary>
- public string NAME
- {
- get
- {
- return this.TextAccess["NAME"];
- }
- set
- {
- this.TextAccess["NAME"] = value;
- }
- }
- /// <summary>
- /// 管理模式
- /// </summary>
- public string GLMS
- {
- get
- {
- return this.TextAccess["GLMS"];
- }
- set
- {
- this.TextAccess["GLMS"] = value;
- }
- }
- /// <summary>
- /// 辅助账设置
- /// </summary>
- public string FZZSZ
- {
- get
- {
- return this.TextAccess["FZZSZ"];
- }
- set
- {
- this.TextAccess["FZZSZ"] = value;
- }
- }
- /// <summary>
- /// 是否启用
- /// </summary>
- public string STATUS
- {
- get
- {
- return this.TextAccess["STATUS"];
- }
- set
- {
- this.TextAccess["STATUS"] = value;
- }
- }
- /// <summary>
- /// 科目备注
- /// </summary>
- public string REAMRK
- {
- get
- {
- return this.TextAccess["REAMRK"];
- }
- set
- {
- this.TextAccess["REAMRK"] = value;
- }
- }
- /// <summary>
- /// 创建人
- /// </summary>
- public string CREATE_USER
- {
- get
- {
- return this.TextAccess["CREATE_USER"];
- }
- set
- {
- this.TextAccess["CREATE_USER"] = 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 System.Nullable<DateTime> UPDATE_DATE
- {
- get
- {
- return this.DateAccess["UPDATE_DATE"];
- }
- set
- {
- this.DateAccess["UPDATE_DATE"] = 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 string UPDATE_USER_NAME
- {
- get
- {
- return this.TextAccess["UPDATE_USER_NAME"];
- }
- set
- {
- this.TextAccess["UPDATE_USER_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;
- }
- }
- /// <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 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 BIZ_FLAG
- {
- get
- {
- return this.TextAccess["BIZ_FLAG"];
- }
- set
- {
- this.TextAccess["BIZ_FLAG"] = value;
- }
- }
- /// <summary>
- /// 父级ID
- /// </summary>
- public string PARENTID
- {
- get
- {
- return this.TextAccess["PARENTID"];
- }
- set
- {
- this.TextAccess["PARENTID"] = value;
- }
- }
- /// <summary>
- /// 顺序
- /// </summary>
- public System.Nullable<double> SEQ
- {
- get
- {
- return this.DoubleAccess["SEQ"];
- }
- set
- {
- this.DoubleAccess["SEQ"] = value;
- }
- }
- /// <summary>
- /// 所属服务类别名称
- /// </summary>
- public string OWNERNAME
- {
- get
- {
- return this.TextAccess["OWNERNAME"];
- }
- set
- {
- this.TextAccess["OWNERNAME"] = value;
- }
- }
- /// <summary>
- /// 所属服务类别备注
- /// </summary>
- public string MEMO
- {
- get
- {
- return this.TextAccess["MEMO"];
- }
- set
- {
- this.TextAccess["MEMO"] = value;
- }
- }
- /// <summary>
- /// 所属服务类别
- /// </summary>
- public string OWNED_SERVICE
- {
- get
- {
- return this.TextAccess["OWNED_SERVICE"];
- }
- set
- {
- this.TextAccess["OWNED_SERVICE"] = value;
- }
- }
- #endregion
-
- #region Query Method
- public BD_SERVICE_KM SingleOrDefault()
- {
- return new EntityBuilder<BD_SERVICE_KM>().ToEntityBySql(this.SQLSelect);
- }
- public BD_SERVICE_KM SingleOrDefault(object ts)
- {
- return new EntityBuilder<BD_SERVICE_KM>().ToEntityBySql(this.SQLSelect, ts);
- }
- public List<BD_SERVICE_KM> ToList()
- {
- return new EntityBuilder<BD_SERVICE_KM>().ToListBySql(this.SQLSelect);
- }
-
- public List<BD_SERVICE_KM> ToList(object ts)
- {
- return new EntityBuilder<BD_SERVICE_KM>().ToListBySql(this.SQLSelect, ts);
- }
-
- public static BD_SERVICE_KM SingleOrDefault(string sql)
- {
- return SingleOrDefault(sql, null);
- }
- public static BD_SERVICE_KM SingleOrDefault(string sql,object ts)
- {
- List<BD_SERVICE_KM> list = ToListBySql(sql, ts);
- if (list.Count == 0) return null;
- else
- {
- return list[0];
- }
- }
-
- public static List<BD_SERVICE_KM> ToListBySql(string sql)
- {
- return ToListBySql(sql, null);
- }
- public static List<BD_SERVICE_KM> ToListBySql(string sql, object ts)
- {
- return new EntityBuilder<BD_SERVICE_KM>().ToListBySql(sql, ts);
- }
-
- public static List<BD_SERVICE_KM> ToList(DataTable data)
- {
- return new EntityBuilder<BD_SERVICE_KM>().ToList(data);
- }
-
-
- #endregion
-
- public static TDAL<BD_SERVICE_KM, BD_SERVICE_KM_FIELD> DAL
- {
- get
- {
- return new TDAL<BD_SERVICE_KM, BD_SERVICE_KM_FIELD>();
- }
- }
-
- public static BD_SERVICE_KM_FIELD Fields
- {
- get { return BD_SERVICE_KM_FIELD.Instance; }
- }
-
-
- public static EntityBuilder<BD_SERVICE_KM> EntityBuilder = new EntityBuilder<BD_SERVICE_KM>();
- }
- internal class BD_SERVICE_KM_COLUMN : BaseColumn
- {
- public static BD_SERVICE_KM_COLUMN Instance;
- static BD_SERVICE_KM_COLUMN()
- {
- Instance = new BD_SERVICE_KM_COLUMN();
- }
- private BD_SERVICE_KM_COLUMN()
- {
- base.ListColumn.Add(new ColumnInfo() { Name = "GUID", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "CODE", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "NAME", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "GLMS", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "FZZSZ", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "STATUS", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "REAMRK", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "CREATE_USER", Type = "TEXT" ,NText=true });
- 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_DATE", Type = "DATE" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "CREATE_USER_NAME", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "UPDATE_USER_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 });
- 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 = "NODE_CODE", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "NODE_NAME", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "BIZ_FLAG", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "PARENTID", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "SEQ", Type = "NUMBER" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "OWNERNAME", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "MEMO", Type = "TEXT" ,NText=false });
- base.ListColumn.Add(new ColumnInfo() { Name = "OWNED_SERVICE", Type = "TEXT" ,NText=false });
- }
- }
-
- public class BD_SERVICE_KM_FIELD
- {
- private static BD_SERVICE_KM_FIELD instance;
- public static BD_SERVICE_KM_FIELD Instance
- {
- get
- {
- if (instance == null)
- {
- instance = new BD_SERVICE_KM_FIELD();
- }
- return instance;
- }
- }
-
- public readonly string GUID = "GUID";
- public readonly string CODE = "CODE";
- public readonly string NAME = "NAME";
- public readonly string GLMS = "GLMS";
- public readonly string FZZSZ = "FZZSZ";
- public readonly string STATUS = "STATUS";
- public readonly string REAMRK = "REAMRK";
- public readonly string CREATE_USER = "CREATE_USER";
- public readonly string CREATE_DATE = "CREATE_DATE";
- public readonly string UPDATE_USER = "UPDATE_USER";
- public readonly string UPDATE_DATE = "UPDATE_DATE";
- public readonly string CREATE_USER_NAME = "CREATE_USER_NAME";
- public readonly string UPDATE_USER_NAME = "UPDATE_USER_NAME";
- public readonly string GROUP_CODE = "GROUP_CODE";
- public readonly string GROUP_NAME = "GROUP_NAME";
- public readonly string COMPANY_CODE = "COMPANY_CODE";
- public readonly string COMPANY_NAME = "COMPANY_NAME";
- public readonly string NODE_CODE = "NODE_CODE";
- public readonly string NODE_NAME = "NODE_NAME";
- public readonly string BIZ_FLAG = "BIZ_FLAG";
- public readonly string PARENTID = "PARENTID";
- public readonly string SEQ = "SEQ";
- public readonly string OWNERNAME = "OWNERNAME";
- public readonly string MEMO = "MEMO";
- public readonly string OWNED_SERVICE = "OWNED_SERVICE";
- }
- }
|