2023-03-07 增加实业数据编辑
This commit is contained in:
@@ -332,6 +332,20 @@ namespace BLL
|
||||
}
|
||||
return name;
|
||||
}
|
||||
public static string GetUnitNameByUnitId(object unitId)
|
||||
{
|
||||
string name = string.Empty;
|
||||
if (unitId != null)
|
||||
{
|
||||
var unit = Funs.DB.Base_Unit.FirstOrDefault(x => x.UnitId == unitId.ToString());
|
||||
if (unit != null)
|
||||
{
|
||||
name = unit.UnitName;
|
||||
}
|
||||
}
|
||||
|
||||
return name;
|
||||
}
|
||||
public static string GetInstallationNameByUnitId(string installationId)
|
||||
{
|
||||
string name = string.Empty;
|
||||
|
||||
Reference in New Issue
Block a user