<%@ page language="C#" autoeventwireup="true" inherits="ProduceAdmin_ProduceUserDefinedColumn_List, GroupTGWeb_deploy" %>

<%@ Register Src="UserControl/MessageShow.ascx" TagName="MessageShow" TagPrefix="China315" %>
<%@ Register Assembly="GroupFly.Control" Namespace="GroupFly.Control" 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>
    <link rel="stylesheet" type="text/css" href="style/index.css" />

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

</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <div class="table1">
            <div class="title">
                <asp:Label ID="LabelTitle" runat="server" Text="自定义栏目列表"></asp:Label>
            </div>
            <div class="query">
                <table cellspacing="1" cellpadding="0" width="100%">
                    <tr>
                        <td align="right">
                            <asp:Localize ID="LocalizeName" runat="server" Text="栏目名称："></asp:Localize>
                        </td>
                        <td>
                            <asp:TextBox ID="TextBoxName" CssClass="allinput1" runat="server"></asp:TextBox>
                        </td>
                        <td>
                            <asp:Button ID="ButtonSearch" runat="server" Text="查询" CssClass="bnt1 cancel" />
                        </td>
                    </tr>
                </table> </div>
                <cc1:GroupFlyGridView ID="GroupFlyGridViewShow" runat="server" AddSequenceColumn="False"
                    AllowMultiColumnSorting="False" AutoGenerateColumns="False" BorderColor="#CCDDEF"
                    BorderStyle="Solid" BorderWidth="0px" CellPadding="0" Del="False" DeletePromptText="确实要删除指定的记录吗？"
                    Edit="False" FixHeader="False" GridViewSortDirection="Ascending" CellSpacing="1"
                    GridLines="None" PagingStyle="None" TableName="" Width="100%" AlternatingRowStyle-HorizontalAlign="Center"
                    AllowSorting="True" DataSourceID="ObjectDataSourceDate" RowStyle-HorizontalAlign="Center"
                    Style="margin-left: 0px;">
                    <HeaderStyle BackColor="#6699CC" Font-Bold="True" ForeColor="#FFFFFF"></HeaderStyle>
                    <PagerStyle BackColor="#EEEEEE" ForeColor="#6699CC"></PagerStyle>
                    <AlternatingRowStyle HorizontalAlign="Center"></AlternatingRowStyle>
                    <Columns>
                        <asp:TemplateField>
                            <HeaderTemplate>
                                <input id="checkboxAll" onclick="javascript:SelectAllCheckboxes(this);" type="checkbox" />
                            </HeaderTemplate>
                            <ItemTemplate>
                                <input id="checkboxItem" value='<%# Eval("Guid") %>' type="checkbox" />
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Name" HeaderText="栏目名称"></asp:BoundField>
                        <asp:BoundField DataField="LinkAddress" HeaderText="链接地址"></asp:BoundField>
                        <asp:TemplateField HeaderText="显示位置">
                            <ItemTemplate>
                                <asp:Label ID="Label2" runat="server" Text='<%# ShowLocation(Eval("ShowLocation")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="是否在新窗口打开">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# IF(Eval("IfOpen")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="是否显示">
                            <ItemTemplate>
                                <asp:Label ID="Label1" runat="server" Text='<%# IF(Eval("IsShow")) %>'></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="OrderID" HeaderText="排序号"></asp:BoundField>
                        <asp:BoundField DataField="CreateUser" HeaderText="添加人"></asp:BoundField>
                        <asp:BoundField DataField="CreateTime" HeaderText="添加时间"></asp:BoundField>
                        <asp:BoundField DataField="ModifyUser" HeaderText="最后修改人"></asp:BoundField>
                        <asp:BoundField DataField="ModifyTime" HeaderText="最后修改时间"></asp:BoundField>
                    </Columns>
                    <RowStyle HorizontalAlign="Center"></RowStyle>
                </cc1:GroupFlyGridView>
           
        </div>
    </div>
    <div class="vote">
        <asp:Button ID="ButtonAdd" runat="server" Text="添加" CssClass="bnt1 cancel" OnClick="ButtonAdd_Click" />
        <asp:Button ID="ButtonEdit" runat="server" Text="编辑" OnClientClick="return EditButton()"
            CssClass="bnt1 cancel" OnClick="ButtonEdit_Click" />
        <asp:Button ID="ButtonDelete" runat="server" Text="删除" OnClientClick="return DeleteButton()"
            CssClass="bnt1 cancel" OnClick="ButtonDelete_Click" />
        <China315:MessageShow ID="MessageShow" Visible="false" runat="server" />
    </div>
    <asp:ObjectDataSource ID="ObjectDataSourceDate" runat="server" SelectMethod="Search"
        
        
        TypeName="GroupFly.ProduceBusinessLogic.GroupFlyProduce_UserDefinedColumn_Action" 
        OldValuesParameterFormatString="original_{0}">
        <SelectParameters>
            <asp:ControlParameter ControlID="TextBoxName" Name="Name" PropertyName="Text" 
                Type="String" />
            <asp:ControlParameter ControlID="ProduceMemLoginID" Name="ProduceMemLoginID" 
                PropertyName="Value" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    <asp:HiddenField ID="CheckGuid" runat="server" Value="0" />
    <asp:HiddenField ID="ProduceMemLoginID" runat ="server" Value ="0" />
    </form>
</body>
</html>
