fix:项目菜单

This commit is contained in:
geh
2025-05-13 11:04:14 +08:00
parent 846933e9e7
commit 5d8f6ee65e
4 changed files with 520 additions and 8 deletions
+27 -7
View File
@@ -653,6 +653,26 @@ namespace FineUIPro.Web
{
this.Tab1.IFrameUrl = "";
}
else if (type == Const.Menu_Person_P)
{
this.Tab1.IFrameUrl = "";
}
else if (type == Const.Menu_HSSE_P)
{
this.Tab1.IFrameUrl = "";
}
else if (type == Const.Menu_CQMS_P)
{
this.Tab1.IFrameUrl = "";
}
else if (type == Const.Menu_Device_P)
{
this.Tab1.IFrameUrl = "";
}
else if (type == Const.Menu_DigitalSite_P)
{
this.Tab1.IFrameUrl = "";
}
}
else
{
@@ -683,13 +703,13 @@ namespace FineUIPro.Web
protected void btnPerson_Click(object sender, EventArgs e)
{
this.MenuSwitchMethod(Const.Menu_Person);
this.MenuSwitchMethod(Const.Menu_Person_P);
}
protected void btnCQMS_Click(object sender, EventArgs e)
{
this.MenuSwitchMethod(Const.Menu_CQMS);
this.MenuSwitchMethod(Const.Menu_CQMS_P);
}
protected void btnPersonal_Click(object sender, EventArgs e)
@@ -703,12 +723,12 @@ namespace FineUIPro.Web
}
protected void btnDevice_Click(object sender, EventArgs e)
{
this.MenuSwitchMethod(Const.Menu_Device);
this.MenuSwitchMethod(Const.Menu_Device_P);
}
protected void btnHSSE_Click(object sender, EventArgs e)
{
this.MenuSwitchMethod(Const.Menu_HSSE);
this.MenuSwitchMethod(Const.Menu_HSSE_P);
}
protected void btnHJGL_Click(object sender, EventArgs e)
@@ -734,7 +754,7 @@ namespace FineUIPro.Web
}
protected void btnDigitalSite_Click(object sender, EventArgs e)
{
if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, Const.Menu_DigitalSite, this.drpProject.Value))
if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, Const.Menu_DigitalSite_P, this.drpProject.Value))
{
string video_Url = string.Empty;
var sysSet16 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控地址" select x).ToList().FirstOrDefault();
@@ -745,7 +765,7 @@ namespace FineUIPro.Web
var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == CurrUser.LoginProjectId);
string url = video_Url + "#/screen?username=" + project.ProjectCode + "&password=" + project.MonitorPW;
Response.Write("<script>window.open(" + url + "'',''_blank'')</script>");
// this.MenuSwitchMethod(Const.Menu_DigitalSite);
// this.MenuSwitchMethod(Const.Menu_DigitalSite_P);
}
}
@@ -753,7 +773,7 @@ namespace FineUIPro.Web
{
get
{
if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, Const.Menu_DigitalSite, this.drpProject.Value))
if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, Const.Menu_DigitalSite_P, this.drpProject.Value))
{
string video_Url = string.Empty;
var sysSet16 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控地址" select x).ToList().FirstOrDefault();