feat: 支持系统单位和多语言配置
通过系统环境维护单位及语言开关,并调整相关页面和接口以使用当前配置。
This commit is contained in:
@@ -51,7 +51,7 @@ namespace WebAPI.Controllers
|
||||
{
|
||||
Model.SGGLDB db = new Model.SGGLDB(Funs.ConnString);
|
||||
int tatalCount = 0, count1 = 0, count2 = 0, count3 = 0, count4 = 0;
|
||||
bool isSub = !(unitId == Const.UnitId_SEDIN);
|
||||
bool isSub = !(unitId == CommonService.GetThisUnitId());
|
||||
if (qualityType == "1")
|
||||
{
|
||||
var getPersons = from x in db.SitePerson_Person
|
||||
|
||||
@@ -172,7 +172,7 @@ namespace WebAPI.Controllers
|
||||
where x.ProjectId == projectId && (strUnitId == null || x.UnitId == strUnitId)
|
||||
&& (strWorkPostId == null || x.WorkPostId == strWorkPostId)
|
||||
select x;
|
||||
if (unitId != Const.UnitId_SEDIN && !string.IsNullOrEmpty(unitId))
|
||||
if (unitId != CommonService.GetThisUnitId() && !string.IsNullOrEmpty(unitId))
|
||||
{
|
||||
getViews = getViews.Where(x => x.UnitId == unitId);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user