Edit D:\AVAWeike\AVAWeike\AVA.ResourcesPlatform.AdminUI\Pub\RecordEquipment\EditIFrame.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Edit.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Pub.RecordEquipment.Edit" %> <!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.Script("/jquery.1.9.js")%> <%= Import.Script("js","/JQueryUI/jquery-ui.min.js")%> </head> <body> <div id="divMain" class="gContent"> <div class="gCnta"> <div class="gCnta-cont"> <div class="g-title-2"> <div class="ico-loading right hidden"> </div> <div title="<%= DefineEnum.?????????.Define().ToScriptTag() %>" class="ico-question right"> </div> <h3 class="txt-14"> <%= Title %></h3> <%--<span class="txt-info">[<a href="#" onclick="GoList();return false;"><%= DefineEnum.???.Define() %></a>]</span>--%> </div> <div class="gWel-tab"> <div class="tabs txt-link"> <ul> <li>?????? </li> <% if (true==false) { %> <li>????????? </li> <% } %> </ul> </div> <div class="pans"> <div style="display: none;" class="panel"> <div> <form id="frmRecordEquipment" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <tr> <th title="<%= Define.Get("RecordEquipment_???????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_???????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentDomain_Name_Code", IN(this.ViewData["_RecordEquipment"], this.ViewData["_RecordEquipment.ParentDomain.Name"] + "[" + this.ViewData["_RecordEquipment.ParentDomain.Code"] + "]")) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmRecordEquipment [name=ParentDomain]","Edit");" }%> <%= new HtmlHidden("ParentDomain", this.ViewData["_RecordEquipment.ParentDomain.Guid"])%> <a href="#selectDomain" class="decoration-none" onclick="return SelectDomain('#frmRecordEquipment [name=ParentDomain]','#frmRecordEquipment [name=ParentDomain_Name_Code]')"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a><a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <%= new HtmlYKTip("ParentDomain") %> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Name", this.ViewData["_RecordEquipment.Name"], 256) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("Name") %> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_????????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlSelect("FactoryType", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.RecordEquipmentFactoryTypeEnum) }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_RecordEquipment.FactoryType"])%> <%= new HtmlYKTip("FactoryType") %> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ParentPlaySaveServer_Name", IN(this.ViewData["_RecordEquipment"], this.ViewData["_RecordEquipment.ParentPlaySaveServer.Name"])) { ReadOnly = true, Class = "ipt-t ipt-t-dft", OnBlur = "$.validator.itemValid("#frmRecordEquipment [name=ParentPlaySaveServer]","Edit");" }%> <%= new HtmlHidden("ParentPlaySaveServer", this.ViewData["_RecordEquipment.ParentPlaySaveServer.Guid"])%> <a href="#selectPlaySaveServer" class="decoration-none" onclick="return SelectPlaySaveServer('#frmRecordEquipment [name=ParentPlaySaveServer]','#frmRecordEquipment [name=ParentPlaySaveServer_Name]')"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#clear" class="decoration-none select-clear hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <%= new HtmlYKTip("ParentPlaySaveServer") %> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_??????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????????").HtmlEncode() %>?? </th> <td> <%= new HtmlSelect("ParentAgentServer", "Name", "Guid", "Guid") { Option = CreateInstance.AgentServerDao.GetAll(), DefaultSelectValue= this.ViewData["_RecordEquipment.ParentAgentServer.Guid"] }.InsertOption("::?????::","",0)%> </td> </tr> <%--<tr> <th title="<%= Define.Get("RecordEquipment_??????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("AutoOpenTime", this.ViewData["_RecordEquipment.AutoOpenTime"].ToDateTimeN().ToShortDate()) { Class = "ipt-t ipt-t-dft date time" }%> <%= new HtmlYKTip("AutoOpenTime") %> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_?????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("AutoCloseTime", this.ViewData["_RecordEquipment.AutoCloseTime"].ToDateTimeN().ToShortDate()) { Class = "ipt-t ipt-t-dft date time" }%> <%= new HtmlYKTip("AutoCloseTime") %> </td> </tr>--%> <tr> <th title="<%= Define.Get("RecordEquipment_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlSelect("ProductVersion", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.RecordEquipmentProductVersionEnum), ID="ProductHide" }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_RecordEquipment.ProductVersion"])%> <%= new HtmlYKTip("ProductVersion") %> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_?????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlSelect("EquipmentType", "Value", "Key") { Option = typeof(AVA.ResourcesPlatform.Model.Pub.RecordEquipmentEquipmentTypeEnum) }.InsertOption("::" + DefineEnum.???.Define() + "::", null, 0).SelectValue(this.ViewData["_RecordEquipment.EquipmentType"])%> <%= new HtmlYKTip("EquipmentType") %> </td> </tr> <tr style="display:none;"> <th title="<%= Define.Get("RecordEquipment_?????????????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_?????????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("IsSaveInEquipment", this.ViewData["_RecordEquipment.IsSaveInEquipment"], true, false) { Class = "", DefaultChecked = true}%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_?????????????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_?????????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("IsSaveInAgent", this.ViewData["_RecordEquipment.IsSaveInAgent"], true, false) { Class = "", DefaultChecked = false}%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_IP???").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_IP???").HtmlEncode() %>?? </th> <td> <%= new HtmlText("IPAddress", this.ViewData["_RecordEquipment.IPAddress"], 256) { Class = "ipt-t ipt-t-dft " }%> <div title="" onclick="PingService();" class="btn btn-dft"> <span id="PingServiceIPAddress">??????????????????</span> </div> <%= new HtmlYKTip("IPAddress") %> <script type="text/javascript"> function PingService() { var ip = $("#frmRecordEquipment [name=IPAddress]").val().trim(); if (ip == "" || ip == null) { alert("???????????P"); return; } $.ajax( { cache: false, type: "POST", url: Global.Site + "/Ajax.aspx?AVA.ResourcesPlatform.Ajax.HelperAjax.PingService", data: "ip=" + encodeURIComponent(ip), async: true, dataType: 'json', success: function (result) { $("#PingServiceIPAddress").html("??????????????????"); if (result == "1") { alert("????????????"); } else if (result == "0") { alert("????????????"); } else { alert(result); } }, beforeSend: function () { $("#PingServiceIPAddress").html("??????..."); }, complete: function () { }, error: function (XMLHttpRequest, textStatus, errorThrown) { $("#PingServiceIPAddress").html("??????????????????"); var message = XMLHttpRequest.responseText; Global.Error(message); } }); } </script> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_Web???").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_Web???").HtmlEncode() %>?? </th> <td> <%= new HtmlText("WebPort", this.ViewData["_RecordEquipment.WebPort"], 256) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_???ID").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_???ID").HtmlEncode() %>?? </th> <td> <%= new HtmlText("ProgramID", this.ViewData["_RecordEquipment.ProgramID"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("ProgramID") %> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("RecordPort", this.ViewData["_RecordEquipment.RecordPort"], 256) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_?????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_?????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("LoginName", this.ViewData["_RecordEquipment.LoginName"], 256) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("Password", this.ViewData["_RecordEquipment.Password"], 256) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("LoginNameView", this.ViewData["_RecordEquipment.LoginNameView"], 256) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_?????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("PasswordView", this.ViewData["_RecordEquipment.PasswordView"], 256) { Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_????????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("VideoRetentionDays", this.ViewData["_RecordEquipment.VideoRetentionDays"]) { Class = "ipt-t ipt-t-dft " }%> <%= new HtmlYKTip("VideoRetentionDays") %> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("PushRTMPUrl", this.ViewData["_RecordEquipment.PushRTMPUrl"], 256) { Class = "ipt-t ipt-t-dft width400" }%> *?????????????????????Nginx??????????????????????????????????:rtmp://192.168.2.25/hls/a178 </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlText("PullRTMPUrl", this.ViewData["_RecordEquipment.PullRTMPUrl"], 256) { Class = "ipt-t ipt-t-dft width400 " }%> *????????????????? </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_?????????????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_?????????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("IsSwitchByOrder", this.ViewData["_RecordEquipment.IsSwitchByOrder"], true, false) { Class = "", DefaultChecked = false}%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_?????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_?????????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("IsAgentHD", this.ViewData["_RecordEquipment.IsAgentHD"], true, false) { Class = "", DefaultChecked = false}%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_??????Video1").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????Video1").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("RecordVideo1", this.ViewData["_RecordEquipment.RecordVideo1"], true, false) { Class = ""}%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_??????Video2").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????Video2").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("RecordVideo2", this.ViewData["_RecordEquipment.RecordVideo2"], true, false) { Class = ""}%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_???VGA").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_???VGA").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("RecordVGA", this.ViewData["_RecordEquipment.RecordVGA"], true, false) { Class = ""}%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("AutoRecord", this.ViewData["_RecordEquipment.AutoRecord"], true, false) { Class = ""}%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_??????????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????????????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("UnStopLiveOnRecord", this.ViewData["_RecordEquipment.UnStopLiveOnRecord"], true, false) { Class = ""}%> </td> </tr> <tr class="thirdHide"> <th title="<%= Define.Get("RecordEquipment_??????Video1").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????Video1").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("RecordVideo1", this.ViewData["_RecordEquipment.RecordVideo1"], true, false) { Class = ""}%> ????????????P??????! </td> </tr> <tr class="thirdHide"> <th title="<%= Define.Get("RecordEquipment_??????Video2").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????Video2").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("RecordVideo2", this.ViewData["_RecordEquipment.RecordVideo2"], true, false) { Class = ""}%> ????????????P??????! </td> </tr> <tr class="thirdHide"> <th title="<%= Define.Get("RecordEquipment_???VGA").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_???VGA").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("RecordVGA", this.ViewData["_RecordEquipment.RecordVGA"], true, false) { Class = ""}%> ????????????P??????! </td> </tr> <tr class="thirdHide"> <th>?????????????? </th> <td> <%= new HtmlCheckBox("ASHas", this.ViewData["_RecordEquipment.ASHas"], true, false) { Class = "", ID="toggleHidden"}%> ????????????P??????! <script> $(function () { $(".hidy").hide(); $(".thirdHide").hide(); $("#toggleHidden").click(function (e) { if ($("#toggleHidden").attr("checked") == "checked") { $(".hidy").show(); } else { $(".hidy").hide(); } }); $("#ProductHide").change(function () { if ($("#ProductHide").val() == 2) { $(".thirdHide").show(); } else { $(".thirdHide").hide(); $(".hidy").hide(); } }) //??????????2????????? if ($("#ProductHide").val() == 2) { $(".thirdHide").show(); } else { $(".thirdHide").hide(); } if ($("#toggleHidden").attr("checked") == "checked") { $(".hidy").show(); } else { $(".hidy").hide(); } }); </script> </td> </tr> <tr class="hidy"> <th>?????? </th> <td> <%= new HtmlText("AVAAgentPort", this.ViewData["_RecordEquipment.AVAAgentPort"]) { DefaultValue="640", Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr class="hidy"> <th>?????? </th> <td> <%= new HtmlText("MMSAgentPort", this.ViewData["_RecordEquipment.MMSAgentPort"]) { DefaultValue="480", Class = "ipt-t ipt-t-dft " }%> </td> </tr> <tr class="hidy"> <th>????????? </th> <td> <%= new HtmlText("AVAMaxClientNum", this.ViewData["_RecordEquipment.AVAMaxClientNum"]) { DefaultValue="500000", Class = "ipt-t ipt-t-dft " }%> ???????? = ???K * 1000???512K???=512*1024= 512000???2M???=2048*1000= 2048000?? </td> </tr> <tr class="hidy"> <th>???????? </th> <td> <%= new HtmlText("MMSMaxClientNum", this.ViewData["_RecordEquipment.MMSMaxClientNum"]) { DefaultValue="25", Class = "ipt-t ipt-t-dft " }%> ?????????????????????????????30?????????? </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_??????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????").HtmlEncode() %>?? </th> <td> <%= new HtmlHidden("OnLiveCover", ViewData["_RecordEquipment.OnLiveCover"])%> <%= new HtmlImg(SettingGroup.NonePic) { Class = "default-image"}%> <br /> <a href="#deleteOnLiveCover" class="delete-image decoration-none hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#uploadOnLiveCover" class="decoration-none" onclick="return UploadFile('#frmRecordEquipment [name=OnLiveCover]','<%= Define.Get("RecordEquipment_OnLiveCover_???????????????")%>','0','<%= SettingGroup.RecordEquipmentUploadPath %>','','400','260')"><span class="txt-info">[<%= DefineEnum.??????.Define() %>]</span></a> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlHidden("OffLiveCover", ViewData["_RecordEquipment.OffLiveCover"])%> <%= new HtmlImg(SettingGroup.NonePic) { Class = "default-image"}%> <br /> <a href="#deleteOffLiveCover" class="delete-image decoration-none hidden"><span class="txt-info">[<%= DefineEnum.???.Define() %>]</span></a> <a href="#uploadOffLiveCover" class="decoration-none" onclick="return UploadFile('#frmRecordEquipment [name=OffLiveCover]','<%= Define.Get("RecordEquipment_OffLiveCover_?????????????????")%>','0','<%= SettingGroup.RecordEquipmentUploadPath %>','','400','260')"><span class="txt-info">[<%= DefineEnum.??????.Define() %>]</span></a> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_IP???").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_IP???").HtmlEncode() %>?? </th> <td class="" title="<%= Define.Get("RecordEquipment_IPRoute_IP????????????????????IP??????????????").ToScriptTag()%>"> <%= new HtmlTextArea("IPRoute", this.ViewData["_RecordEquipment.IPRoute"], 512) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_???").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_???").HtmlEncode() %>?? </th> <td> <%= new HtmlTextArea("Description", this.ViewData["_RecordEquipment.Description"], 2000) { Class = "ipt-t ipt-t-dft width400 height100"}%> </td> </tr> <tr> <th title="<%= Define.Get("RecordEquipment_?????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_?????")%>?? </th> <td class="" title="<%= Define.Get("RecordEquipment_SortNumber_????????????????????????").ToScriptTag()%>"> <%= new HtmlText("SortNumber", this.ViewData["_RecordEquipment.SortNumber"], 4) { Class = "ipt-t ipt-t-dft ", DefaultValue = 0 }%> <%= new HtmlYKTip("SortNumber") %> </td> </tr> </table> </div> <div style="margin-top: -1px;" class="ln-thin ln-c-mid"> </div> <table class="g-table-cntacomm"> <tr> <th title="<%= Define.Get("RecordEquipment_????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_????")%>?? </th> <td class="" title="<%= Define.Get("RecordEquipment_Status_????????????").ToScriptTag()%>"> <%= new HtmlCheckBox("Status", this.ViewData["_RecordEquipment.Status"], 1, 0) { DefaultChecked = 0 }%> </td> </tr> <tr> <th></th> <td> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("Send", "Edit", GetSubmitMothed(this.ViewData["_RecordEquipment"])) { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span> <%= GetSubmitText(this.ViewData["_RecordEquipment"])%></span> </div> <%-- <div title="" onclick="GoList();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define() %></span> </div>--%> </td> </tr> </table> </form> </div> </div> <div style="display: none;" class="panel"> <div> <form id="frmRecordEquipmentAgentServer" action="" onsubmit="return false;"> <div> <table class="g-table-cntacomm"> <tr> <th title="<%= Define.Get("RecordEquipment_????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_????????").HtmlEncode() %>?? </th> <td> <%= new HtmlCheckBox("ASHas", this.ViewData["_RecordEquipment.ASHas"], true, false) { Class = "", OnChange="SwitchASHas();"}%> </td> </tr> <tr class="ASHas" title=""> <th title="<%= Define.Get("RecordEquipment_??????????").ToScriptTag() %>"> <%= Define.Get("RecordEquipment_??????????").HtmlEncode() %>?? </th> <td> <%= new HtmlSelect("ParentAgentServer", "Name", "Guid", "Guid") { Option = CreateInstance.AgentServerDao.GetAll(), OnChange="SelectASData();", DefaultSelectValue= this.ViewData["_RecordEquipment.ParentAgentServer.Guid"] }.AddOption("::?????::","")%> <%= new HtmlHidden("ASAgentID", this.ViewData["_RecordEquipment.ASAgentID"]) %> </td> </tr> </table> <div id="divAgentServerConfigs" style="display: none;"> ????????? </div> </div> <div style="margin-top: -1px;" class="ln-thin ln-c-mid"> </div> <table class="g-table-cntacomm"> <tr> <th></th> <td> <%= new HtmlHidden("KEY", KEY)%> <%= new HtmlSubmit("Send", "Edit", "UpdateAS(this)") { Class = "hidden" }%> <div onclick="$(this).siblings(':submit')[0].click();" class="btn btn-dft btn-dft-impt"> <span>?????? </span> </div> <div title="" onclick="GoList();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define() %></span> </div> </td> </tr> </table> </form> </div> </div> </div> </div> </div> </div> </div> </body> <%= Import.Script("js", "/XhEditor/xheditor-zh-cn.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")%> <script type="text/javascript"> //?????? //?????? $.validator.initConfig({ validatorGroup: "Edit", form: "#frmRecordEquipment" }); //????? $("#frmRecordEquipment [name=SortNumber]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "num1" }, message: { required: "<%= Define.Get("RecordEquipment_SortNumber_???????????").ToScriptChar() %>", regex: "<%= Define.Get("RecordEquipment_SortNumber_???????????").ToScriptChar() %>" } }); //??????? $("#frmRecordEquipment [name=ParentDomain]").formValidator({ targetFocus: "#frmRecordEquipment [name=ParentDomain_Name_Code]", validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("RecordEquipment_DomainGuid_????????????").ToScriptChar() %>" } }); //?????? $("#frmRecordEquipment [name=Name]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("RecordEquipment_Name_???????????").ToScriptChar() %>" } }); //?????? $("#frmRecordEquipment [name=ProductVersion]").formValidator({ validatorGroup: "Edit", rules: { required: null }, message: { required: "<%= Define.Get("RecordEquipment_ProductVersion_???????????").ToScriptChar() %>" } }); //???ID $("#frmRecordEquipment [name=ProgramID]").formValidator({ validatorGroup: "Edit", rules: { required: null, regex: "num1" }, message: { required: "<%= Define.Get("RecordEquipment_ProgramID_???ID??????").ToScriptChar() %>", regex: "<%= Define.Get("RecordEquipment_ProgramID_???ID??????").ToScriptChar() %>" } }); //???????????? $("#frmRecordEquipment [name=VideoRetentionDays]").formValidator({ validatorGroup: "Edit", rules: { regex: "num1" }, message: { regex: "<%= Define.Get("RecordEquipment_VideoRetentionDays_??????????????????").ToScriptChar() %>" } }); </script> <script type="text/javascript"> //??????AJAX??? //??? function Insert(send) { RecordEquipmentAjax.Insert($("#frmRecordEquipment"), send, function (json) { document.getElementById("frmRecordEquipment").KEY.value = json.Key alert("<%= DefineEnum.??????.Define().ToScriptChar() %>,?????????????????????????????????????"); window.location.href = "Edit.aspx?Guid=" + json.Data; }); }; //??? function Update(send) { RecordEquipmentAjax.Update($("#frmRecordEquipment"), send, function (json) { document.getElementById("frmRecordEquipment").KEY.value = json.Key alert("<%= DefineEnum.??????.Define().ToScriptChar() %>"); parent.window.location.href = parent.window.location.href; //GoList(); }); }; //??? function Delete(send) { var key = document.getElementById("frmRecordEquipment").KEY.value; RecordEquipmentAjax.Delete(key, send, function (json) { GoList(); }); }; </script> <script type="text/javascript"> //?????? //??????????? //???????? $("#frmRecordEquipment [name=OffLiveCover]").siblings("img").attr("src", Global.Site + "<%= SettingGroup.RecordEquipmentUploadPath %>" + $("#frmRecordEquipment [name=OffLiveCover]").val()); //??????? $("#frmRecordEquipment [name=OnLiveCover]").siblings("img").attr("src", Global.Site + "<%= SettingGroup.RecordEquipmentUploadPath %>" + $("#frmRecordEquipment [name=OnLiveCover]").val()); //??????????? </script> <script type="text/javascript"> //?????? function SwitchASHas() { if ($("#frmRecordEquipmentAgentServer [Name=ASHas]").attr("checked") == true) { $(".ASHas").show(); var parentAgentServer = $("#frmRecordEquipmentAgentServer [Name=ParentAgentServer]").val(); var asAgentID = $("#frmRecordEquipmentAgentServer [Name=ASAgentID]").val(); if (parentAgentServer != "" && asAgentID != "") { //??????????? SelectASData(); } } else { $(".ASHas").hide(); $("#frmRecordEquipmentAgentServer [Name=ParentAgentServer]").val(""); $("#frmRecordEquipmentAgentServer [Name=ASAgentID]").val(""); $("#divAgentServerConfigs").html(""); } } SwitchASHas(); function SelectASData() { if ($("#frmRecordEquipmentAgentServer [Name=ASHas]").attr("checked") == true) { var parentAgentServer = $("#frmRecordEquipmentAgentServer [Name=ParentAgentServer]").val(); var asAgentID = $("#frmRecordEquipmentAgentServer [Name=ASAgentID]").val(); if (parentAgentServer != "") { Global.HtmlControl( "Pub/RecordEquipment/AgentServerConfigs", "Guid=" + parentAgentServer + "&AgentID=" + asAgentID, null, function (result) { $("#divAgentServerConfigs").html(result.Html); $("#divAgentServerConfigs").show(); }, null, null); } else { $("#divAgentServerConfigs").html(""); $("#divAgentServerConfigs").hide(); } } } function ChangeASAgent(asAgentID) { $("#frmRecordEquipmentAgentServer [Name=ASAgentID]").val(asAgentID); SelectASData(); } //??? function UpdateAS(send) { RecordEquipmentAjax.UpdateAS($("#frmRecordEquipmentAgentServer"), send, function (json) { document.getElementById("frmRecordEquipmentAgentServer").KEY.value = json.Key alert("?????????"); GoList(); }); }; </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de