<%@ Page Title="表单模板管理" StylesheetTheme="AdminSkin" Language="C#" MasterPageFile="~/Others/AdminMasterPage.Master" AutoEventWireup="true" CodeBehind="FormTemplateManage.aspx.cs" Inherits="Solution.Admin.Contents.FormTemplateManage" %>

<%@ Register Assembly="BX.Common" Namespace="Common" TagPrefix="bx" %>
<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="ObjectDataSource" runat="server"
            SelectMethod="ListTemplate" TypeName="Logic.HtmlForm"
            OldValuesParameterFormatString="original_{0}"></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">
                    <bx:ExtendedGridView ID="ExtendedGridViewFieldList" runat="server" AutoGenerateColumns="False" CheckBox="False" CssClass="grid" DataSourceID="ObjectDataSource" ItemName="表单模板管理" AllowPaging="True" CheckBoxDataIndex="0">
                        <Columns>
                            <asp:BoundField DataField="TemplateID" HeaderText="ID" SortExpression="TemplateID">
                                <ItemStyle Width="50px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="AliasName" HeaderText="模板别名">
                                <ItemStyle Width="100px" />
                            </asp:BoundField>
                            <asp:BoundField DataField="TemplateName" HeaderText="模板名" />
                            <asp:BoundField DataField="CreateDate" HeaderText="创建时间">
                                <ItemStyle Width="100px" Wrap="False" HorizontalAlign="Left" />
                            </asp:BoundField>
                            <asp:BoundField DataField="Remark" HeaderText="备注">
                                <ItemStyle Width="100px" Wrap="False" />
                            </asp:BoundField>
                            <asp:TemplateField HeaderText="操作">
                                <ItemStyle Width="100px" Wrap="False" />
                                <ItemTemplate>
                                    <a href="FieldManage.aspx?templateid=<%#Eval("TemplateID") %>">管理字段</a>&nbsp;
                                <a href="FormTemplateEdit.aspx?cmd=modify&id=<%#Eval("TemplateID") %>">修改</a>
                                    &nbsp;<a href="FormTemplateManage.aspx?cmd=delete&templateid=<%#Eval("TemplateID") %>" onclick="return confirm('将同时删除数据表,确定删除?')">删除</a>

                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                    </bx:ExtendedGridView>
                </div>
                <br />
            </div>

            <div class="FormButtonArea">

                <asp:Button ID="btnAddField" runat="server" Text="添加模板" OnClientClick="window.location.href='FormTemplateEdit.aspx';return false;" />&nbsp;&nbsp;
                        &nbsp;&nbsp;
            </div>
        </div>
    </form>
</asp:Content>
