From bdf6174b1065a24877f16bba68921772a9586b48 Mon Sep 17 00:00:00 2001 From: Rodney Chen <rodney.chen@hotmail.com> Date: 星期四, 24 四月 2025 21:01:23 +0800 Subject: [PATCH] 优化了一些已知问题 --- Tiger.Model.Net/Entitys/BAS/BAS_ITEM.cs | 309 +++++++++++++++++++++++++++----------------------- 1 files changed, 167 insertions(+), 142 deletions(-) diff --git a/Tiger.Model.Net/Entitys/BAS/BAS_ITEM.cs b/Tiger.Model.Net/Entitys/BAS/BAS_ITEM.cs index 2d85227..4ac9e29 100644 --- a/Tiger.Model.Net/Entitys/BAS/BAS_ITEM.cs +++ b/Tiger.Model.Net/Entitys/BAS/BAS_ITEM.cs @@ -6,132 +6,157 @@ namespace Tiger.Model { - /// <summary> - /// 瀹炰綋锛氱墿鍝佸熀纭�淇℃伅 - /// </summary> - [Description("Primary:ID")] - [DisplayName("鐗╁搧鍩虹淇℃伅")] - [Serializable] - [SugarTable("BAS_ITEM")] - public class BAS_ITEM : DbEntityWithAuth - { - #region 鏋勯�犲嚱鏁� - /// <summary> - /// 瀹炰綋锛氱墿鍝佸熀纭�淇℃伅 - /// </summary> - public BAS_ITEM() { } - #endregion + /// <summary> + /// 瀹炰綋锛氱墿鍝佸熀纭�淇℃伅 + /// </summary> + [Description("Primary:ID")] + [DisplayName("鐗╁搧鍩虹淇℃伅")] + [Serializable] + [SugarTable("BAS_ITEM")] + public class BAS_ITEM : DbEntityWithAuth + { + #region 鏋勯�犲嚱鏁� + /// <summary> + /// 瀹炰綋锛氱墿鍝佸熀纭�淇℃伅 + /// </summary> + public BAS_ITEM() {} + #endregion - #region 鍏叡灞炴�� - /// <summary> - /// 鐗╂枡缂栫爜 - /// </summary> - [DisplayName("鐗╂枡缂栫爜")] - public string ITEM_CODE { get; set; } - /// <summary> - /// 鐗╂枡鍚嶇О - /// </summary> - [DisplayName("鐗╂枡鍚嶇О")] - public string ITEM_NAME { get; set; } - /// <summary> - /// 鐗╂枡鎻忚堪 - /// </summary> - [DisplayName("鐗╂枡鎻忚堪")] - public string ITEM_DESC { get; set; } - /// <summary> - /// 鐗╁搧鍒嗙被缂栫爜 - /// </summary> - [DisplayName("鐗╁搧鍒嗙被缂栫爜")] - public string ITEM_TYPE { get; set; } - /// <summary> - /// 鐗╂枡鐗堟湰 - /// </summary> - [DisplayName("鐗╂枡鐗堟湰")] - public string ITEM_VER { get; set; } - /// <summary> - /// 瑙勬牸 - /// </summary> - [DisplayName("瑙勬牸")] - public string SPEC { get; set; } - /// <summary> - /// 鍌ㄤ綅瑙勬牸(SmallReel鍗疯灏忕洏|BigReel鍗疯澶х洏) - /// </summary> - [DisplayName("鍌ㄤ綅瑙勬牸(SmallReel鍗疯灏忕洏|BigReel鍗疯澶х洏)")] - public string SPEC_WH { get; set; } - /// <summary> - /// 棰滆壊 - /// </summary> - [DisplayName("棰滆壊")] - public string COLOR { get; set; } - /// <summary> - /// 鍗曚綅 - /// </summary> - [DisplayName("鍗曚綅")] - public string UNIT { get; set; } - /// <summary> - /// 鏄惁鎴愬搧(Y/N) - /// </summary> - [DisplayName("鏄惁鎴愬搧(Y/N)")] - public string IS_PROD { get; set; } - /// <summary> - /// 浜у搧绫诲瀷 - /// </summary> - [DisplayName("浜у搧绫诲瀷")] - public string PROD_TYPE { get; set; } - /// <summary> - /// 瀹㈡埛浜у搧缂栫爜 - /// </summary> - [DisplayName("瀹㈡埛浜у搧缂栫爜")] - public string CUST_PROD_CODE { get; set; } - /// <summary> - /// 鏄惁鍚敤(Y/N) - /// </summary> - [DisplayName("鏄惁鍚敤(Y/N)")] - public string IS_ACTIVE { get; set; } - /// <summary> - /// 绠℃帶鏂瑰紡锛圔atch鎵规绠℃帶/Single鍗曚欢绠℃帶锛� - /// </summary> - [DisplayName("绠℃帶鏂瑰紡锛圔atch鎵规绠℃帶/Single鍗曚欢绠℃帶锛�")] - public string CTRL_MODE { get; set; } - /// <summary> - /// 鍙戝竷鏃堕棿 - /// </summary> - [DisplayName("鍙戝竷鏃堕棿")] - public DateTime RELEASE_TIME { get; set; } = DateTime.MinValue; - /// <summary> - /// 鐢熸晥鏃堕棿 - /// </summary> - [DisplayName("鐢熸晥鏃堕棿")] - public DateTime EFFECTIVE_TIME { get; set; } = DateTime.MinValue; - /// <summary> - /// 鏈夋晥澶╂暟 - /// </summary> - [DisplayName("鏈夋晥澶╂暟")] - public double VALIDITY_DAYS { get; set; } - /// <summary> - /// 鍙戞枡绠℃帶(0ByDemand鎸夐渶鍙戞枡|1ByMinPackage鏈�灏忓寘瑁呭彂鏂�) - /// </summary> - [DisplayName("鍙戞枡绠℃帶(0ByDemand鎸夐渶鍙戞枡|1ByMinPackage鏈�灏忓寘瑁呭彂鏂�)")] - public int DLVY_TYPE { get; set; } - /// <summary> - /// 鏄惁鍚敤鍏堣繘鍏堝嚭(Y/N) - /// </summary> - [DisplayName("鏄惁鍚敤鍏堣繘鍏堝嚭(Y/N)")] - public string ENABLE_FIFO { get; set; } - /// <summary> - /// 鏉$爜瑙勫垯缂栫爜 - /// </summary> - [DisplayName("鏉$爜瑙勫垯缂栫爜")] - public string RULE_CODE { get; set; } - /// <summary> - /// 澶囨敞 - /// </summary> - [DisplayName("澶囨敞")] - public string REMARK { get; set; } - #endregion + #region 鍏叡灞炴�� + /// <summary> + /// 鐗╂枡缂栫爜 + /// </summary> + [DisplayName("鐗╂枡缂栫爜")] + public string ITEM_CODE { get; set; } + /// <summary> + /// 鐗╂枡鍚嶇О + /// </summary> + [DisplayName("鐗╂枡鍚嶇О")] + public string ITEM_NAME { get; set; } + /// <summary> + /// 鐗╂枡鎻忚堪 + /// </summary> + [DisplayName("鐗╂枡鎻忚堪")] + public string ITEM_DESC { get; set; } + /// <summary> + /// 鐗╁搧鍒嗙被缂栫爜 + /// </summary> + [DisplayName("鐗╁搧鍒嗙被缂栫爜")] + public string ITEM_TYPE { get; set; } + /// <summary> + /// 鐗╂枡鐗堟湰 + /// </summary> + [DisplayName("鐗╂枡鐗堟湰")] + public string ITEM_VER { get; set; } + /// <summary> + /// 瑙勬牸 + /// </summary> + [DisplayName("瑙勬牸")] + public string SPEC { get; set; } + /// <summary> + /// 鍌ㄤ綅瑙勬牸(SmallReel鍗疯灏忕洏|BigReel鍗疯澶х洏) + /// </summary> + [DisplayName("鍌ㄤ綅瑙勬牸(SmallReel鍗疯灏忕洏|BigReel鍗疯澶х洏)")] + public string SPEC_WH { get; set; } + /// <summary> + /// 棰滆壊 + /// </summary> + [DisplayName("棰滆壊")] + public string COLOR { get; set; } + /// <summary> + /// 鍗曚綅 + /// </summary> + [DisplayName("鍗曚綅")] + public string UNIT { get; set; } + /// <summary> + /// 鏄惁鎴愬搧(Y/N) + /// </summary> + [DisplayName("鏄惁鎴愬搧(Y/N)")] + public string IS_PROD { get; set; } + /// <summary> + /// 浜у搧绫诲瀷 + /// </summary> + [DisplayName("浜у搧绫诲瀷")] + public string PROD_TYPE { get; set; } + /// <summary> + /// 瀹㈡埛浜у搧缂栫爜 + /// </summary> + [DisplayName("瀹㈡埛浜у搧缂栫爜")] + public string CUST_PROD_CODE { get; set; } + /// <summary> + /// 鏄惁鍚敤(Y/N) + /// </summary> + [DisplayName("鏄惁鍚敤(Y/N)")] + public string IS_ACTIVE { get; set; } + /// <summary> + /// 绠℃帶鏂瑰紡锛圔atch鎵规绠℃帶/Single鍗曚欢绠℃帶锛� + /// </summary> + [DisplayName("绠℃帶鏂瑰紡锛圔atch鎵规绠℃帶/Single鍗曚欢绠℃帶锛�")] + public string CTRL_MODE { get; set; } + /// <summary> + /// 鍙戝竷鏃堕棿 + /// </summary> + [DisplayName("鍙戝竷鏃堕棿")] + public DateTime RELEASE_TIME { get; set; } = DateTime.MinValue; + /// <summary> + /// 鐢熸晥鏃堕棿 + /// </summary> + [DisplayName("鐢熸晥鏃堕棿")] + public DateTime EFFECTIVE_TIME { get; set; } = DateTime.MinValue; + /// <summary> + /// 鏈夋晥澶╂暟 + /// </summary> + [DisplayName("鏈夋晥澶╂暟")] + public double VALIDITY_DAYS { get; set; } + /// <summary> + /// 鍙戞枡绠℃帶(0ByDemand鎸夐渶鍙戞枡|1ByMinPackage鏈�灏忓寘瑁呭彂鏂�) + /// </summary> + [DisplayName("鍙戞枡绠℃帶(0ByDemand鎸夐渶鍙戞枡|1ByMinPackage鏈�灏忓寘瑁呭彂鏂�)")] + public int DLVY_TYPE { get; set; } + /// <summary> + /// 鏄惁鍚敤鍏堣繘鍏堝嚭(Y/N) + /// </summary> + [DisplayName("鏄惁鍚敤鍏堣繘鍏堝嚭(Y/N)")] + public string ENABLE_FIFO { get; set; } + /// <summary> + /// 鏉$爜瑙勫垯缂栫爜 + /// </summary> + [DisplayName("鏉$爜瑙勫垯缂栫爜")] + public string RULE_CODE { get; set; } + /// <summary> + /// 榛樿宸ヨ壓璺嚎缂栫爜 + /// </summary> + [DisplayName("榛樿宸ヨ壓璺嚎缂栫爜")] + public string DEFAULT_ROUTE { get; set; } + /// <summary> + /// 榛樿浠撳簱 + /// </summary> + [DisplayName("榛樿浠撳簱")] + public string DEFAULT_WH { get; set; } + /// <summary> + /// 榛樿鍌ㄥ尯 + /// </summary> + [DisplayName("榛樿鍌ㄥ尯")] + public string DEFAULT_REGION { get; set; } + /// <summary> + /// 榛樿璐ф灦/鏂欒溅 + /// </summary> + [DisplayName("榛樿璐ф灦/鏂欒溅")] + public string DEFAULT_SHELF { get; set; } + /// <summary> + /// 榛樿鍌ㄤ綅 + /// </summary> + [DisplayName("榛樿鍌ㄤ綅")] + public string DEFAULT_LOCATION { get; set; } + /// <summary> + /// 澶囨敞 + /// </summary> + [DisplayName("澶囨敞")] + public string REMARK { get; set; } + #endregion - #region 铏氭嫙灞炴�� - /*渚嬪瓙 + #region 铏氭嫙灞炴�� + /*渚嬪瓙 [SugarColumn(IsIgnore = true)] public string FieldName { get; set; } */ @@ -142,8 +167,8 @@ public double DepositDays { get; set; } #endregion 铏氭嫙灞炴�� - #region 澶栭敭灞炴�� - /*渚嬪瓙 + #region 澶栭敭灞炴�� + /*渚嬪瓙 //涓�瀵逛竴澶栭敭瀵艰埅 [Navigate(NavigateType.OneToOne, nameof(ClassAId))]//涓�瀵逛竴 ClassAId鏄疊AS_ITEM绫婚噷闈㈢殑澶栭敭ID瀛楁 public ClassA ClassA { get; set; } //娉ㄦ剰绂佹鎵嬪姩璧嬪�硷紝鍙兘鏄痭ull @@ -158,8 +183,8 @@ public BAS_ITEM_EXT ExtInfo { get; set; } //娉ㄦ剰绂佹鎵嬪姩璧嬪�硷紝鍙兘鏄痭ull #endregion - #region 鏋氫妇鍙橀噺 - /*渚嬪瓙 + #region 鏋氫妇鍙橀噺 + /*渚嬪瓙 public enum FieldNames { [Description("鏋氫妇鎻忚堪0")] @@ -169,21 +194,21 @@ } */ - /// <summary> - /// 鏋氫妇锛氬彂鏂欑鎺�(0ByDemand鎸夐渶鍙戞枡|1ByMinPackage鏈�灏忓寘瑁呭彂鏂�) - /// </summary> - public enum DLVY_TYPEs - { - [Description("鎸夐渶鍙戞枡")] - ByDemand = 0, - [Description("鏈�灏忓寘瑁呭彂鏂�")] - ByMinPackage = 1, - } - #endregion + /// <summary> + /// 鏋氫妇锛氬彂鏂欑鎺�(0ByDemand鎸夐渶鍙戞枡|1ByMinPackage鏈�灏忓寘瑁呭彂鏂�) + /// </summary> + public enum DLVY_TYPEs + { + [Description("鎸夐渶鍙戞枡")] + ByDemand = 0, + [Description("鏈�灏忓寘瑁呭彂鏂�")] + ByMinPackage = 1, + } + #endregion - #region 鍏叡鏂规硶 + #region 鍏叡鏂规硶 - #endregion + #endregion - }//endClass + }//endClass } \ No newline at end of file -- Gitblit v1.9.3