2023-03-07 增加实业数据编辑
This commit is contained in:
@@ -83,6 +83,7 @@
|
||||
newSysSet5.SetValue = token;
|
||||
}
|
||||
newSysSet5.SetName = "token";
|
||||
newSysSet5.SetId = 99;
|
||||
Funs.DB.Sys_Set.InsertOnSubmit(newSysSet5);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
@@ -106,6 +107,7 @@
|
||||
newSysSet5.SetValue = ExpirationTime;
|
||||
}
|
||||
newSysSet5.SetName = "token失效时间";
|
||||
newSysSet5.SetId = 98;
|
||||
Funs.DB.Sys_Set.InsertOnSubmit(newSysSet5);
|
||||
Funs.DB.SubmitChanges();
|
||||
}
|
||||
|
||||
@@ -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