From 5b46930255ec185a906d07165f9d0dc91c300ab8 Mon Sep 17 00:00:00 2001 From: username@email.com <yzy2002yzy@163.com> Date: 星期二, 02 四月 2024 10:56:30 +0800 Subject: [PATCH] 提交 --- CoreCms.Net.Model/Entities/baifenbingfa/apply/applyModel.cs | 61 ++++++++++++++++++++++++++++++ 1 files changed, 61 insertions(+), 0 deletions(-) diff --git a/CoreCms.Net.Model/Entities/baifenbingfa/apply/applyModel.cs b/CoreCms.Net.Model/Entities/baifenbingfa/apply/applyModel.cs index 13b288c..78c8335 100644 --- a/CoreCms.Net.Model/Entities/baifenbingfa/apply/applyModel.cs +++ b/CoreCms.Net.Model/Entities/baifenbingfa/apply/applyModel.cs @@ -6,6 +6,7 @@ using System.ComponentModel; using System.ComponentModel.DataAnnotations; using System.Linq; +using System.Reflection; using System.Text; using System.Threading.Tasks; @@ -31,6 +32,13 @@ public string managerID { get; set; } /// <summary> + /// 瀹℃壒浜哄悕绉扮敤,鍒嗗壊 + /// </summary> + [Display(Name = "瀹℃壒浜哄悕绉扮敤,鍒嗗壊")] + [SugarColumn(ColumnDescription = "瀹℃壒浜哄悕绉�", IsNullable = true)] + public string managerName { get; set; } + + /// <summary> /// 瀹℃壒瑙掕壊ID锛屽彿鍒嗗壊 /// </summary> [Display(Name = "瀹℃壒瑙掕壊ID")] @@ -50,6 +58,21 @@ [Display(Name = "绫诲瀷")] [SugarColumn(ColumnDescription = "绫诲瀷")] public applyType aType { get; set; } + + /// <summary> + /// 绫诲瀷 + /// </summary> + [Display(Name = "瀹℃壒鐘舵��")] + [SugarColumn(ColumnDescription = "瀹℃壒鐘舵��")] + public applyStataType ayStataType { get; set; } + + + /// <summary> + /// 鐢ㄦ埛ID + /// </summary> + [Display(Name = "鐢ㄦ埛ID")] + [SugarColumn(ColumnDescription = "鐢ㄦ埛ID")] + public int userID { get; set; } /// <summary> @@ -80,6 +103,18 @@ [Display(Name = "璋冩暣鏁版嵁")] [SugarColumn(ColumnDescription = "璋冩暣鏁版嵁")] public string data { get; set; } + + /// <summary> + /// 鍒涘缓浜� + /// </summary> + [SugarColumn(ColumnDescription = "鍒涘缓浜�", IsNullable = true)] + public int createById { get; set; } + + /// <summary> + /// 淇敼浜� + /// </summary> + [SugarColumn(ColumnDescription = "淇敼浜�", IsNullable = true)] + public int upDataById { get; set; } } /// <summary> @@ -128,4 +163,30 @@ } + + /// <summary> + /// 鑾峰彇Description + /// </summary> + public static class EnumExtensions + { + /// <summary> + /// 鑾峰彇Description + /// </summary> + public static string GetDescription(this Enum value, bool nameInstead = true) + { + Type type = value.GetType(); + string name = Enum.GetName(type, value); + if (name == null) + { + return null; + } + FieldInfo field = type.GetField(name); + DescriptionAttribute attribute = field.GetCustomAttribute(typeof(DescriptionAttribute)) as DescriptionAttribute; + if (attribute == null && nameInstead == true) + { + return name; + } + return attribute?.Description; + } + } } -- Gitblit v1.9.1