2023-03-07 增加实业数据编辑

This commit is contained in:
2023-03-07 23:01:04 +08:00
parent 79c311a870
commit 3f158f1a70
38 changed files with 5390 additions and 4 deletions
+2
View File
@@ -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();
}
+14
View File
@@ -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;