<%@ Page Language="C#" AutoEventWireup="true" Inherits="PowerEasy.Module.General.WebSite.Admin.Template.CreateModelTemplateManagess"
    MasterPageFile="~/Admin/MasterPage.master" Title="生成前台模板" CodeBehind="ModelTemplateCreate.aspx.cs"
    ValidateRequest="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="CphNavigation" runat="Server">
    <pe:ExtendedSiteMapPath ID="SmpNavigator" SiteMapProvider="AdminMapProvider" runat="server" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="CphContent" runat="Server">
    <table style="width: 100%; margin: 0 auto;" cellpadding="2" cellspacing="1" class="border">
        <tr align="center">
            <td colspan="5" class="spacingtitle">
                生成模型模板
            </td>
        </tr>
        <tr>
            <td class="tdbgleft" style="width: 20%" valign="top">
                <table>
                    <tr>
                        <td>
                            <span style="color: Red">提示：</span>可以按住“Shift”或“Ctrl”<br />
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;键进行多个模型的选择！
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <asp:ListBox ID="LstModels" runat="server" DataTextField="ModelName" DataValueField="ModelName"
                                SelectionMode="Multiple" Height="282px" Width="198px"></asp:ListBox>
                        </td>
                    </tr>
                    <tr>
                        <td align="center">
                            <input id="BtnSelectAll" onclick="SelectAll()" type="button" class="inputbutton"
                                value="  选定所有模型  " />
                            <input id="BtnCancelAll" onclick="UnSelectAll()" type="button" class="inputbutton"
                                value="取消选定所有模型" />
                        </td>
                    </tr>
                </table>
            </td>
            <td class="tdbgleft" style="width: 80%" valign="top">
                <pe:ExtendedGridView ID="EgvFiles" runat="server" SerialText="" AutoGenerateColumns="False" ColumnResizeable="false"
                    AutoGenerateCheckBoxColumn="True" DataKeyNames="Name" CheckBoxFieldHeaderWidth="3%">
                    <Columns>
                        <pe:TemplateField HeaderText="名称">
                            <ItemStyle HorizontalAlign="Left" />
                            <ItemTemplate>
                                <%# Eval("Name") %>
                            </ItemTemplate>
                        </pe:TemplateField>
                        <pe:BoundField DataField="lastWriteTime" HeaderText="最后修改时间" SortExpression="lastWriteTime"
                            DataFormatString="{0:yyyy-MM-dd HH:mm:ss}" HtmlEncode="False">
                            <HeaderStyle Width="120px" />
                        </pe:BoundField>
                    </Columns>
                </pe:ExtendedGridView>
                <table border="0" cellpadding="2" width="100%" cellspacing="0">
                    <tr>
                        <td align="center">
                            <pe:AspNetPager ID="Pager" runat="server" PageSize="12" OnPageChanged="Pager_PageChanged">
                            </pe:AspNetPager>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    <br />
    <center>
        <asp:Button ID="TBtnBacthCreate" Text="生成选定模型模板" OnClientClick="return confirm('是否生选中项？生成的模板将会覆盖原来生成过的模板！');"
            OnClick="TBtnBacthCreate_Click" runat="server" />
        <asp:Button ID="LBtnBacthCreate" runat="server" Text="生成选定模型内容页标签" OnClientClick="return confirm('是否生成选中项？生成的标签将会覆盖原来生成过的标签！');"
            OnClick="LBtnBacthCreate_Click" /></center>
    <br />
</asp:Content>
