feat: 支持系统单位和多语言配置

通过系统环境维护单位及语言开关,并调整相关页面和接口以使用当前配置。
This commit is contained in:
2026-11-07 15:22:32 +08:00
parent 2f547f217d
commit 626ad445d4
76 changed files with 312 additions and 163 deletions
+4 -4
View File
@@ -118,7 +118,7 @@ namespace BLL
}
else
{
var getAs = Person_PersonsService.GetUserListByProjectIdUnitIdRoleId(getProjectPerson.ProjectId, Const.UnitId_SEDIN, BLL.Const.HSSEManager + "," + BLL.Const.HSSEAssistantManager);
var getAs = Person_PersonsService.GetUserListByProjectIdUnitIdRoleId(getProjectPerson.ProjectId, CommonService.GetThisUnitId(), BLL.Const.HSSEManager + "," + BLL.Const.HSSEAssistantManager);
if (getAs.Count() > 0)
{
var getA = getAs.FirstOrDefault();
@@ -445,7 +445,7 @@ namespace BLL
&& (strWorkPostId == null || x.WorkPostId == strWorkPostId)
&& x.States == states
select x;
if (unitId != Const.UnitId_SEDIN && unitId != Const.UnitId_SEDINNB && !string.IsNullOrEmpty(unitId))
if (unitId != CommonService.GetThisUnitId() && !string.IsNullOrEmpty(unitId))
{
getViews = getViews.Where(x => x.UnitId == unitId);
}
@@ -1060,7 +1060,7 @@ namespace BLL
ChangeTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ChangeTime),
ChangeTimeD = x.ChangeTime,
};
if (!string.IsNullOrEmpty(unitId) && unitId != Const.UnitId_SEDIN)
if (!string.IsNullOrEmpty(unitId) && unitId != CommonService.GetThisUnitId())
{
personInOuts = personInOuts.Where(x => x.UnitId == unitId);
}
@@ -1112,7 +1112,7 @@ namespace BLL
ChangeTime = string.Format("{0:yyyy-MM-dd HH:mm}", x.ChangeTime),
ChangeTimeD = x.ChangeTime,
};
if (!string.IsNullOrEmpty(userUnitId) && userUnitId != Const.UnitId_SEDIN)
if (!string.IsNullOrEmpty(userUnitId) && userUnitId != CommonService.GetThisUnitId())
{
personInOuts = personInOuts.Where(x => x.UnitId == userUnitId);
}