20211111 监控页面还原

This commit is contained in:
杨红卫 2021-11-11 14:38:02 +08:00
parent 56662ce2c8
commit 10ce5c40ac
2 changed files with 13 additions and 17 deletions

View File

@ -234,7 +234,7 @@
</f:Button>
</li>
<li>
<f:Button runat="server" CssClass="bgbtn" Text="视频监控" OnClick="btnDigitalSite_Click" OnClientClick="parent.removeActiveTab();"
<f:Button runat="server" CssClass="bgbtn" Text="视频监控" OnClick="btnDigitalSite_Click" OnClientClick="openVideo();"
EnablePostBack="true" EnableDefaultState="true" EnableDefaultCorner="false" ID="btnDigitalSite">
</f:Button>
</li>

View File

@ -384,7 +384,8 @@ namespace FineUIPro.Web
this.btnWeather.ToolTip = date + " " + city + " " + oldWeather.WeatherRef + " " + oldWeather.AllTem;
}
}
} catch (Exception ex)
}
catch (Exception ex)
{
}
}
@ -604,16 +605,14 @@ namespace FineUIPro.Web
this.Tab1.IFrameUrl = "~/common/mainProject.aspx";
}
this.CurrUser.LastProjectId = null;
if (!string.IsNullOrEmpty(type))
{
{
this.CurrUser.LastProjectId = this.CurrUser.LoginProjectId;
if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, type, this.CurrUser.LoginProjectId) || type == Const.Menu_Personal)
{
{
this.XmlDataSource1.DataFile = "common/" + type + ".xml";
this.leftPanel.Hidden = false;
this.Tab1.IFrameUrl = "~/common/main" + type + ".aspx";
this.Tab1.Title = "首页";
if (type == Const.Menu_Personal)
{
this.Tab1.IFrameUrl = "~/Personal/PersonalInfo.aspx";
@ -621,15 +620,8 @@ namespace FineUIPro.Web
else if (type == Const.Menu_ProjectSet)
{
this.Tab1.IFrameUrl = "~/ProjectData/ProjectSetView.aspx";
this.Tab1.Title = "项目";
}
else if (type == Const.Menu_DigitalSite)
{
this.Tab1.IFrameUrl = "~/Video/Video.aspx";
this.leftPanel.Hidden = true;
this.Tab1.Title = "视频监控";
}
else if (type == Const.Menu_PZHGL)
if (type == Const.Menu_PZHGL)
{
//this.Tab1.IFrameUrl = "~/PZHGL/InformationProject/ConstructionPlan.aspx";
this.Tab1.IFrameUrl = "~/HSSE/Manager/HSSELog.aspx";
@ -640,6 +632,10 @@ namespace FineUIPro.Web
this.Tab1.IFrameUrl = "~/PZHGL/GJSX/GJSXList.aspx";
this.Tab1.Title = "关键事项";
}
else
{
this.Tab1.Title = "首页";
}
}
else
{
@ -714,9 +710,9 @@ namespace FineUIPro.Web
protected void btnDigitalSite_Click(object sender, EventArgs e)
{
//string url = ConfigurationManager.AppSettings["Video_URL"] + "#/screen";
//Response.Write("<script>window.open(" + url + "'',''_blank'')</script>");
this.MenuSwitchMethod(Const.Menu_DigitalSite);
string url = ConfigurationManager.AppSettings["Video_URL"] + "#/screen";
Response.Write("<script>window.open(" + url + "'',''_blank'')</script>");
// this.MenuSwitchMethod(Const.Menu_DigitalSite);
}
protected string VideoURL