1
This commit is contained in:
@@ -10,6 +10,7 @@ using System.Web;
|
||||
using System.Web.UI.WebControls;
|
||||
using System.Xml;
|
||||
using System.Linq;
|
||||
using FineUIPro.Web.ZHDD;
|
||||
|
||||
namespace FineUIPro.Web
|
||||
{
|
||||
@@ -321,7 +322,7 @@ namespace FineUIPro.Web
|
||||
var getproject = ProjectService.GetProjectByProjectName(Request.Params["projectName"]);
|
||||
if (getproject != null)
|
||||
{
|
||||
if (getproject.ProjectState!="1")
|
||||
if (getproject.ProjectState != "1")
|
||||
{
|
||||
ProjectService.InitProjectShortNameByStateDropDownList(this.drpProject, this.CurrUser.UserId, getproject.ProjectState, false, "1");
|
||||
}
|
||||
@@ -356,30 +357,30 @@ namespace FineUIPro.Web
|
||||
this.InitLangMenuButton();
|
||||
|
||||
|
||||
var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == this.drpProject.SelectedValue);
|
||||
if (project != null && !string.IsNullOrEmpty(project.ProjectCode))
|
||||
{
|
||||
var project = Funs.DB.Base_Project.FirstOrDefault(x => x.ProjectId == this.drpProject.SelectedValue);
|
||||
if (project != null && !string.IsNullOrEmpty(project.ProjectCode))
|
||||
{
|
||||
this.lblProjectName.Text = project.ProjectName;
|
||||
this.hfProjectCode.Text = project.ProjectCode;
|
||||
}
|
||||
if (project != null && !string.IsNullOrEmpty(project.MonitorPW))
|
||||
{
|
||||
this.hfMonitorPW.Text = Funs.EncryptionPassword(project.MonitorPW);
|
||||
}
|
||||
else
|
||||
{
|
||||
this.hfMonitorPW.Text = "";
|
||||
}
|
||||
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);
|
||||
}
|
||||
}
|
||||
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();
|
||||
|
||||
if (Request.Cookies["SelectLan"] != null)
|
||||
@@ -841,6 +842,11 @@ namespace FineUIPro.Web
|
||||
Response.Write("<script>window.open(" + url + "'',''_blank'')</script>");
|
||||
// this.MenuSwitchMethod(Const.Menu_DigitalSite);
|
||||
}
|
||||
protected void btnCommandDispatch_Click(object sender, EventArgs e)
|
||||
{
|
||||
string url = "ZHDD/ZHDD.aspx";
|
||||
Response.Write("<script>window.open(" + url + "'',''_blank'')</script>");
|
||||
}
|
||||
protected void btnDoc_Click(object sender, EventArgs e)
|
||||
{
|
||||
this.MenuSwitchMethod(Const.Menu_Doc);
|
||||
@@ -852,6 +858,24 @@ namespace FineUIPro.Web
|
||||
return ConfigurationManager.AppSettings["Video_URL"] + "#/screen";
|
||||
}
|
||||
}
|
||||
protected string CommandDispatchCenterURL
|
||||
{
|
||||
get
|
||||
{
|
||||
string username = "rdys_test";
|
||||
string password = "Runde.2024";
|
||||
var res1 = APIGetHttpService.Http("https://caps.runde.pro/api/index.php?ctl=tool&act=get_pkey&user_name=" + username + "&pwd=" + password, "POST");
|
||||
var j1 = JsonConvert.DeserializeObject<dynamic>(res1);
|
||||
string data = j1.data;
|
||||
|
||||
var res2 = APIGetHttpService.Http("https://caps.runde.pro/api/index.php?ctl=tool&act=get_token&user_name=" + username + "&pkey=" + j1.data, "POST");
|
||||
var j2 = JsonConvert.DeserializeObject<dynamic>(res2);
|
||||
string session_id = j2.session_id;
|
||||
string token = j2.token;
|
||||
string url = "https://caps.runde.pro/login/#token=" + session_id + "&user_name=" + username + "target=home";
|
||||
return url;
|
||||
}
|
||||
}
|
||||
|
||||
protected void btnPDigData_Click(object sender, EventArgs e)
|
||||
{
|
||||
@@ -905,9 +929,9 @@ namespace FineUIPro.Web
|
||||
|
||||
protected void btnHelp_Click(object sender, EventArgs e)
|
||||
{
|
||||
if (this.CurrUser.UserId==Const.hfnbdId)
|
||||
if (this.CurrUser.UserId == Const.hfnbdId)
|
||||
{
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/Help&menuId={1}",Const.UnitId_CWCEC, BLL.Const.SysConstSetMenuId)));
|
||||
PageContext.RegisterStartupScript(WindowAtt.GetShowReference(String.Format("~/AttachFile/webuploader.aspx?toKeyId={0}&path=FileUpload/Help&menuId={1}", Const.UnitId_CWCEC, BLL.Const.SysConstSetMenuId)));
|
||||
|
||||
}
|
||||
else
|
||||
@@ -923,7 +947,8 @@ namespace FineUIPro.Web
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
protected void btnPhoneClick(object sender, EventArgs e) {
|
||||
protected void btnPhoneClick(object sender, EventArgs e)
|
||||
{
|
||||
PageContext.RegisterStartupScript(Window1.GetShowReference(String.Format("~/ProjectData/ProjectUserContact.aspx")));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user