Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.AdminUI\Pub\RecordEquipment\EquipmentInfo.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="EquipmentInfo.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.RecordEquipment.EquipmentInfo" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><%= this.RecordEquipment.Name %> ????</title> <%= Import.Theme() %> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap.css") %> <%= Import.CSS("/zh-cn/bootstrap/css/bootstrap-theme.css") %> <%= Import.CSS("/zh-cn/bootstrap/admin.css") %> <%-- <%= Import.CSS("/zh-cn/Admin_StyleSheet.css") %>--%> <%= Import.Script("/jquery.1.9.js")%> <%= Import.Script("/app.js")%> <%= Import.Script("/bootstrap/bootstrap.min.js")%> </head> <body class="equipmentinfo"> <div class="container"> <ul> <li><h3>????????<%= this.RecordEquipment.Name %></h3></li> <% if (RecordEquipment.FactoryType != (int)AVA.ResourcesPlatform.Model.Pub.RecordEquipmentFactoryTypeEnum.????????) { %> <li>?????????????????????????????</li> <% } else if (RecordEquipment.EquipmentType == (int)AVA.ResourcesPlatform.Model.Pub.RecordEquipmentEquipmentTypeEnum.??????) { %> <li>????????????????????????????????????</li> <% if (this.RecordEquipment.ParentAgentServer == null) { %> <li>?????????????????????<span class="stslight stsfail"></span></li> <% } else { %> <li>???????????<%= this.RecordEquipment.ParentAgentServer.Name %><span class="stslight stsok"></span></li> <% var asStatus = CreateInstance.AgentServerDao.ASStatus(this.RecordEquipment.ParentAgentServer); %> <li>???????????<%= asStatus %><span class="stslight stsok"></span></li> <% if (asStatus.IndexOf("????????????") != -1) { //????????????????????? %> <li>????????<%= CreateInstance.AgentServerDao.AVAASURL(this.RecordEquipment) %></li> <% } } } else { var managerUrl = CreateInstance.RecordEquipmentDao.ManageUrl(this.RecordEquipment); var result = AVA.ResourcesPlatform.Config.Helper.GetResponse(managerUrl, 3000); if (result == Z.Core.Lang.Define.Get("RecordEquipment_??????")) { if (AVA.ResourcesPlatform.Config.Helper.PingService(this.RecordEquipment.IPAddress) == "1") { %> <li>????????ing??????????????????????????????????<span class="stslight stsfail"></span></li> <% } else { %> <li>????????ing??????????????????IP???????????????????????????????<span class="stslight stsfail"></span></li> <% } } else { %> <li>?????????<span class="stslight stsok"></span></li> <% } %> <li>???????? <% var status = CreateInstance.RecordEquipmentDao.GetRecordEquipmentStatus(this.RecordEquipment); if (status == Z.Core.Lang.Define.Get("RecordEquipment_??????")) { %> ??????????????<span class="stslight stsfail"></span> <% } else if (status == Z.Core.Lang.Define.Get("RecordEquipment_???")) { %> ??????????????????????????????????????! <% if (this.RecordEquipment.ProductVersion == (int)AVA.ResourcesPlatform.Model.Pub.RecordEquipmentProductVersionEnum.????? && this.RecordEquipment.ProgramID != 0) { %> ???????????????"<%= this.RecordEquipment.ProgramID %>"??????????????D?????0 <% } else if (this.RecordEquipment.ProductVersion == (int)AVA.ResourcesPlatform.Model.Pub.RecordEquipmentProductVersionEnum.????? && this.RecordEquipment.ProgramID != 137 && this.RecordEquipment.ProgramID != 139) { %> ???????????????"<%= this.RecordEquipment.ProgramID %>"??????????????D?????137??139 <% } %> <span class="stslight stsfail"></span> <% } else if (status == Z.Core.Lang.Define.Get("RecordEquipment_??????")) { %> ????????????????????????????<span class="stslight stsfail"></span> <% } else { %> <%= status %><span class="stslight stsok"></span> </li> <%--RTSP?????--%> <% var versionInfo = CreateInstance.RecordEquipmentDao.QUERY_VERSION_INFO(this.RecordEquipment); if (versionInfo != null) { %> <li>???????????<%= versionInfo.GetValue("AppVersion") %><span class="stslight stsok"></span></li> <%--<li>????????<%= versionInfo.GetValue("PcbVersion") %></li>--%> <% } var sdkInfo = CreateInstance.RecordEquipmentDao.GET_RTSP_INFO(this.RecordEquipment); if (sdkInfo != null) { var rtpMode = "???"; if (sdkInfo.GetValue("RtpMode") == "0") { rtpMode = "UDP"; } else if (sdkInfo.GetValue("RtpMode") == "1") { rtpMode = "TCP"; } %> <%-- <%= sdkInfo.Count %> --%> <li id="rtspmode">RTSP?????<%= rtpMode %><span class="stslight stsfail"></span></li> <script type="text/javascript"> $(document).ready(function(){ if ($("#rtspmode").text() == "RTSP?????CP") { $("#rtspmode span").removeClass("stsfail"); $("#rtspmode span").addClass("stsok"); } }); </script> <li>RTSP?????<%= sdkInfo.GetValue("RtspPort") %> <% if(sdkInfo.GetValue("RtspPort") != this.RecordEquipment.RecordPort) { %> ????????<%= this.RecordEquipment.RecordPort %>????? <span class="stslight stsfail"></span> <% } else { %> <span class="stslight stsok"></span> <% } %> </li> <li>RTSP??????????<%= sdkInfo.GetValue("MaxRtspOnlineCount").ToInt(8) %></li> <li>RTSP?????????<%= sdkInfo.GetValue("RtspOnlineCount") %></li> <% } else if (this.RecordEquipment.ProductVersion == (int)AVA.ResourcesPlatform.Model.Pub.RecordEquipmentProductVersionEnum.?????) { %> <li>???????????TSP????(??????????137??139????????9000)</li> <% } else { %> <li>????????</li> <% } %> <% if (this.RecordEquipment.ParentAgentServer == null) { %> <li>?????????????????????<span class="stslight stsfail"></span></li> <% } else { %> <li>???????????<%= this.RecordEquipment.ParentAgentServer.Name %><span class="stslight stsok"></span></li> <% var asStatus = CreateInstance.AgentServerDao.ASStatus(this.RecordEquipment.ParentAgentServer); %> <li>???????????<%= asStatus %><span class="stslight <%= (asStatus.IndexOf("????????????")!=-1)?"stsok":"stsfail" %>"></span></li> <% if (asStatus.IndexOf("????????????") != -1) { //????????????????????? %> <li>????????<%= CreateInstance.AgentServerDao.AVAASURL(this.RecordEquipment) %></li> <% } } %> <% } %> <% } %> </ul> </div> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de