feat: 支持系统单位和多语言配置
通过系统环境维护单位及语言开关,并调整相关页面和接口以使用当前配置。
This commit is contained in:
@@ -47,7 +47,7 @@ namespace FineUIPro.Web.Controls
|
||||
{
|
||||
if (!IsPostBack)
|
||||
{
|
||||
this.UnitId = this.UnitId ?? BLL.Const.UnitId_SEDIN;
|
||||
this.UnitId = this.UnitId ?? BLL.CommonService.GetThisUnitId();
|
||||
this.ProjectId = this.ProjectId;
|
||||
////加载树
|
||||
SetSubUnitProjectTree(this.tvProject);
|
||||
@@ -97,7 +97,7 @@ namespace FineUIPro.Web.Controls
|
||||
public void SetSubUnitProjectTree(FineUIPro.Tree tvProject)
|
||||
{
|
||||
tvProject.Nodes.Clear();
|
||||
if (BLL.Const.UnitId_SEDIN == this.UnitId)
|
||||
if (BLL.CommonService.GetThisUnitId() == this.UnitId)
|
||||
{
|
||||
var getSubUnit = from x in Funs.DB.Base_Unit
|
||||
where x.UnitId == this.UnitId || x.IsBranch == true
|
||||
|
||||
Reference in New Issue
Block a user