From d7c7a6e9d05eec7b38b41b8ae39f373f650ca891 Mon Sep 17 00:00:00 2001 From: 移动系统liao <liaoxujun@qq.com> Date: 星期三, 15 五月 2024 14:48:03 +0800 Subject: [PATCH] no message --- CoreCms.Net.Model/Entities/baifenbingfa/apply/applyModel.cs | 63 +++++++++++++++++++++++++++++++ 1 files changed, 62 insertions(+), 1 deletions(-) diff --git a/CoreCms.Net.Model/Entities/baifenbingfa/apply/applyModel.cs b/CoreCms.Net.Model/Entities/baifenbingfa/apply/applyModel.cs index 13b288c..6be9127 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> @@ -117,7 +152,7 @@ /// <summary> /// 瀹℃牳涓� /// </summary> - [Description("瀹℃牳涓�")] + [Description("瀹℃壒涓�")] applying, /// <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