1
This commit is contained in:
@@ -100,5 +100,24 @@ namespace BLL
|
||||
Funs.FineUIPleaseSelect(dropName);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 根据检查大类和检查类别代码获取检查类别名称
|
||||
/// </summary>
|
||||
/// <param name="checkMainType">检查大类(0=安全,1=质量)</param>
|
||||
/// <param name="checkTypeCode">检查类别代码</param>
|
||||
/// <returns>检查类别名称</returns>
|
||||
public static string GetCheckTypeName(string checkMainType, string checkTypeCode)
|
||||
{
|
||||
if (string.IsNullOrEmpty(checkMainType) || string.IsNullOrEmpty(checkTypeCode))
|
||||
{
|
||||
return string.Empty;
|
||||
}
|
||||
|
||||
var checkType = Funs.DB.Base_SuperviseCheckType
|
||||
.FirstOrDefault(x => x.CheckMainType == checkMainType && x.CheckTypeCode == checkTypeCode);
|
||||
|
||||
return checkType?.CheckTypeName ?? string.Empty;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user