<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Model_Manage.aspx.cs" Inherits="TopWinCMS.WebUI.Admin.Model.Model_Manage" %>

<%@ Register Assembly="TopWinCMS.WebControls" Namespace="TopWinCMS.WebControls" TagPrefix="cc1" %>
<!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 runat="server">
    <title>模型数据库表</title>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type" />
    <meta content="no-cache" http-equiv="Pragma" />

    <script language="javascript" type="text/javascript" src="../TopWin.js"></script>

    <link href="../Style.css" rel="stylesheet" type="text/css" />

    <script language="javascript" src="../../Images/skysoft.js" type="text/javascript"></script>

</head>
<body>
    <form id="form1" runat="server">
    <asp:ScriptManager ID="ScriptManager1" runat="server">
    </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server">
    <ContentTemplate>
    <table id="NavigationPath" border="0" cellpadding="4" cellspacing="0" width="100%">
        <tr>
            <td width="50%">
                &nbsp;<img src='../../Images/arrow.gif' alt="" />&nbsp;&nbsp;模型管理&nbsp;&nbsp;→&nbsp;&nbsp;模型数据库表
            </td>
            <td width="50%">
            </td>
        </tr>
    </table>
    <asp:GridView ID="GV_List" runat="server" AutoGenerateColumns="False" 
        DataKeyNames="ID" onrowdatabound="GV_List_RowDataBound" 
            onrowdeleting="GV_List_RowDeleting" onrowcommand="GV_List_RowCommand">
        <Columns>
            <asp:TemplateField HeaderText="选择" Visible="false">
                <ItemStyle Width="30px" HorizontalAlign="Center" />
                <ItemTemplate>
                    <asp:CheckBox ID="CB_SelectID" runat="server" />
                </ItemTemplate>
            </asp:TemplateField>
            <asp:BoundField DataField="ID" HeaderText="ID" Visible="false">
                <HeaderStyle HorizontalAlign="Center" Width="40px" />
                <ItemStyle HorizontalAlign="Center" Width="40px" />
            </asp:BoundField>
            
            <asp:HyperLinkField DataNavigateUrlFields="ID" DataTextField="ModelName" DataNavigateUrlFormatString="Model/Model_Add.aspx?Action=Edit&ID={0}" HeaderText="模型别名">
                <HeaderStyle Width="120px" />
               
            </asp:HyperLinkField>
            
            <asp:BoundField DataField="DataTable" HeaderText="数据库表">
                <HeaderStyle Width="120px" />
            </asp:BoundField>
                  <asp:BoundField DataField="HtmlSavePath" HeaderText="存放目录">
                <HeaderStyle HorizontalAlign="Center" Width="60px" />
              
            </asp:BoundField>      
            
            <asp:BoundField DataField="ContentName" HeaderText="内容名称">
                <HeaderStyle HorizontalAlign="Center" Width="60px" />
                <ItemStyle HorizontalAlign="Center"  />
            </asp:BoundField>
            <asp:BoundField DataField="ContentUnit" HeaderText="内容单位">
                <HeaderStyle HorizontalAlign="Center" Width="60px" />
                <ItemStyle HorizontalAlign="Center"  />
            </asp:BoundField>
            <asp:ButtonField HeaderText="生成静态" DataTextField="EnableStatic" 
                CommandName="StaticChange">
            <HeaderStyle HorizontalAlign="Center" Width="80px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:ButtonField>
            
            <asp:BoundField DataField="Remark" HeaderText="备注"></asp:BoundField>
            
            
            <asp:HyperLinkField DataNavigateUrlFields="ID" 
                DataNavigateUrlFormatString="Model_Add.aspx?Action=Edit&amp;ID={0}" 
                HeaderText="修改" Text="修改">
                <HeaderStyle Width="40px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:HyperLinkField>
            
            
            <asp:CommandField HeaderText="删除" ShowDeleteButton="True">
                <HeaderStyle Width="40px" />
                <ItemStyle HorizontalAlign="Center" />
            </asp:CommandField>
            
            
        </Columns>
        <HeaderStyle CssClass="HeaderStyle" />
    </asp:GridView>
    <div class="pagefield">
        <cc1:PageNavigation ID="PageNavigation1" runat="server" OnPageChanging="PageNavigation1_PageChanging">
        </cc1:PageNavigation>
    </div></ContentTemplate>
    </asp:UpdatePanel>
    </form>
</body>
</html>
