<%@ Page Title="表单验证规则管理" StylesheetTheme="AdminSkin" Language="C#" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="FormVerificationManage.aspx.cs" Inherits="Solution.Admin.Contents.FormVerificationManage" %>
<%@ Register Assembly="BX.Common" Namespace="Common" TagPrefix="cc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="AdminContentHead" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminContentCenter" runat="server">
    <form id="Form1" runat="server">
        <asp:ObjectDataSource ID="ObjectDataSourceList" runat="server" EnablePaging="true"
            SelectMethod="ListFormVerification" SelectCountMethod="CountFormVerification" DeleteMethod="DeleteFormVerification" TypeName="Logic.HtmlForm">
            <DeleteParameters>
                <asp:Parameter Type="Int32" Name="verificationId" />
            </DeleteParameters>
        </asp:ObjectDataSource>
        <div class="DivRightCenter">
            <div class="listdiv">
                <div class="grid-title">
                    <div class="grid-title-text">
                        <h4>
                            <span>表单验证规则管理</span>
                        </h4>
                    </div>
                    <div class="grid-title-menu"></div>
                </div>
                <div class="grid-list">
                    <cc1:ExtendedGridView ID="ExtendedGridViewList" runat="server" DataKeyNames="VerificationID" AutoGenerateColumns="False" CheckBox="False" CssClass="grid" DataSourceID="ObjectDataSourceList" ItemName="表单验证规则管理" AllowPaging="True" CheckBoxDataIndex="0">
                        <Columns>
                            <asp:BoundField DataField="VerificationID" HeaderText="ID">
                                <ItemStyle Width="50px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Name" HeaderText="名称">
                                <ItemStyle Width="100px" Wrap="False" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Rule" HeaderText="规则" />
                            <asp:TemplateField HeaderText="操作">
                                <ItemStyle Width="100px" Wrap="False" />
                                <ItemTemplate>
                                    <a href="FormVerificationEdit.aspx?cmd=modify&verificationid=<%#Eval("VerificationID") %>">修改</a>
                                    &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CommandName="Delete" OnClientClick='javascript:return confirm("确定删除？")' Text="删除" CausesValidation="false"></asp:LinkButton>

                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </cc1:ExtendedGridView>
                </div>
            </div>
            <div class="FormButtonArea">
                <asp:Button ID="btn" runat="server" Text="添加验证规则" OnClientClick="document.location.href='FormVerificationEdit.aspx';return false;" />&nbsp;&nbsp;
                        &nbsp;&nbsp;             
            </div>
        </div>
    </form>
</asp:Content>
