|
@@ -0,0 +1,470 @@
|
|
|
+#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_LY_CL : EntityBase
|
|
|
+ {
|
|
|
+ public BD_LY_CL()
|
|
|
+ {
|
|
|
+ base.Table = new TableInfo { Name = "FMS_BD_LY_CL" };
|
|
|
+ base.Columns = BD_LY_CL_COLUMN.Instance;
|
|
|
+ this.Init();
|
|
|
+ }
|
|
|
+
|
|
|
+ public BD_LY_CL(string keyField):this()
|
|
|
+ {
|
|
|
+ base.KeyField = keyField;
|
|
|
+ }
|
|
|
+
|
|
|
+ public BD_LY_CL(string keyField,string keyValue):this()
|
|
|
+ {
|
|
|
+ base.KeyField = keyField;
|
|
|
+ this[keyField]= keyValue;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public BD_LY_CL(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 CAR_NO
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["CAR_NO"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["CAR_NO"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 车长(米)
|
|
|
+ /// </summary>
|
|
|
+ public System.Nullable<double> CAR_LEN
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.DoubleAccess["CAR_LEN"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.DoubleAccess["CAR_LEN"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 吨位(TON)
|
|
|
+ /// </summary>
|
|
|
+ public System.Nullable<double> DW
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.DoubleAccess["DW"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.DoubleAccess["DW"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 限重(KG)
|
|
|
+ /// </summary>
|
|
|
+ public System.Nullable<double> XZ
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.DoubleAccess["XZ"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.DoubleAccess["XZ"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 最大体积(CBM)
|
|
|
+ /// </summary>
|
|
|
+ public System.Nullable<double> MAX_VOL
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.DoubleAccess["MAX_VOL"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.DoubleAccess["MAX_VOL"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 司机姓名
|
|
|
+ /// </summary>
|
|
|
+ public string CAR_USERNAME
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["CAR_USERNAME"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["CAR_USERNAME"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 司机电话
|
|
|
+ /// </summary>
|
|
|
+ public string CAR_TEL
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["CAR_TEL"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["CAR_TEL"] = 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 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 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 BD_LY_CL SingleOrDefault()
|
|
|
+ {
|
|
|
+ return new EntityBuilder<BD_LY_CL>().ToEntityBySql(this.SQLSelect);
|
|
|
+ }
|
|
|
+
|
|
|
+ public BD_LY_CL SingleOrDefault(object ts)
|
|
|
+ {
|
|
|
+ return new EntityBuilder<BD_LY_CL>().ToEntityBySql(this.SQLSelect, ts);
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<BD_LY_CL> ToList()
|
|
|
+ {
|
|
|
+ return new EntityBuilder<BD_LY_CL>().ToListBySql(this.SQLSelect);
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<BD_LY_CL> ToList(object ts)
|
|
|
+ {
|
|
|
+ return new EntityBuilder<BD_LY_CL>().ToListBySql(this.SQLSelect, ts);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static BD_LY_CL SingleOrDefault(string sql)
|
|
|
+ {
|
|
|
+ return SingleOrDefault(sql, null);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static BD_LY_CL SingleOrDefault(string sql,object ts)
|
|
|
+ {
|
|
|
+ List<BD_LY_CL> list = ToListBySql(sql, ts);
|
|
|
+
|
|
|
+ if (list.Count == 0) return null;
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return list[0];
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static List<BD_LY_CL> ToListBySql(string sql)
|
|
|
+ {
|
|
|
+ return ToListBySql(sql, null);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static List<BD_LY_CL> ToListBySql(string sql, object ts)
|
|
|
+ {
|
|
|
+ return new EntityBuilder<BD_LY_CL>().ToListBySql(sql, ts);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static List<BD_LY_CL> ToList(DataTable data)
|
|
|
+ {
|
|
|
+ return new EntityBuilder<BD_LY_CL>().ToList(data);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ public static TDAL<BD_LY_CL, BD_LY_CL_FIELD> DAL
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return new TDAL<BD_LY_CL, BD_LY_CL_FIELD>();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static BD_LY_CL_FIELD Fields
|
|
|
+ {
|
|
|
+ get { return BD_LY_CL_FIELD.Instance; }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public static EntityBuilder<BD_LY_CL> EntityBuilder = new EntityBuilder<BD_LY_CL>();
|
|
|
+ }
|
|
|
+
|
|
|
+ internal class BD_LY_CL_COLUMN : BaseColumn
|
|
|
+ {
|
|
|
+ public static BD_LY_CL_COLUMN Instance;
|
|
|
+
|
|
|
+ static BD_LY_CL_COLUMN()
|
|
|
+ {
|
|
|
+ Instance = new BD_LY_CL_COLUMN();
|
|
|
+ }
|
|
|
+
|
|
|
+ private BD_LY_CL_COLUMN()
|
|
|
+ {
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "GUID", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "CAR_NO", Type = "TEXT" ,NText=true });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "CAR_LEN", Type = "NUMBER" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "DW", Type = "NUMBER" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "XZ", Type = "NUMBER" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "MAX_VOL", Type = "NUMBER" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "CAR_USERNAME", Type = "TEXT" ,NText=true });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "CAR_TEL", 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 = "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 = "GROUP_CODE", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "GROUP_NAME", Type = "TEXT" ,NText=false });
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public class BD_LY_CL_FIELD
|
|
|
+ {
|
|
|
+ private static BD_LY_CL_FIELD instance;
|
|
|
+
|
|
|
+ public static BD_LY_CL_FIELD Instance
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ if (instance == null)
|
|
|
+ {
|
|
|
+ instance = new BD_LY_CL_FIELD();
|
|
|
+ }
|
|
|
+
|
|
|
+ return instance;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public readonly string GUID = "GUID";
|
|
|
+ public readonly string CAR_NO = "CAR_NO";
|
|
|
+ public readonly string CAR_LEN = "CAR_LEN";
|
|
|
+ public readonly string DW = "DW";
|
|
|
+ public readonly string XZ = "XZ";
|
|
|
+ public readonly string MAX_VOL = "MAX_VOL";
|
|
|
+ public readonly string CAR_USERNAME = "CAR_USERNAME";
|
|
|
+ public readonly string CAR_TEL = "CAR_TEL";
|
|
|
+ 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 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 GROUP_CODE = "GROUP_CODE";
|
|
|
+ public readonly string GROUP_NAME = "GROUP_NAME";
|
|
|
+
|
|
|
+ }
|
|
|
+}
|