20210621
This commit is contained in:
@@ -96,6 +96,23 @@ namespace BLL
|
||||
return Funs.DB.Sys_Const.FirstOrDefault(e => e.ConstValue == constValue && e.GroupId == groupId);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据值、组ID获取常量字段信息
|
||||
/// </summary>
|
||||
/// <param name="constValue"></param>
|
||||
/// <param name="groupId"></param>
|
||||
/// <returns></returns>
|
||||
public static string GetConstTextByConstValueAndGroupId(string constValue, string groupId)
|
||||
{
|
||||
string text = string.Empty;
|
||||
var c = Funs.DB.Sys_Const.FirstOrDefault(e => e.ConstValue == constValue && e.GroupId == groupId);
|
||||
if (c != null)
|
||||
{
|
||||
text = c.ConstText;
|
||||
}
|
||||
return text;
|
||||
}
|
||||
|
||||
#region 根据多ID得到名称字符串
|
||||
/// <summary>
|
||||
/// 根据多ID得到名称字符串
|
||||
@@ -174,7 +191,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 季度 组id
|
||||
/// </summary>
|
||||
public const string Group_0011 = "0011";
|
||||
public const string Group_0011 = "0011";
|
||||
/// <summary>
|
||||
/// 事故类型 组id
|
||||
/// </summary>
|
||||
@@ -202,11 +219,11 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// 资源上传审核状态:未审核,未通过,已通过
|
||||
/// </summary>
|
||||
public const string Group_UploadResources = "UploadResources";
|
||||
public const string Group_UploadResources = "UploadResources";
|
||||
/// <summary>
|
||||
/// 图表类型:组id
|
||||
/// </summary>
|
||||
public const string Group_ChartType = "ChartType";
|
||||
public const string Group_ChartType = "ChartType";
|
||||
/// <summary>
|
||||
/// 资源上报状态:组id
|
||||
/// </summary>
|
||||
@@ -230,7 +247,7 @@ namespace BLL
|
||||
/// <summary>
|
||||
/// -菜单类型:组id
|
||||
/// </summary>
|
||||
public const string Group_MenuType = "MenuType";
|
||||
public const string Group_MenuType = "MenuType";
|
||||
/// <summary>
|
||||
/// -项目单位类型:组id
|
||||
/// </summary>
|
||||
|
||||
Reference in New Issue
Block a user