<%@ Page AutoEventWireup="true"  CodeBehind="Web_File_Recycle_Manage.aspx.cs"   Inherits="Web25175_Hotel2.Web._Web_File_Recycle_Manage" 
    Language="C#" %>

<!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 id="Head1" runat="server">
    <title>文件回收管理</title>
    <script language="javascript" src="js/Web25175_Hotel2.v1.1.js" type="text/javascript"></script>
    <script language="javascript" src="js/Web25175_Hotel2.operate.v1.1.js" type="text/javascript"></script>
    <script language="javascript" src="js/Web25175_Hotel2.calendar.js" type="text/javascript"></script>
    <link href="css/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server" autocomplete="off">
        <div class="OperateTitle">
            <div>
                <asp:Label ID="lblManage" runat="server" Text="文件回收管理"></asp:Label>
            </div>
        </div>
        <div id="search" runat="server">
            <!-- 查询栏 -->
            <table class="SearchTable">
                <tr class="FFtr">
                    <td align="left">
                        <asp:Label ID="lblA_FileName" runat="server" Text="文件名称"></asp:Label>：<asp:TextBox ID="txtA_FileName" runat="server" Width="100px"></asp:TextBox>
                        <asp:Label ID="lblA_FilePath" runat="server" Text="文件路径"></asp:Label>：<asp:TextBox ID="txtA_FilePath" runat="server" Width="100px"></asp:TextBox>
                        
                    </td>
                </tr>
                <tr class="F7tr">
                    <td align="left">
                        <asp:Label ID="lblA_FileAddDate" runat="server" Text="回收日期"></asp:Label>：从<asp:TextBox ID="txtA_FileAddDate_T1" runat="server" Width="100px"></asp:TextBox>至<asp:TextBox ID="txtA_FileAddDate_T2" runat="server" Width="100px"></asp:TextBox>
 
                        <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" Text="查询" CssClass="btnSearch" />
                    </td>
                </tr>
            </table>
        </div>
        <div id="operate" runat="server">
            <!-- 操作栏 -->
            <asp:Button ID="btnInsert" runat="server" OnClick="btnInsert_Click" OnClientClick='return Operat.Insert("文件回收管理","Web_File_Recycle_Operate.aspx",600,236);'
                Text="添加" CssClass="btnInsert" />
            <asp:Button ID="btnUpdate" runat="server" OnClick="btnUpdate_Click" OnClientClick='return Operat.Update("文件回收管理","Web_File_Recycle_Operate.aspx?FileId=",600,236);'
                Text="修改" CssClass="btnUpdate" />
            <asp:Button ID="btnDelete" runat="server" OnClick="btnDelete_Click" OnClientClick='return Operat.Delete();'
                Text="删除" CssClass="btnDelete" />
            <asp:Button ID="btnView" runat="server"  OnClientClick='return Operat.View("文件回收管理","Web_File_Recycle_View.aspx?FileId=",600,236);'
                Text="查看" CssClass="btnView"/>
        </div>
        <div id="content" runat="server">
            <!-- 内容栏 -->
            <script>var chk = new Array();</script>
            <Web25175_Hotel2:GridView ID="GridView1" runat="server" AllowSorting="True" AutoGenerateColumns="False"
                CssClass="gv" GetSort="" GridLines="Horizontal" OnRowDataBound="GridView1_RowDataBound"
                OnSubSort="GridView1_SubSort" EmptyDataText="很抱歉!暂时没有记录!" Width="100%">
                <RowStyle CssClass="gvRow" />
                <HeaderStyle CssClass="gvHeader" />
                <AlternatingRowStyle CssClass="gvAlternatingRow" />
                <Columns>
                    <asp:TemplateField HeaderText="选择">
                        <headertemplate>
                            <input  onclick="Operat.AllCancel(this)" type=checkbox />
                        </headertemplate>
                        <itemstyle width="30px" />
                        <itemtemplate>
                             <asp:CheckBox id="cboxSelect" runat="server"></asp:CheckBox>
                             <asp:Literal id="cboxHelp" runat="server"></asp:Literal> 
                             <asp:HiddenField runat="server" id="HFFileId" Value='<%# Eval("A_FileId")%>'></asp:HiddenField>
                         
                        </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="文件名称" SortExpression="A_FileName">
                         <itemstyle width="250px" />
                         <itemtemplate>
                            <asp:Label id="lblA_FileName_gv" runat="server" Text='<%# Eval("A_FileName")%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="文件路径">
                         <itemstyle width="60px" />
                         <itemtemplate>
                            <%# Eval("A_FilePath").ToString().Trim()!=""?"<img style='border-width:0px;' src='images/attach.png'><a href='../"+Eval("A_FilePath")+"' target='_blank'><font color=green>有附件</font></a>":""%>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="回收日期" SortExpression="A_FileAddDate">
                         <itemstyle width="100px" />
                         <itemtemplate>
                            <asp:Label id="lblA_FileAddDate_gv" runat="server" Text='<%# Eval("A_FileAddDate").ToString().Trim()!=""?Convert.ToDateTime(Eval("A_FileAddDate").ToString()).ToString("yyyy-MM-dd"):""%>'></asp:Label>
                         </itemtemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                         <itemtemplate>
                         </itemtemplate>
                    </asp:TemplateField>
                </Columns>
            </Web25175_Hotel2:GridView>
        </div>
        <div id='pager' runat="server" class='pager'>
            <Web25175_Hotel2:Pager ID="Pager1" runat="server" OnSubPager="Pager1_SubPager" PageBind="BindData"
                PagesCss="PageOff" PagesCssFirst="PageFirst" PagesCssLast="PageLast" PagesCssNext="PageNext"
                PagesCssOn="PageOn" PagesCssPrev="PagePrev" PageSize="20" />
        </div>
    </form>
    <script type="text/javascript">
    uiReady(function() {
        uiCalendar_Setup("txtA_FileAddDate_T1","yyyy-MM-dd");
        uiCalendar_Setup("txtA_FileAddDate_T2","yyyy-MM-dd");

    })
    </script>
</body>
</html>

