This commit is contained in:
gaofei
2021-08-13 11:15:59 +08:00
parent 43acc57060
commit d8dff88c39
320 changed files with 37219 additions and 4678 deletions
+25 -3
View File
@@ -49,7 +49,9 @@ namespace FineUIPro.Web
return;
}
////////////////////////////////////////////////////////////////
ConstValue.InitConstValueDropDownList(this.drpYear, ConstValue.Group_0008, false);
string year = DateTime.Now.Year.ToString();
this.drpYear.SelectedValue = year;
if (!IsPostBack)
{
this.CurrUser.LoginProjectId = null;
@@ -90,7 +92,7 @@ namespace FineUIPro.Web
leftPanel.CssClass = "minimodeinside";
}
}
if (type != Const.Menu_Party)
if (type != Const.Menu_Party) //智慧党建显示年份
{
this.tbYear.Hidden = true;
}
@@ -197,7 +199,13 @@ namespace FineUIPro.Web
}
}
}
if (!string.IsNullOrEmpty(e.Node.NavigateUrl))
{
if (e.Node.NavigateUrl.Contains("Party")) //党建菜单传入年份参数
{
e.Node.NavigateUrl = e.Node.NavigateUrl.Replace(".aspx", ".aspx?Year=" + this.drpYear.SelectedValue);
}
}
if (isLeaf)
{
// 设置节点的提示信息
@@ -300,6 +308,10 @@ namespace FineUIPro.Web
{
this.btnRetweet.Hidden = false;
}
if (this.CurrUser.DepartId != "ab1eb44a-1821-48ee-86f2-64b7e6425efa" && this.CurrUser.UserId != BLL.Const.sysglyId && this.CurrUser.UserId != BLL.Const.hfnbdId)
{
this.btnParty.Hidden = true;
}
}
}
@@ -384,6 +396,10 @@ namespace FineUIPro.Web
{
this.Tab1.IFrameUrl = "ProjectData/ProjectList.aspx";
}
if (type == BLL.Const.Menu_Party)
{
this.Tab1.IFrameUrl = "~/common/main" + type + ".aspx";
}
}
else
{
@@ -485,5 +501,11 @@ namespace FineUIPro.Web
MenuSwitchMethod(string.Empty);
ShowNotify("菜单刷新完成!", MessageBoxIcon.Success);
}
protected void drpYear_SelectedIndexChanged(object sender, EventArgs e)
{
PageContext.RegisterStartupScript("parent.removeActiveTab();");
this.MenuSwitchMethod(Const.Menu_Party);
}
}
}