关联摄像头
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user