关联摄像头

This commit is contained in:
2023-10-18 15:55:42 +08:00
parent 2446d3916b
commit 1bb46425bd
11 changed files with 1175 additions and 588 deletions
+27 -2
View File
@@ -9,6 +9,7 @@ using System.Text;
using System.Web;
using System.Web.UI.WebControls;
using System.Xml;
using System.Linq;
namespace FineUIPro.Web
{
@@ -316,8 +317,32 @@ namespace FineUIPro.Web
this.InitMenuModeButton();
this.InitLangMenuButton();
//GetWeather();
}
var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == this.drpProject.SelectedValue);
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);
}
}
//GetWeather();
}
}
private void GetWeather()