|
@@ -0,0 +1,550 @@
|
|
|
+#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_KY_ZDGL : EntityBase
|
|
|
+ {
|
|
|
+ public BD_KY_ZDGL()
|
|
|
+ {
|
|
|
+ base.Table = new TableInfo { Name = "FMS_BD_KY_ZDGL" };
|
|
|
+ base.Columns = BD_ZDGL_COLUMN.Instance;
|
|
|
+ this.Init();
|
|
|
+ }
|
|
|
+
|
|
|
+ public BD_KY_ZDGL(string keyField):this()
|
|
|
+ {
|
|
|
+ base.KeyField = keyField;
|
|
|
+ }
|
|
|
+
|
|
|
+ public BD_KY_ZDGL(string keyField,string keyValue):this()
|
|
|
+ {
|
|
|
+ base.KeyField = keyField;
|
|
|
+ this[keyField]= keyValue;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public BD_KY_ZDGL(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 ZYDH
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["ZYDH"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["ZYDH"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 始发港
|
|
|
+ /// </summary>
|
|
|
+ public string SFG
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["SFG"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["SFG"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 运单来源
|
|
|
+ /// </summary>
|
|
|
+ public string YDLY
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["YDLY"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["YDLY"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 主单状态
|
|
|
+ /// </summary>
|
|
|
+ public string STATUS
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["STATUS"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["STATUS"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 航班号
|
|
|
+ /// </summary>
|
|
|
+ public string HBH
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["HBH"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["HBH"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 航班日期
|
|
|
+ /// </summary>
|
|
|
+ public System.Nullable<DateTime> HBDATE
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.DateAccess["HBDATE"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.DateAccess["HBDATE"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 订单客户编码
|
|
|
+ /// </summary>
|
|
|
+ public string DDKH_CODE
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["DDKH_CODE"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["DDKH_CODE"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 订单客户名称
|
|
|
+ /// </summary>
|
|
|
+ public string DDKH_NAME
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["DDKH_NAME"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["DDKH_NAME"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 运单来源公司编码
|
|
|
+ /// </summary>
|
|
|
+ public string YYLYGS_CODE
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["YYLYGS_CODE"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["YYLYGS_CODE"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+ /// <summary>
|
|
|
+ /// 运单来源公司名称
|
|
|
+ /// </summary>
|
|
|
+ public string YYLYGS_NAME
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.TextAccess["YYLYGS_NAME"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.TextAccess["YYLYGS_NAME"] = 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 System.Nullable<double> TOTAL
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return this.DoubleAccess["TOTAL"];
|
|
|
+ }
|
|
|
+ set
|
|
|
+ {
|
|
|
+ this.DoubleAccess["TOTAL"] = value;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ #region Query Method
|
|
|
+ public BD_KY_ZDGL SingleOrDefault()
|
|
|
+ {
|
|
|
+ return new EntityBuilder<BD_KY_ZDGL>().ToEntityBySql(this.SQLSelect);
|
|
|
+ }
|
|
|
+
|
|
|
+ public BD_KY_ZDGL SingleOrDefault(object ts)
|
|
|
+ {
|
|
|
+ return new EntityBuilder<BD_KY_ZDGL>().ToEntityBySql(this.SQLSelect, ts);
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<BD_KY_ZDGL> ToList()
|
|
|
+ {
|
|
|
+ return new EntityBuilder<BD_KY_ZDGL>().ToListBySql(this.SQLSelect);
|
|
|
+ }
|
|
|
+
|
|
|
+ public List<BD_KY_ZDGL> ToList(object ts)
|
|
|
+ {
|
|
|
+ return new EntityBuilder<BD_KY_ZDGL>().ToListBySql(this.SQLSelect, ts);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static BD_KY_ZDGL SingleOrDefault(string sql)
|
|
|
+ {
|
|
|
+ return SingleOrDefault(sql, null);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static BD_KY_ZDGL SingleOrDefault(string sql,object ts)
|
|
|
+ {
|
|
|
+ List<BD_KY_ZDGL> list = ToListBySql(sql, ts);
|
|
|
+
|
|
|
+ if (list.Count == 0) return null;
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return list[0];
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static List<BD_KY_ZDGL> ToListBySql(string sql)
|
|
|
+ {
|
|
|
+ return ToListBySql(sql, null);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static List<BD_KY_ZDGL> ToListBySql(string sql, object ts)
|
|
|
+ {
|
|
|
+ return new EntityBuilder<BD_KY_ZDGL>().ToListBySql(sql, ts);
|
|
|
+ }
|
|
|
+
|
|
|
+ public static List<BD_KY_ZDGL> ToList(DataTable data)
|
|
|
+ {
|
|
|
+ return new EntityBuilder<BD_KY_ZDGL>().ToList(data);
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ public static TDAL<BD_KY_ZDGL, BD_ZDGL_FIELD> DAL
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ return new TDAL<BD_KY_ZDGL, BD_ZDGL_FIELD>();
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public static BD_ZDGL_FIELD Fields
|
|
|
+ {
|
|
|
+ get { return BD_ZDGL_FIELD.Instance; }
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ public static EntityBuilder<BD_KY_ZDGL> EntityBuilder = new EntityBuilder<BD_KY_ZDGL>();
|
|
|
+ }
|
|
|
+
|
|
|
+ internal class BD_ZDGL_COLUMN : BaseColumn
|
|
|
+ {
|
|
|
+ public static BD_ZDGL_COLUMN Instance;
|
|
|
+
|
|
|
+ static BD_ZDGL_COLUMN()
|
|
|
+ {
|
|
|
+ Instance = new BD_ZDGL_COLUMN();
|
|
|
+ }
|
|
|
+
|
|
|
+ private BD_ZDGL_COLUMN()
|
|
|
+ {
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "GUID", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "ZYDH", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "SFG", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "YDLY", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "STATUS", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "HBH", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "HBDATE", Type = "DATE" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "DDKH_CODE", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "DDKH_NAME", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "YYLYGS_CODE", Type = "TEXT" ,NText=false });
|
|
|
+ base.ListColumn.Add(new ColumnInfo() { Name = "YYLYGS_NAME", 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 = "TOTAL", Type = "NUMBER" ,NText=false });
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public class BD_ZDGL_FIELD
|
|
|
+ {
|
|
|
+ private static BD_ZDGL_FIELD instance;
|
|
|
+
|
|
|
+ public static BD_ZDGL_FIELD Instance
|
|
|
+ {
|
|
|
+ get
|
|
|
+ {
|
|
|
+ if (instance == null)
|
|
|
+ {
|
|
|
+ instance = new BD_ZDGL_FIELD();
|
|
|
+ }
|
|
|
+
|
|
|
+ return instance;
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ public readonly string GUID = "GUID";
|
|
|
+ public readonly string ZYDH = "ZYDH";
|
|
|
+ public readonly string SFG = "SFG";
|
|
|
+ public readonly string YDLY = "YDLY";
|
|
|
+ public readonly string STATUS = "STATUS";
|
|
|
+ public readonly string HBH = "HBH";
|
|
|
+ public readonly string HBDATE = "HBDATE";
|
|
|
+ public readonly string DDKH_CODE = "DDKH_CODE";
|
|
|
+ public readonly string DDKH_NAME = "DDKH_NAME";
|
|
|
+ public readonly string YYLYGS_CODE = "YYLYGS_CODE";
|
|
|
+ public readonly string YYLYGS_NAME = "YYLYGS_NAME";
|
|
|
+ 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 TOTAL = "TOTAL";
|
|
|
+
|
|
|
+ }
|
|
|
+}
|