<%@ Page Language="C#" AutoEventWireup="true" Inherits="PowerEasy.Module.General.WebSite.Admin.CommonModel.ModelPreView" ValidateRequest="false"
    MasterPageFile="~/Admin/MasterPage.master" Title="模型预览" EnableEventValidation="false" Debug="true" CodeBehind="ModelPreView.aspx.cs" %>

<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">
    <asp:ScriptManager runat="server" ID="SmgeProperties" EnablePartialRendering="true">
    </asp:ScriptManager>
    <table style="width: 100%; margin: 0 auto;" cellpadding="2" cellspacing="1" class="border">
        <tr align="center">
            <td class="spacingtitle" colspan="2">
                <asp:Label ID="LblTitle" runat="server" Text="模型预览" Font-Bold="True"></asp:Label>
            </td>
        </tr>
        <asp:Repeater ID="RepModel" runat="server" OnItemDataBound="RepModel_OnItemDataBound">
            <ItemTemplate>
                <td class='tdbgleft' align='right' style="width: 20%;">
                    <div class="DivWordBreak">
                        <strong>
                            <%# Eval("FieldAlias")%>
                            ：&nbsp;</strong><br />
                        <%# Eval("Tips") %>
                    </div>
                </td>
                <td class='tdbg' align='left'>
                    <pe:AdminFieldControl ID="Field" runat="server" EnableNull='<%# (bool)Eval("EnableNull") %>'
                        FieldAlias='<%# Eval("FieldAlias")%>' Tips='<%# Eval("Tips") %>' FieldName='<%#Eval("FieldName")%>'
                        ControlType='<%# Eval("FieldType") %>' FieldLevel='<%# Eval("FieldLevel") %>'
                        Description='<%# Eval("Description")%>' Settings='<%# ((PowerEasy.Module.General.Model.CommonModel.FieldInfo)Container.DataItem).Settings %>'
                        Value='<%# Eval("DefaultValue") %>'>
                    </pe:AdminFieldControl>
                </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        <tr class="tdbg">
            <td colspan="2" align="center">
                <asp:Button ID="BtnBack" runat="server" CausesValidation="false" Text="返回字段列表" OnClick="BtnBack_Click" />
            </td>
        </tr>
    </table>
</asp:Content>
