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

<%@ 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>Untitled Page</title>
    <link rel="stylesheet" type="text/css" href="style/index.css" />
    <link rel="stylesheet" type="text/css" href="style/index.css" />

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

    <base target="_self" />

    <script language="javascript" type="text/javascript">
        function ReturnValue(str) 
        { 
            window.returnValue= str.href + "," + str.innerHTML;
            window.close(); 
        } 
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="main">
        <div class="table1">
            <div class="title">
                <asp:ScriptManager ID="ScriptManager1" runat="server" EnableScriptGlobalization="True"
                    EnableScriptLocalization="true">
                </asp:ScriptManager>
                <asp:Label ID="LabelTitle" runat="server" Text="新闻列表"></asp:Label></div>
            <div class="query">
                <table cellpadding="0" cellspacing="0" width="100%">
                    <tr>
                        <td style="text-align: right;">
                            <asp:Localize ID="LocalizeAttachMentCateGory" runat="server" Text="附件类型："></asp:Localize>
                        </td>
                        <td>
                            <asp:DropDownList ID="DropDownListAttachMentCateGory" runat="server">
                            </asp:DropDownList>
                        </td>
                        <td>
                            <asp:Button ID="ButtonSearch" runat="server" Text="查询" CssClass="bnt1" />
                        </td>
                    </tr>
                </table></div>
                <cc1:GroupFlyGridView ID="GroupFlyGridViewShow" runat="server" AddSequenceColumn="False"
                    AllowMultiColumnSorting="False" AutoGenerateColumns="False" CellPadding="0" Del="False"
                    DeletePromptText="确实要删除指定的记录吗？" Edit="False" FixHeader="False" GridViewSortDirection="Ascending"
                    PagingStyle="None" Style="margin-left: 0px;" TableName="" Width="99%" AllowSorting="True"
                    AllowPaging="True" DataSourceID="ObjectDataSourceDate">
                    <HeaderStyle HorizontalAlign="Center" Font-Bold="True"></HeaderStyle>
                    <Columns>
                        <asp:TemplateField HeaderText="附件名称">
                            <ItemTemplate>
                                <a id="A1" href='<%# Eval("AttachmentURL") %>' runat="server" onclick="return ReturnValue(this)">
                                    <%# Eval("Title") %></a>
                                <asp:Label ID="Label1" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="上传时间" DataField="UploadTime" DataFormatString="{0:yyyy-MM-dd}" />
                        <asp:TemplateField HeaderText="所属类别">
                            <ItemTemplate>
                                <asp:Localize ID="Localize3" runat="server" Text='<%# Eval("CategoryName").ToString() %>'></asp:Localize>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField HeaderText="附件描述" DataField="Description" />
                    </Columns>
                </cc1:GroupFlyGridView>
            
        </div>
    </div>
    <asp:ObjectDataSource ID="ObjectDataSourceDate" runat="server" SelectMethod="Search"
        TypeName="GroupFly.ProduceBusinessLogic.GroupFlyProduce_AttachMent_Action">
        <SelectParameters>
            <asp:ControlParameter ControlID="DropDownListAttachMentCateGory" Name="AssociatedCategoryGuid"
                PropertyName="SelectedValue" Type="String" />
        </SelectParameters>
    </asp:ObjectDataSource>
    </form>
</body>
</html>
