diff --git a/SUBQHSE/FineUIPro.Web/indexProject.aspx b/SUBQHSE/FineUIPro.Web/indexProject.aspx index 0c4e6ac..b6b2472 100644 --- a/SUBQHSE/FineUIPro.Web/indexProject.aspx +++ b/SUBQHSE/FineUIPro.Web/indexProject.aspx @@ -10,11 +10,13 @@ <%-- --%> + - + + @@ -487,129 +480,119 @@ <%--头部 开始--%> -
-
-
-
-
北京
-
- 多云 -
-
-
-
-
    -
  • - - -
  • -
  • 设置 - -
  • -
  • 退出
  • -
  • - 全屏
  • +
    +
    + +
    + 建投公司智慧工地管理信息系统 + + +
    +
-
-
-
-
- QHSE管理数字化平台(项目级) - - -
-
- - - - - -
- -
- -
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • - -
-
    -
  • - - -
  • -
  • - - -
  • -
  • - - -
  • -
-
-
-
+ +
+

{{timer.city}}{{timer.time}}

+

{{timer.date}}{{timer.week}}

+
+ +
+
+ + + + + +
+
+ 退出 +
+
+ + +
+
+ + +
+
全屏
+
+ + +
<%--头部 结束--%>
@@ -955,8 +938,8 @@ } } // 点击标题栏工具图标 - 查看源代码 - var videoURL ='<%=VideoURL %>' + var videoURL = '<%=VideoURL %>' function openVideo() { if (videoURL) { var username = $('#SimpleForm1_hfProjectCode-inputEl').val() @@ -1121,5 +1104,86 @@ initEvent(); }); + + + diff --git a/SUBQHSE/FineUIPro.Web/indexProject.aspx.cs b/SUBQHSE/FineUIPro.Web/indexProject.aspx.cs index 5772687..6cdb9c5 100644 --- a/SUBQHSE/FineUIPro.Web/indexProject.aspx.cs +++ b/SUBQHSE/FineUIPro.Web/indexProject.aspx.cs @@ -299,8 +299,8 @@ namespace FineUIPro.Web { needProjectId = Request.Params["projectId"]; } - BLL.UnitService.InitBranchUnitDropDownList(this.drpUnit,false); - Funs.FineUIPleaseSelect(this.drpUnit,"请选择所属单位"); + BLL.UnitService.InitBranchUnitDropDownList(this.drpUnit, false); + Funs.FineUIPleaseSelect(this.drpUnit, "请选择所属单位"); //if (this.CurrUser.UnitId != null) //{ // this.drpUnit.SelectedValue = this.CurrUser.UnitId; @@ -335,33 +335,33 @@ namespace FineUIPro.Web { this.drpProject.Value = needProjectId; } - var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == this.drpProject.Value); - if (project != null && !string.IsNullOrEmpty(project.ProjectCode)) - { - this.hfProjectCode.Text = project.ProjectCode; - } - if (project != null && !string.IsNullOrEmpty(project.MonitorPW)) - { - this.hfMonitorPW.Text = Funs.EncryptionPassword(project.MonitorPW); - } - else - { - this.hfMonitorPW.Text = ""; - } - if (CurrUser.UserId == Const.hfnbdId) - { - var sysSet17 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控密码" select x).ToList().FirstOrDefault(); - if (sysSet17 != null) - { - this.hfProjectCode.Text = "admin"; - this.hfMonitorPW.Text = Funs.EncryptionPassword(sysSet17.SetValue); - } - } - this.MenuSwitchMethod(Request.Params["menuType"]); + var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == this.drpProject.Value); + if (project != null && !string.IsNullOrEmpty(project.ProjectCode)) + { + this.hfProjectCode.Text = project.ProjectCode; + } + if (project != null && !string.IsNullOrEmpty(project.MonitorPW)) + { + this.hfMonitorPW.Text = Funs.EncryptionPassword(project.MonitorPW); + } + else + { + this.hfMonitorPW.Text = ""; + } + if (CurrUser.UserId == Const.hfnbdId) + { + var sysSet17 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控密码" select x).ToList().FirstOrDefault(); + if (sysSet17 != null) + { + this.hfProjectCode.Text = "admin"; + this.hfMonitorPW.Text = Funs.EncryptionPassword(sysSet17.SetValue); + } + } + this.MenuSwitchMethod(Request.Params["menuType"]); this.InitMenuStyleButton(); this.InitMenuModeButton(); this.InitLangMenuButton(); - this.userName.InnerText = this.CurrUser.UserName; + this.userName.Text = this.CurrUser.UserName; } } @@ -584,21 +584,21 @@ namespace FineUIPro.Web PageContext.RegisterStartupScript("parent.removeActiveTab();"); MenuSwitchMethod(this.CurrUser.LastMenuType); - var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == this.drpProject.Value); - if (project != null && !string.IsNullOrEmpty(project.ProjectCode)) - { - this.hfProjectCode.Text = project.ProjectCode; - } - if (project != null && !string.IsNullOrEmpty(project.MonitorPW)) - { - this.hfMonitorPW.Text = Funs.EncryptionPassword(project.MonitorPW); - } - else - { - this.hfMonitorPW.Text = ""; - } + var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == this.drpProject.Value); + if (project != null && !string.IsNullOrEmpty(project.ProjectCode)) + { + this.hfProjectCode.Text = project.ProjectCode; + } + if (project != null && !string.IsNullOrEmpty(project.MonitorPW)) + { + this.hfMonitorPW.Text = Funs.EncryptionPassword(project.MonitorPW); + } + else + { + this.hfMonitorPW.Text = ""; + } - if (CurrUser.UserId==Const.hfnbdId) + if (CurrUser.UserId==Const.hfnbdId) { var sysSet17 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控密码" select x).ToList().FirstOrDefault(); if (sysSet17 != null) @@ -615,7 +615,7 @@ namespace FineUIPro.Web /// protected void MenuSwitchMethod(string type) { - this.CurrUser.LoginProjectId = this.drpProject.Value; + //this.CurrUser.LoginProjectId = this.drpProject.Value; this.XmlDataSource1.DataFile = "common/Menu_Personal.xml"; this.leftPanel.Hidden = true; this.Tab1.IFrameUrl = "~/common/mainProject.aspx"; @@ -742,33 +742,33 @@ namespace FineUIPro.Web { video_Url = sysSet16.SetValue; } - var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == CurrUser.LoginProjectId); - string url = video_Url + "#/screen?username="+ project.ProjectCode+"&password="+project.MonitorPW; + 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(""); // this.MenuSwitchMethod(Const.Menu_DigitalSite); } } protected string VideoURL - { - get - { - if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, Const.Menu_DigitalSite, this.drpProject.Value)) - { - string video_Url = string.Empty; - var sysSet16 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控地址" select x).ToList().FirstOrDefault(); - if (sysSet16 != null) - { - video_Url = sysSet16.SetValue; - } - return video_Url; - } - else - { - return null; - } - } - } + { + get + { + if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, Const.Menu_DigitalSite, this.drpProject.Value)) + { + string video_Url = string.Empty; + var sysSet16 = (from x in Funs.DB.Sys_Set where x.SetName == "视频监控地址" select x).ToList().FirstOrDefault(); + if (sysSet16 != null) + { + video_Url = sysSet16.SetValue; + } + return video_Url; + } + else + { + return null; + } + } + } protected void btnPDigData_Click(object sender, EventArgs e) { this.MenuSwitchMethod(Const.Menu_PDigData); diff --git a/SUBQHSE/FineUIPro.Web/indexProject.aspx.designer.cs b/SUBQHSE/FineUIPro.Web/indexProject.aspx.designer.cs index a8fb90c..57fc156 100644 --- a/SUBQHSE/FineUIPro.Web/indexProject.aspx.designer.cs +++ b/SUBQHSE/FineUIPro.Web/indexProject.aspx.designer.cs @@ -60,49 +60,31 @@ namespace FineUIPro.Web protected global::FineUIPro.ContentPanel ContentPanel1; /// - /// divWeather 控件。 + /// btnPerson 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl divWeather; + protected global::FineUIPro.Button btnPerson; /// - /// spDate 控件。 + /// btnDigData 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl spDate; + protected global::FineUIPro.Button btnDigData; /// - /// userName 控件。 + /// Button1 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl userName; - - /// - /// btnPersonal 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnPersonal; - - /// - /// btnSysSet 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnSysSet; + protected global::FineUIPro.Button Button1; /// /// btnHome 控件。 @@ -113,6 +95,33 @@ namespace FineUIPro.Web /// protected global::FineUIPro.Button btnHome; + /// + /// btnCQMS 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnCQMS; + + /// + /// btnDevice 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDevice; + + /// + /// btnDigitalSite 控件。 + /// + /// + /// 自动生成的字段。 + /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 + /// + protected global::FineUIPro.Button btnDigitalSite; + /// /// drpProject 控件。 /// @@ -168,67 +177,22 @@ namespace FineUIPro.Web protected global::FineUIPro.RadioButtonList ckState; /// - /// Div1 控件。 + /// btnSysSet 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl Div1; + protected global::FineUIPro.Button btnSysSet; /// - /// btnPerson 控件。 + /// userName 控件。 /// /// /// 自动生成的字段。 /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 /// - protected global::FineUIPro.Button btnPerson; - - /// - /// btnDigData 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnDigData; - - /// - /// Button1 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button Button1; - - /// - /// btnCQMS 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnCQMS; - - /// - /// btnDevice 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnDevice; - - /// - /// btnDigitalSite 控件。 - /// - /// - /// 自动生成的字段。 - /// 若要进行修改,请将字段声明从设计器文件移到代码隐藏文件。 - /// - protected global::FineUIPro.Button btnDigitalSite; + protected global::FineUIPro.Button userName; /// /// leftPanel 控件。 diff --git a/SUBQHSE/FineUIPro.Web/res/homecss/head.css b/SUBQHSE/FineUIPro.Web/res/homecss/head.css index 860da2e..91aba06 100644 --- a/SUBQHSE/FineUIPro.Web/res/homecss/head.css +++ b/SUBQHSE/FineUIPro.Web/res/homecss/head.css @@ -1,7 +1,7 @@ header { width: 100%; - height: 1rem; + height: 1.25rem; background-image: url(../images/01/top.png); background-repeat: no-repeat; background-position: left top; @@ -25,14 +25,14 @@ header { background-size: 100% 100%; } -.refresh-img{ +.refresh-img { margin-left: 0.125rem; - background: url('../images/sprite.png') no-repeat 0 0; - width: 27px; - height: 26px; + background: url('../images/sprite.png') no-repeat -402px 0; + width: 27px; + height: 26px; } -.navs{ - width: 100%; +.navs { + width: calc(100% - 1.9375rem - 40px ); display: flex; flex-direction: row; justify-content: center; @@ -97,7 +97,7 @@ header { .set{ position: absolute; left: 0;right: 0; - bottom: 0; + bottom: .25rem; height: 14px; display: flex; flex-direction: row; diff --git a/SUBQHSE/FineUIPro.Web/res/images/sprite.png b/SUBQHSE/FineUIPro.Web/res/images/sprite.png index 861c0a5..95b2566 100644 Binary files a/SUBQHSE/FineUIPro.Web/res/images/sprite.png and b/SUBQHSE/FineUIPro.Web/res/images/sprite.png differ