数据穿透

This commit is contained in:
geh
2026-03-06 14:24:20 +08:00
parent 474e208256
commit a05f640047
115 changed files with 14173 additions and 203 deletions
@@ -103,5 +103,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;
}
}
}