Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.AdminUI\Index.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="~/Index.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Index" %> <%--<head> <title>??????????????(Ver:<%= typeof(AVA.ResourcesPlatform.AdminUI.Index).Assembly.GetName().Version %>)</title> <%= Import.Script("/jquery.1.9.js")%> <script> function NavigateLeft(url) { $("#fraLeft").attr("src", url); } function NavigateMain(url) { $("#fraMain").attr("src", url); } </script> </head> <frameset id="frmMaster" rows="71,*" border="0" frameborder="0" framespacing="0" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0"> <frame id="frmTop" src="top.aspx" name="frmTop" frameborder="no" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" scrolling="no" > <frameset cols="0,*" border="0" frameborder="0" framespacing="0" topmargin="0" leftmargin="0" marginheight="0" marginwidth="0" id="fstMain"> <frame src="left.aspx" name="fraLeft" id="fraLeft" scrolling='no'/> <frame src="main.aspx" name="fraMain" id="fraMain" scrolling='auto' /> </frameset> </frameset>--%> <!doctype html > <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" /> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title><%= this.Title %></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")%> <%-- <script> window.location = "./Pub/Video/ListAudit.aspx"; </script>--%> </head> <body> <div class="wrap"> <%= new NavigationInstance(this) { IsTopNav = true }.ToHtml() %> <div class="container-fulid"> <div class="row"> <%-- <% nav.GetChildMenu(Request["muid"]);%> <%= nav.ToHtml() %>--%> <a id="menu-toggler" href="#"><span></span></a> <div id="sidebar" data-spy="affix" data-offset-top="50"> <%= new AuditControlBarInstance(this) {IsIndex=true }.ToHtml()%> </div> <div class="col-md-12 " id="content"> <div id="divMain" class="gContent"> <div class="gIbx"> <div class="mContent"> <%--<div id="dvToolbar_inbox" class="g-toolbar"> <div class="btngrp"> </div> <div class="btngrp"> </div> <div class="btngrp btngrp-ext"> <div class="btngrp"> </div> <div title="" onclick="GoRestartApp()" class="btn btn-dft"> <span id="spnGoRestartApp">???????????</span> </div> <script type="text/javascript"> function GoRestartApp() { if (confirm("????????????????????")) { $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.HelperAjax.RestartApp", data: "", async: true, dataType: 'json', success: function (result) { alert(result); }, beforeSend: function () { $("#spnGoRestartApp").html("??????..."); }, complete: function () { $("#spnGoRestartApp").html("???????????"); }, error: function (XMLHttpRequest, textStatus, errorThrown) { var message = XMLHttpRequest.responseText; alert(message); } }); } } </script> </div> </div> <div style="clear: both"> </div> <div class="ln-thin ln-c-mid"> </div>--%> <div class="gIbx"> ????????<%--[<a href="<%= RootUrl()+"/Pub/Notice/editiframe.aspx" %>"><span>???</span></a>]--%> <div class="txt-12 listContainer selectDefine" id="notic_list"> </div> </div> <div class="gIbx"> ??????????? <div class="txt-12 listContainer selectDefine" id="equipment_list"> </div> </div> <div class="gIbx"> ??????????? <div class="txt-12 listContainer selectDefine" id="application_list"> </div> </div> <%-- <div class="gIbx"> ???????? <form id="frmSearchUser" action="" onsubmit="return false;"> <%# Define.Get("User_DomainName_??????").HtmlEncode() %>?? <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Domain")%> <%= new HtmlHidden("$Field", "Name")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._string)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Like)%> <%= new HtmlText("$FieldValue", null) { Width = 80 }%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <%# Define.Get("User_DomainCode_??????").HtmlEncode() %>?? <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Domain")%> <%= new HtmlHidden("$Field", "Code")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._string)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Like)%> <%= new HtmlText("$FieldValue", null) { Width = 80 }%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Domain")%> <%= new HtmlHidden("$Field", "Verify")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._string)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Like)%> <%= new HtmlHidden("$FieldValue", 0) { Width = 80 }%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <%# Define.Get("User_?????").HtmlEncode() %>?? <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Alias")%> <%= new HtmlHidden("$Field", "UserName")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._string)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Like)%> <%= new HtmlText("$FieldValue", null) { Width = 80 }%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <%# Define.Get("User_??????").HtmlEncode() %>?? <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Alias")%> <%= new HtmlHidden("$Field", "TrueName")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._string)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Like)%> <%= new HtmlText("$FieldValue", null) { Width = 80 }%> <%= new HtmlHidden("$RightParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$LogicType", (int)Z.Core.NHibernateCore.Search.LogicTypeEnum.AND)%> <%= new HtmlHidden("$IgnoreEmpty", "1")%> <%= new HtmlSubmit(null, null) { OnClick = "GoSearch(this);" }.Style(new { Display = "none" })%> </form> <form id="frmQuery" action="" onsubmit="return false;"> <%= new HtmlHidden("PageIndex", "1") %> <%= new HtmlHidden("PageSize", SettingGroup.ManagerDefine.ListCount)%> <%= new HtmlHidden("Orders", null)%> <%= new HtmlHidden("", null) { ID = "SearchParameter" }%> </form>--%> <%--<div class="txt-12 listContainer selectDefine" id="user_list"> </div> </div>--%> </div> </div> </div> </div> </div> </div> </div> <%= Import.Script("js","/JQueryUI/jquery-ui.min.js")%> <%= Import.Script("/URL/jquery.url.js")%> <%= Import.Script("/JsonCookie/json2.js")%> <%= Import.Script("/JsonCookie/jquery.cookie.js")%> <%= Import.Script("/JsonCookie/jquery.jsoncookie.js")%> <%= Import.Script("/Global.aspx")%> <%= Import.Script("/SelectForm.js")%> <%= Import.Script("js", "/global.js")%> <%= Import.Script("js", "/Public.js")%> <%= Import.Script("js", "/ListPublic.js")%> <%= Import.Script("js", "/Ajax/Pub/RecordEquipmentAjax.js")%> <%= Import.Script("js", "/Ajax/Pub/AgentServerAjax.js")%> <%= Import.Script("js", "/Ajax/Pub/ApplicationAjax.js")%> <%--<%= Import.Script("js", "/Ajax/Pub/NoticeAjax.js")%>--%> <%= Import.Script("js","/FancyBox/jquery.fancybox-1.2.1.js")%> <%= Import.CSS("js", "/FancyBox/jquery.fancybox.css")%> <script> //Search(); // function Search(send) { $(document).ready(function () { var send = null; $("#divSearch").hide(); var params = $("#SearchParameter").val(); if (params != null && params != "") { params += "&"; } params += Global.GetFormValue($("#frmSearchUser")); $("#notic_list").html(Global.LodingHtml); Global.UserControl("/Pub/Notice/list", params, send, function (result) { $("#notic_list").html(result.Html); //YKPage(result.Data); //ListInit(); changeEditFancybox(); $('.ckb').hide(); }); //$("#user_list").html(Global.LodingHtml); // //var user_params = params + Global.GetFormValue($("#frmSearchUser")); // Global.UserControl("/Pub/User/list", user_params, send, function (result) { // $("#user_list").html(result.Html); // //YKPage(result.Data); // //ListInit(); //}); $("#equipment_list").html(Global.LodingHtml); Global.UserControl("/Pub/RecordEquipment/List", params, send, function (result) { $("#equipment_list").html(result.Html); //YKPage(result.Data); //ListInit(); changeEditFancybox(); $('.ckb').hide(); }); $("#application_list").html(Global.LodingHtml); ListDownloadMessageList(); }); //}; </script> <script> function changeEditFancybox() { $("#content a[href*='edit']").each(function () { if (this.href.indexOf("edit.") > 0) { this.href = this.href.toLowerCase().replace('edit.', 'editiframe.'); } var that = this; $(that).fancybox({ 'zoomSpeedIn': 500, 'zoomSpeedOut': 500, frameWidth: 850, frameHeight: 460, hideOnContentClick: true }); }); } </script> <script type="text/javascript"> //?????? function StartRecordOnly(send, pkid) { var vga = 0; var video2 = 1; if (confirm("?????????????????????????????????...") == false) { return; } vga = 1; $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.StartRecordOnly", data: "pkid=" + encodeURIComponent(pkid) + "&vga=" + encodeURIComponent(vga) + "&video2=" + encodeURIComponent(video2), async: true, dataType: 'json', success: function (result) { if (result = true) { $(send).html("??????"); alert("?????????!"); $("#spn" + pkid).click(); } }, beforeSend: function () { $(send).html("?????..."); }, complete: function () { $(send).html("??????"); }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).html("??????"); $("#spn" + pkid).click(); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } function EndRecordOnly(send, pkid) { if (confirm("?????????????????????????????????????????...") == false) { return false; } $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.RecordEquipmentAjax.EndRecordOnly", data: "pkid=" + encodeURIComponent(pkid), async: true, dataType: 'json', success: function (result) { if (result = true) { $(send).html("??????"); $("#spn" + pkid).click(); EquipmentASStatus(pkid, "send"); alert("?????????!") } }, beforeSend: function () { $(send).html("?????..."); }, complete: function () { $(send).html("??????"); }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).html("??????"); $("#spn" + pkid).click(); EquipmentASStatus(pkid, "send"); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } function StopTransfer(send, pkid) { if (confirm("?????????????????????????????????????????...") == false) { return false; } $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.AgentServerAjax.Stop", data: "pkid=" + encodeURIComponent(pkid), async: true, dataType: 'json', success: function (result) { if (result = true) { $(send).html("??????"); $("#spn" + pkid).click(); EquipmentASStatus(pkid, "send"); alert("?????????!") } }, beforeSend: function () { $(send).html("?????..."); }, complete: function () { $(send).html("??????"); }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).html("??????"); $("#spn" + pkid).click(); EquipmentASStatus(pkid, "send"); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } function StartTransfer(send, pkid) { if (confirm("????????????????????????????????????????????????????????????????????...") == false) { return false; } $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.AgentServerAjax.Start", data: "pkid=" + encodeURIComponent(pkid), async: true, dataType: 'json', success: function (result) { if (result = true) { $(send).html("???????"); $("#spn" + pkid).click(); EquipmentASStatus(pkid, "send"); alert("??????????!") } }, beforeSend: function () { $(send).html("?????..."); }, complete: function () { $(send).html("???????"); }, error: function (XMLHttpRequest, textStatus, errorThrown) { $(send).html("???????"); $("#spn" + pkid).click(); EquipmentASStatus(pkid, "send"); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } function EquipmentASStatus(pkid, send) { //alert("EquipmentASStatus:123" + pkid); //???????? $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.Pub.AgentServerAjax.EquipmentASStatus", data: "pkid=" + encodeURIComponent(pkid), async: true, dataType: 'json', success: function (result) { //alert(result); //alert($("#spnStartTransfer" + pkid).length); if (result == true) { $("#spnStartTransfer" + pkid).hide(); $("#spnStopTransfer" + pkid).show(); } else { $("#spnStopTransfer" + pkid).hide(); $("#spnStartTransfer" + pkid).show(); } }, beforeSend: function () { $("#spnStopTransfer" + pkid).hide(); $("#spnStartTransfer" + pkid).hide(); }, complete: function () { if (send == null) { setTimeout(function () { EquipmentASStatus(pkid) }, 60000); } }, error: function (XMLHttpRequest, textStatus, errorThrown) { $("#spnStopTransfer" + pkid).hide(); $("#spnStartTransfer" + pkid).hide(); if (send == null) { setTimeout(function () { EquipmentASStatus(pkid) }, 60000); } } }); } function ReDownloadMessage(send) { if (confirm("??????????????????????????????")) { ApplicationAjax.ReDownloadMessage(send.getAttribute("key"), null, function (json) { ListDownloadMessageList(); }); } }; function ClearDownloadMessage(send) { if (confirm("?????????????")) { ApplicationAjax.ClearDownloadMessage(send.getAttribute("key"), null, function (json) { ListDownloadMessageList(); }); } }; function ListDownloadMessageList() { Global.UserControl("/Pub/Application/ListDownloadMessage", null, null, function (result) { $("#application_list").html(result.Html); //YKPage(result.Data); //ListInit(); changeEditFancybox(); $('.ckb').hide(); }); } </script> <script type="text/javascript"> function GetMyStatus(key, guid) { $("#spn" + guid).html("?????..."); $("#spn" + guid).css("color", ""); RecordEquipmentAjax.GetRecordEquipmentStatus(key, null, function (result) { $("#spn" + guid).html(result.Data); if (result.Data == '<%= Define.Get("RecordEquipment_?????").Replace("RecordEquipment_","") %>') { $("#spn" + guid).css("color", "green"); //$("#spnTransfer" + guid).show(); } else if (result.Data == '<%= Define.Get("RecordEquipment_?????").Replace("RecordEquipment_","") %>' || result.Data == '<%= Define.Get("RecordEquipment_????????").Replace("RecordEquipment_","") %>') { $("#spn" + guid).css("color", "blue"); //$("#spnTransfer" + guid).show(); } else if (result.Data == '<%= Define.Get("RecordEquipment_??????").Replace("RecordEquipment_","") %>') { $("#spn" + guid).css("color", "chocolate"); //$("#spnTransfer" + guid).show(); } else if (result.Data == '<%= Define.Get("RecordEquipment_?????").Replace("RecordEquipment_","") %>') { $("#spn" + guid).css("color", "chocolate"); //$("#spnTransfer" + guid).show(); } else if (result.Data == "") { $("#spn" + guid).css("color", ""); //$("#spnTransfer" + guid).hide(); } else { $("#spn" + guid).html(result.data); //??????????????????? //$("#spnTransfer" + guid).hide(); } }); } function SHUTDOWN(key, guid, message) { if (message == null) { if (confirm("????????????") == false) { return; } } $("#spnShutdown" + guid).html("?????..."); $("#spnShutdown" + guid).css("color", ""); RecordEquipmentAjax.SHUTDOWN(key, null, function (result) { $("#spnShutdown" + guid).html(result.Data); if (result.Data == '?????') { $("#spnShutdown" + guid).css("color", "green"); } setTimeout(function () { $("#spnShutdown" + guid).html("???"); $("#spnShutdown" + guid).css("color", ""); }, 5000); }, function () { setTimeout(function (XMLHttpRequest, textStatus, errorThrown) { $("#spnShutdown" + guid).html("???"); $("#spnShutdown" + guid).css("color", ""); }, 5000); }); } function SLEEP(key, guid, message) { if (message == null) { if (confirm("????????????") == false) { return; } } if (confirm("?????????1?????????????????????????????????")) { $("#spnSleep" + guid).html("?????..."); $("#spnSleep" + guid).css("color", ""); RecordEquipmentAjax.SLEEP(key, null, function (result) { $("#spnSleep" + guid).html(result.Data); if (result.Data == '?????') { $("#spnSleep" + guid).css("color", "green"); } setTimeout(function () { $("#spnSleep" + guid).html("???"); $("#spnSleep" + guid).css("color", ""); }, 5000); }, function () { setTimeout(function (XMLHttpRequest, textStatus, errorThrown) { $("#spnSleep" + guid).html("???"); $("#spnSleep" + guid).css("color", ""); }, 5000); }); } } function WAKE_MACHINE(key, guid, message) { if (message == null) { if (confirm("????????????") == false) { return; } } if (confirm("???????????????????????1???????????1????????????????????????????????????????????????????????????")) { $("#spnWake" + guid).html("?????..."); $("#spnWake" + guid).css("color", ""); RecordEquipmentAjax.WAKE_MACHINE(key, null, function (result) { $("#spnWake" + guid).html(result.Data); if (result.Data == '?????') { $("#spnWake" + guid).css("color", "green"); } setTimeout(function () { $("#spnWake" + guid).html("???"); $("#spnWake" + guid).css("color", ""); }, 5000); }, function () { setTimeout(function (XMLHttpRequest, textStatus, errorThrown) { $("#spnWake" + guid).html("???"); $("#spnWake" + guid).css("color", ""); }, 5000); }); } } </script> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de