关联摄像头
This commit is contained in:
@@ -4,6 +4,7 @@ using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Configuration;
|
||||
using System.IO;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Text;
|
||||
using System.Web;
|
||||
@@ -387,7 +388,31 @@ namespace FineUIPro.Web
|
||||
Alert.ShowInTop("当前密码不安全,请尽快更改!", MessageBoxIcon.Warning);
|
||||
}
|
||||
|
||||
|
||||
if (CurrUser.IsOffice.HasValue && CurrUser.IsOffice.Value)
|
||||
{
|
||||
|
||||
string username = ConfigurationManager.AppSettings["Video_USER"];
|
||||
string password = ConfigurationManager.AppSettings["Video_PW"];
|
||||
this.hfProjectCode.Text = username;
|
||||
this.hfMonitorPW.Text = Funs.EncryptionPassword(password);
|
||||
}
|
||||
else
|
||||
{
|
||||
var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == CurrUser.LoginProjectId);
|
||||
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 = "";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
@@ -587,6 +612,31 @@ namespace FineUIPro.Web
|
||||
this.CurrUser.LoginProjectId = this.drpProject.SelectedValue;
|
||||
PageContext.RegisterStartupScript("parent.removeActiveTab();");
|
||||
MenuSwitchMethod(this.CurrUser.LastMenuType);
|
||||
|
||||
if (CurrUser.IsOffice.HasValue && CurrUser.IsOffice.Value)
|
||||
{
|
||||
|
||||
string username = ConfigurationManager.AppSettings["Video_USER"];
|
||||
string password = ConfigurationManager.AppSettings["Video_PW"];
|
||||
this.hfProjectCode.Text = username;
|
||||
this.hfMonitorPW.Text = Funs.EncryptionPassword(password);
|
||||
}
|
||||
else
|
||||
{
|
||||
var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == CurrUser.LoginProjectId);
|
||||
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 = "";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -776,7 +826,7 @@ namespace FineUIPro.Web
|
||||
{
|
||||
if (CommonService.IsHaveSystemPower(this.CurrUser.UserId, Const.Menu_Video, this.drpProject.SelectedValue))
|
||||
{
|
||||
return ConfigurationManager.AppSettings["Video_URL"] + "#/screen";
|
||||
return ConfigurationManager.AppSettings["Video_URL"] ;
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user