Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Pub\RecordEquipment\List.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="List.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.RecordEquipment.List" %> <!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")%> </head> <body> <div class="wrap"> <% var nav = new NavigationInstance(this) { }; nav.IsTopNav = true; %> <%= nav.ToHtml() %> <div class="container-fulid"> <div class="row"> <% nav.GetChildMenu(Request["muid"]);%> <%= nav.ToHtml() %> <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 style="margin-top: 5px;"> <form id="frmSearch" action="" onsubmit="return false;"> <%# Define.Get("RecordEquipment_????").HtmlEncode() %>?? <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Alias")%> <%= new HtmlHidden("$Field", "Status")%> <%= new HtmlHidden("$FieldType", (int)Z.Core.NHibernateCore.Search.FieldTypeEnum._int)%> <%= new HtmlHidden("$ExpressionKey", null)%> <%= new HtmlHidden("$QueryType", (int)Z.Core.NHibernateCore.Search.QueryTypeEnum.Eq)%> <%= new HtmlSelect("$FieldValue", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.RecordEquipmentStatusEnum) }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0)%> <%= 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("RecordEquipment_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("RecordEquipment_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")%>--%> <%# Define.Get("RecordEquipment_??????").HtmlEncode() %>?? <%= new HtmlHidden("$LeftParenthesis", (int)Z.Core.NHibernateCore.Search.QueryParenthesisEnum.None)%> <%= new HtmlHidden("$TableAlias", "_Alias")%> <%= 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")%> <%= 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("PageSize", 12)%>--%> <%= new HtmlHidden("Orders", null)%> <%= new HtmlHidden("", null) { ID = "SearchParameter" }%> </form> </div> </div> <div class="btngrp"> <div onclick="GoSearch(this);" class="btn btn-dft btn-dft-gl"> <span> <%= DefineEnum.???.Define() %></span> </div> <div title="" onclick="GoAdvancedSearch(this);" class="btn btn-dft btn-dft-gr"> <span> <%= DefineEnum.??????.Define() %></span> </div> </div> <div class="btngrp btngrp-ext"> <div class="btngrp"> <div class="btn btn-dft btn-dft-gl btn-dft-icon" title="" onclick="GoAdd()"> <span> <%= DefineEnum.????.Define() %><b class="ico ico-add"></b></span> </div> <div class="btn btn-dft btn-dft-gc" title="" onclick="window.location.href='InportExcel.aspx'"> <span> <%= DefineEnum.???.Define() %></span> </div> <div class="btn btn-dft btn-dft-gc" title="" onclick="GoBatchDelete()"> <span> <%= DefineEnum.????.Define() %></span> </div> <div class="btn btn-dft btn-dft-gc" title="" onclick="GoBatchStatus()"> <span>???????</span> </div> <div class="btn btn-dft btn-dft-gc btn-dft-pd" title="" onclick="GoBatchSleep()"> <span>???</span> </div> <div class="btn btn-dft btn-dft-gc btn-dft-pd" title="" onclick="GoBatchWakeMachine()"> <span>???</span> </div> <div class="btn btn-dft btn-dft-gr btn-dft-pd" title="" onclick="GoBatchShutdown()"> <span>???</span> </div> </div> <div title="" onclick="GoColumn()" class="btn btn-dft"> <span> <%= DefineEnum.?????.Define() %></span> </div> </div> </div> <div style="clear: both"> </div> <div class="ln-thin ln-c-mid"> </div> <div id="dvTitleinbox"> <div class="g-title-1"> <div class="fn-fle"> <h2> <%= Title %> </h2> <span class="txt-info"> <%= DefineEnum._???__strong__span_id____pageRecord____span___strong__.Define() %></span> </div> <div class="title-ext"> <a id="pageFirst" hidefocus="true"> <%= DefineEnum.???.Define() %></a> <a id="pagePrev" hidefocus="true"> <%= DefineEnum.?????.Define()%></a> <a id="pageNext" hidefocus="true"> <%= DefineEnum.?????.Define()%></a> <a id="pageLast" hidefocus="true"> <%= DefineEnum.???.Define()%></a> <select id="pageList"> </select> </div> </div> </div> <div class="gIbx-tablayout"> <div class="txt-12 listContainer" id="list" style="overflow-y: hidden; overflow-x: auto; padding-bottom: 10px"> </div> </div> </div> </div> </div> <div style="clear: both"> </div> <div id="divViewDefine" class="gSys-msg-win" style="display: none; right: 10px; top: 45px;"> <div class="fn-bgx bg-main-2 hd" style="cursor: default"> <h4> <%= DefineEnum.????????????????????????.Define() %> </h4> <a title="<%= DefineEnum.???.Define() %>" hidefocus="true" class="fn-bg Aclose" href="#close" onclick="this.parentNode.parentNode.style.display='none';return false;"> <%= DefineEnum.???.Define() %></a> </div> <div class="cont bdr-c-dark"> <div class="gSys-inner-dict"> <form id="frmViewDefine" action=""> <div class="result bdr-c-mid"> <div class="inside"> <%= new HtmlHidden("KEY",KEY) %> <ul id="ulViewDefine"> <% Type t = typeof(AVA.ResourcesPlatform.AdminUI.Pub.RecordEquipment.List1); var list = UserControlDefine.GetListViewDefine(UserCode, t.FullName, AVA.ResourcesPlatform.AdminUI.Pub.RecordEquipment.List1.LISTRPT); foreach (var item in list) { %> <li> <%= new HtmlHidden("Column", item.ColumnName)%> <%= new HtmlCheckBox() { Name = "Sel", Checked = item.Selected, Value=1, UnValue=0, Disabled = item.Require }%> <%= new HtmlHidden() { Name = "Sort", Value=item.SortNumber }%> <%= item.ColumnDescription %> </li> <% } %> </ul> </div> </div> <div class="ft bdr-c-dark bg-cont"> <div class="sup"> </div> <div class="opt"> <div onclick="ViewDefine(this);" class="btn btn-dft btn-dft-impt"> <span> <%= DefineEnum.????.Define() %></span> </div> <div onclick="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.display='none';return false;" class="btn btn-dft"> <span id="txtMsgBoxOk"> <%= DefineEnum.????.Define() %></span> </div> </div> </div> </form> </div> </div> </div> <div style="clear: both"> </div> <div id="divSearch" class="gSys-msg-win search" style="display: none; top: 72px; margin: 0 auto;"> <div id="dvMsgHead" class="fn-bgx bg-main-2 hd"> <h4> <%= DefineEnum.????????.Define() %></h4> <a title="<%= DefineEnum.????.Define() %>" hidefocus="true" class="fn-bg Aclose" id="A1" href="#close" onclick="this.parentNode.parentNode.style.display='none';return false;"> <%= DefineEnum.???.Define() %></a> </div> <div class="cont bdr-c-dark"> <div class="gSys-inner-dict"> <form id="frmAdvancedQuery" action="" onsubmit="return false;"> <div class="result bdr-c-mid"> <div class="inside"> <div> <table style="width: 100%" cellpadding="0px" cellspacing="0px" class="g-table-comm"> <tr class="thead"> <th style="border-left-width: 0px;">??? </th> <th>??? </th> <th>??? </th> <th>???? </th> <th>??? </th> <th>??? </th> <th align="left" style="width: 120px; text-align: left;"> <div title="" onclick="AddQueryParameter(this);" class="btn btn-dft"> <span> <%= DefineEnum.???.Define() %></span> </div> </th> </tr> </table> </div> </div> </div> <div class="ft bdr-c-dark bg-cont"> <div class="sup"> </div> <div class="opt"> <%= new HtmlSubmit("Send", null, "AdvancedSearch(this);") { Class = "hidden" }%> <div title="" onclick="AdvancedSearch(this);" class="btn btn-dft btn-dft-impt"> <span> <%= DefineEnum.????.Define() %></span> </div> <div id="Div2" title="" onclick="this.parentNode.parentNode.parentNode.parentNode.parentNode.parentNode.style.display='none';return false;" class="btn btn-dft"> <span id="Span1"> <%= DefineEnum.????.Define() %></span> </div> </div> </div> </form> </div> </div> </div> </div> </div> </div> </div> </body> </html> <%= Import.Script("js","/JQueryUI/jquery-ui.min.js")%> <%= Import.Script("js", "/YK_Validate/YK_Validate.js")%> <%= Import.Script("js", "/YK_Validate/YK_ValidateRegex.js")%> <%= Import.CSS("js", "/YK_Validate/validator.css")%> <%= Import.Script("js","/FancyBox/jquery.fancybox-1.2.1.js")%> <%= Import.CSS("js", "/FancyBox/jquery.fancybox.css")%> <%= Import.Script("/ToolTip/jquery.tipsy.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/Sys/ManagerViewDefineAjax.js")%> <script type="text/javascript"> //?????? </script> <script type="text/javascript"> function GetAdvancedQueryParams(send) { $("#frmSearch [name='$FieldValue']").val(""); $("#SearchParameter").val(Global.GetFormValue($("#frmAdvancedQuery"))); Search(); } function AddQueryParameter(send) { Global.HtmlControl("/Pub/RecordEquipment/QueryParameterContainer", null, send, function (result) { $(send).parent().parent().after(result.Html); }); } function GetQueryParamter(send) { Global.HtmlControl("/Pub/RecordEquipment/QueryParameter", "Key=" + encodeURIComponent(send.value), send, function (result) { $(send).parent().find("div").html(result.Html); Global.HtmlControl("/QueryTypeContainer", "Key=" + encodeURIComponent($(send).parent().find("div [name='$FieldType']").val()), send, function (resultFieldType) { $(send).parent().parent().find(".queryTypeContainer").html(resultFieldType.Html); }); var dicKey = $(send).find("option:selected").attr("lang"); if (typeof (dicKey) != "undefined" && dicKey != "") { Global.HtmlControl("/Pub/RecordEquipment/QueryParameterDictionary", "Key=" + encodeURIComponent(dicKey), send, function (resultDictionary) { $(send).parent().parent().find(".fieldContainer").html(resultDictionary.Html); }); } else { $(send).parent().parent().find(".fieldContainer").html("<input type=\"text\" name=\"$FieldValue\" />"); } }); } function DeleteQueryParameter(send) { $(send).parent().parent().remove(); } </script> <script type="text/javascript"> //??????AJAX??? //??? function GoSearch(send) { $("#SearchParameter").val(Global.GetFormValue($("#frmSearch"))); Search(send); } function AdvancedSearch(send) { $("#frmSearch [name='$FieldValue']").val(""); $("#SearchParameter").val(Global.GetFormValue($("#frmAdvancedQuery"))); Search(); } function Search(send) { $("#divSearch").hide(); var params = $("#SearchParameter").val(); if (params != null && params != "") { params += "&"; } params += Global.GetFormValue($("#frmQuery")); $("#list").html(Global.LodingHtml); Global.UserControl("/Pub/RecordEquipment/List", params, send, function (result) { $("#list").html(result.Html); YKPage(result.Data); ListInit(); }); }; //??? function Delete(send) { var key = send.getAttribute("key"); RecordEquipmentAjax.Delete(key, send, function () { Search(); }); }; //?????? function BatchDelete(send, key) { RecordEquipmentAjax.BatchDelete(key, null, function () { Search(); }); }; function GoBatchStatus() { $(".spnRecondEquipmentControler").click(); } function GoBatchShutdown() { var items = null; if (typeof (arguments[0]) != "undefined") { items = $("#" + arguments[0] + " .trsel:checked"); } else { items = $("#list .trsel:checked"); } if (items.length > 0) { if (confirm("?????????????????") == true) { for (var i = 0; i <= items.length - 1; i++) { var key = encodeURIComponent(items[i].value); var guid = $(items[i]).parent().prev("td").attr("guid"); SHUTDOWN(key,guid,1); } } } else { alert("???????????????"); } //$(".spnRecondEquipmentControlerShutdown").click(); } function GoBatchSleep() { var items = null; if (typeof (arguments[0]) != "undefined") { items = $("#" + arguments[0] + " .trsel:checked"); } else { items = $("#list .trsel:checked"); } if (items.length > 0) { if (confirm("?????????????????") == true) { for (var i = 0; i <= items.length - 1; i++) { var key = encodeURIComponent(items[i].value); var guid = $(items[i]).parent().prev("td").attr("guid"); SLEEP(key, guid,1); } alert("?????????1???????????????????????"); } } else { alert("???????????????"); } //$(".spnRecondEquipmentControlerShutdown").click(); } function GoBatchWakeMachine() { var items = null; if (typeof (arguments[0]) != "undefined") { items = $("#" + arguments[0] + " .trsel:checked"); } else { items = $("#list .trsel:checked"); } if (items.length > 0) { if (confirm("?????????????????") == true) { for (var i = 0; i <= items.length - 1; i++) { var key = encodeURIComponent(items[i].value); var guid = $(items[i]).parent().prev("td").attr("guid"); WAKE_MACHINE(key, guid,1); } alert("???????????????????????1???????????1?????????????????????????????????????????????????"); } } else { alert("???????????????"); } //$(".spnRecondEquipmentControlerShutdown").click(); } </script> <script type="text/javascript"> //?????? </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); } } }); } </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 { //??????????????????? //$("#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>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de