1、载具主表新增check_conclusion检验结论字段

This commit is contained in:
alex
2023-08-23 16:13:18 +08:00
parent a9ff9053a6
commit 6857cc9c75
8 changed files with 56 additions and 7 deletions

View File

@@ -200,6 +200,12 @@ public static class EnumExtensions
var arr = System.Enum.GetNames(type);
return arr.Select(name => (T)System.Enum.Parse(type, name)).ToList();
}
//added by ly on 20230823
public static T ToEnum<T>(this int value) where T : Enum
{
return (T)Enum.ToObject(typeof(T), value);
}
}
/// <summary>