Edit D:\AVA\AVAStandard\AVA.ResourcesPlatform.AdminUI\Sys\Security\SecurityGroupActionList.aspx
??<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SecurityGroupActionList.aspx.cs" Inherits="AVA.ResourcesPlatform.AdminUI.Sys.Security.SecurityGroupActionList" %> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head id="Head1" runat="server"> <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"> <form id="frmMain" action=""> <%= new HtmlHidden("KEY",KEY) %> <div id="divMain" class="gContent"> <div class="gIbx"> <div class="gCnta-cont"> <div class="g-title-2"> <h3 class="txt-14"> <%= Title %></h3> <span class="txt-info">[<%= this.ViewData["model.Name"]%>]</span> <span class="txt-info">[<a href="SecurityGroupList.aspx"><%= DefineEnum.???.Define() %></a>]</span> </div> <div class="mrgt5"> </div> <div class="txt-12 listContainer" id="list"> <table cellspacing="0" cellpadding="2" class="g-table-comm"> <tbody> <tr class="thead"> <th class="wd0"> </th> <th> <label> <%= new HtmlCheckBox() { Class = "chkSelAll", Title = DefineEnum.??????????????????.Define(), Lang = ".listContainer .trsel" }%> <%= DefineEnum.??????????????????.Define() %> </label> </th> </tr> <% foreach (var table in this._Tables) { List<AVA.ResourcesPlatform.Model.Sys.SecurityGroupAction> groupActions = CreateInstance.SecurityGroupActionDao.Where(l => l.ParentSecurityGroup.Guid == PrimaryKey) .ToList(); string className = table.Value; Type type = this._Asm.GetType(className); //??????????????? System.Reflection.MethodInfo[] ms = type.GetMethods(System.Reflection.BindingFlags.Public | System.Reflection.BindingFlags.Instance | System.Reflection.BindingFlags.DeclaredOnly); var methods = ms.Select(m => new { Method = m, Atribute = m.GetCustomAttributes(typeof(Z.Core.Tools.AjaxMethodAttribute), true) as Z.Core.Tools.AjaxMethodAttribute[] }) .Where(mp => mp.Atribute != null && mp.Atribute.Length > 0 && mp.Atribute[0].Target == null) .Select(mp => new { Description = Define.Get(mp.Atribute[0].Description), Name = className + "." + mp.Method.Name, Checked = groupActions .Count(a => a.Action == className + "." + mp.Method.Name) > 0 ? true : false }) .ToList();//????????????????????????????,?????????????????????????? %> <tr class="trout"> <td title="" class="wd0 summary"> </td> <td> <label> <%= Define.Get(table.Key) %></label> </td> </tr> <% for (var i = 0; i <= methods.Count - 1; i++) { var method = methods[i]; if (i == 0) { %> <tr class="trout"> <td> </td> <td> <% } %> <%= new HtmlCheckBox("action", method.Name, "") { Checked = method.Checked, Class = "trsel" }%> <label> <%= method.Description %></label> <% if (i == methods.Count - 1) { %> </td> </tr> <% } %> <% } %> <% } %> <asp:Repeater ID="rptSelAction" runat="server" OnItemDataBound="rptList_ItemDataBound"> <ItemTemplate> <asp:Literal ID="lblValue" runat="server" Visible="false" Text='<%# Eval("Value") %>'></asp:Literal> <tr class="trout"> <td title="" class="wd0 summary"> </td> <td> <label> <%# Eval("Key") %></label> </td> </tr> <asp:Repeater ID="rptSub" runat="server"> <HeaderTemplate> </HeaderTemplate> <ItemTemplate> </ItemTemplate> <FooterTemplate> </td> </tr> </FooterTemplate> </asp:Repeater> </ItemTemplate> </asp:Repeater> </tbody> </table> </div> <table class="g-table-cntacomm"> <tr> <th> </th> <td> <div onclick="SetAction(this);" class="btn btn-dft btn-dft-impt"> <span> <%= DefineEnum.????.Define() %></span></div> <div onclick="GoReturn();" class="btn btn-dft"> <span> <%= DefineEnum.????.Define() %></span></div> </td> </tr> </table> </div> </div> </div> </form> </div></div></div></div></body> <%= 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/UserAjax.js")%> <%= Import.Script("js", "/Ajax/Sys/SecurityGroupActionAjax.js")%> <script type="text/javascript"> ListInit(); </script> <script type="text/javascript"> //????????????????? function SetAction(send) { SecurityGroupActionAjax.SetAction($("#frmMain"), send, function () { alert("<%=DefineEnum.??????.Define().ToScriptChar() %>"); GoReturn(); }); } </script> <script type="text/javascript"> $(function () { //????????? $(".chkSelAll").click(function () { var objCheck = $(this); $(".trsel").each(function () { $(this).attr("checked", objCheck.attr("checked")); }); }); }); </script> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de