From 18a8fab394f764e5b30c48c8e0d6887ef7d44cbf Mon Sep 17 00:00:00 2001
From: username@email.com <yzy2002yzy@163.com>
Date: 星期二, 29 十月 2024 14:22:49 +0800
Subject: [PATCH] 取消拆单
---
CoreCms.Net.Model/Entities/baifenbingfa/apply/applyModel.cs | 65 +++++++++++++++++++++++++++++++-
1 files changed, 63 insertions(+), 2 deletions(-)
diff --git a/CoreCms.Net.Model/Entities/baifenbingfa/apply/applyModel.cs b/CoreCms.Net.Model/Entities/baifenbingfa/apply/applyModel.cs
index 13b288c..a38a59d 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;
@@ -14,7 +15,7 @@
/// <summary>
/// 瀹℃壒娴佺▼
/// </summary>
- [SqlCodeFirst]
+ //[SqlCodeFirst]
public class applyModel: BFBaseModel
{
/// <summary>
@@ -29,6 +30,13 @@
[Display(Name = "瀹℃壒浜篒D鐢�,鍒嗗壊")]
[SugarColumn(ColumnDescription = "瀹℃壒浜篒D", IsNullable = true)]
public string managerID { get; set; }
+
+ /// <summary>
+ /// 瀹℃壒浜哄悕绉扮敤,鍒嗗壊
+ /// </summary>
+ [Display(Name = "瀹℃壒浜哄悕绉扮敤,鍒嗗壊")]
+ [SugarColumn(ColumnDescription = "瀹℃壒浜哄悕绉�", IsNullable = true)]
+ public string managerName { get; set; }
/// <summary>
/// 瀹℃壒瑙掕壊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