<%@ page language="C#" autoeventwireup="true" inherits="SystemManagement_returnLentFile, App_Web_wrcbq7tn" %>
<%--<!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>
 <link href="../CssHtml.css" rel="stylesheet" type="text/css" />
<style type ="text/css"> 
                .mycss   table   tr   td   table   tr   td   span   {   color:red;   } 
        </style>  
    <script src="../getParamter.js" type="text/javascript"></script>
<script src="../My97DatePicker/WdatePicker.js" type="text/javascript"></script>
</head>
<body  style="font-size: 9pt">
    <form id="form1" runat="server">
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
       
        <div>
            
             <table  width =100% style="font-size: 9pt; border-bottom: #1471b0 1px solid;" cellpadding="0" cellspacing="0">
             <tr >
             <td align =left style ="width :40%;" >目前位置：系统管理 - 数据维护 - 借阅回收管理</td>
              
                <td style="width:60%; height: 22px;" align="right">
                  <asp:Label ID="lblstate" runat="server" ForeColor ="Red"  Text=""></asp:Label>
                  <asp:ImageButton ID="return" runat="server"   ImageUrl="../Images/withDrawal.gif" OnClick="return_Click" />
                    <asp:ImageButton ID="img_del" runat="server"  ToolTip ="已过期可删"  ImageUrl="../Images/6_2.gif" OnClick="img_del_Click"  />
                 <asp:ImageButton ID="toexcel" runat="server" ImageUrl="~/Images/17.gif" OnClick="toexcel_Click" />
                    <a href="../OnlineHelp/OnlineHelp.aspx"  target ="_blank"> 
                      <img src="../Images/8.gif" alt ="在线帮助" style="border-top-style: none; border-right-style: none; border-left-style: none; border-bottom-style: none;" /> </a></td>            
             </tr>           
             </table>
             <asp:UpdatePanel ID="UpdatePanel1" runat="server">
        <ContentTemplate>
               <table width =100%  style="height: 8px; " cellpadding="0" cellspacing="0"><tr style="height: 8px;"><td style="height: 8px;" align =center valign =top  >
                    <asp:ImageButton ID="ImageButton1" runat="server" ImageUrl="../Images/arrow_d.gif" Height="6px" OnClick="ImageButton1_Click" ToolTip="展开查询面板" />
                    </td></tr></table>
               <asp:Panel ID="Panel1"   runat="server" Visible="false">
                <input id="output_sql" type="hidden" runat ="server"  />
         <input id="output_name" type="hidden" runat ="server"  /> 
                     <div >        
                   <table width=100% style="border-right: gold 2px solid; border-top: gold 2px solid; border-left: gold 2px solid; border-bottom: gold 2px solid">        <tr>
                               
                                <td style="width: 100%;  height: 23px;"
                                    valign="middle">
                                    <img src="../images/ss.jpg" style=""  />
                                    搜索内容：
                                    <asp:TextBox ID="txtKeyword" runat="server" Width="116px" BorderStyle="Ridge" MaxLength="25"
                                        ToolTip="输入查找值" Height="19px" Font-Size="9pt"></asp:TextBox>
                                        字段：<asp:DropDownList ID="dpdKeywords" runat="server"
                                            TabIndex="1" ToolTip="必选" Height="20" >
                                            <asp:ListItem Value="fileno">文件编号</asp:ListItem>
                                            <asp:ListItem Value="fname">文件名称</asp:ListItem>
                                            
                                             <asp:ListItem Value="lenderid">文件借阅人</asp:ListItem>
                                             <asp:ListItem Value="approverid">借阅批准人</asp:ListItem>
                                             <asp:ListItem Value="state">批准状态</asp:ListItem> 
                                              <asp:ListItem Value="edate">是否过期</asp:ListItem>
                                             
                                            
                                     
                                           
                                            <asp:ListItem Selected="True"></asp:ListItem>
                                        </asp:DropDownList>
                                        <input id="Radio1"
                                        runat="server" name="searchWay" type="radio" /> 模糊查询<input id="Radio2" runat="server" name="searchWay" type="radio" 
                                        checked="true" />精确查询 
                                        <asp:Button ID="btnSubmit" runat="server" Height =22px  Text="查 询" onclick="btnSubmit_Click" Width ="64px"/>
                                    &nbsp; &nbsp;
                                     <input id="Checkbox1" runat="server" type="checkbox"  />借阅日期
                                    从：
                                    
                                    <input id="txtD1" type="text"  class="Wdate" maxlength="10" 
                        onclick="WdatePicker()" runat="server"  readonly ="readonly" style="width: 95px; height: 19px; border-right: #a4c6f1 1px solid; border-top: #a4c6f1 1px solid; border-left: #a4c6f1 1px solid; border-bottom: #a4c6f1 1px solid;" />
                                    
                                 
                                     至：<input id="txtD2" type="text"  class="Wdate" maxlength="10" 
                        onclick="WdatePicker()" runat="server"  readonly ="readonly" style="width: 95px; height: 19px; border-right: #a4c6f1 1px solid; border-top: #a4c6f1 1px solid; border-left: #a4c6f1 1px solid; border-bottom: #a4c6f1 1px solid;" />
                                <asp:Label ID="lbl_state" ForeColor ="red"  runat="server" Text=""></asp:Label>      
                                    </td>
                               
                            </tr>
                            </table> 
                            </div> 
                             </asp:Panel>  
            
        
            <div class ="mycss" >
            <asp:GridView ID="GridView1" runat="server" Style="width: 100%; text-align: center"
                AutoGenerateColumns="False"   CellPadding="0" RowStyle-BorderColor="#a8c7ce" RowStyle-BorderStyle="Solid" RowStyle-BorderWidth="1px" AlternatingRowStyle-BorderColor="#a8c7ce"  AlternatingRowStyle-BorderStyle="Solid" AlternatingRowStyle-BorderWidth="1px"   PageSize="30"  AllowPaging="True" OnPageIndexChanging="GridView1_PageIndexChanging" >
                 <EmptyDataTemplate>
                       <table width="100%">
                           <tr style="background-color: #1471b0;height: 17px; font-weight: bold;">
                             <td style="color: white;"  align="center">文件编号
                                </td>
                                <td style="color: white;"  align="center">文件名称
                                </td>
                                
                                <td style="color: white;"  align="center">版本号
                                </td>
                                <td style="color: white;"  align="center">批准人
                                </td>
                                <td style="color: white;"  align="center">借阅日期
                                </td>
                                <td style="color: white;" align="center">借阅人
                                </td>
                                 <td style="color: white;" align="center">审批状态
                                </td>
                               
                                <td style="color: white;"  align="center">是否过期
                                </td>
                                
                            </tr>
                            <tr>
                                <td align =center   colspan=8>
                                没有数据....................................................
                                </td>
                                
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                
                
                
                <Columns>
                    <asp:TemplateField HeaderText="id"  Visible="False">
                        <ItemTemplate>
                            <asp:Label ID="Label3" runat="server" Text='<%# Bind("id") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField>
                        <HeaderTemplate>
                            <asp:CheckBox ID="CheckBox2" runat="server" Text ="全选" AutoPostBack="True" OnCheckedChanged="CheckBox2_CheckedChanged" />
                        </HeaderTemplate>
                        <ItemTemplate>
                            <asp:CheckBox ID="CheckBox1" runat="server" AutoPostBack="True"  ValidationGroup='<%# Eval("id") %>'
                                OnCheckedChanged="CheckBox1_CheckedChanged" />
                        </ItemTemplate>
                    </asp:TemplateField>
                   
                    <asp:BoundField DataField="fileno" HeaderText="文件编号" SortExpression="fileno" />
                    <asp:TemplateField HeaderText="文件名称" SortExpression="fname" >
                        <ItemTemplate>
                           
                                 <a href ='../Document/openDoc.aspx?from=vtfile&id=<%# Eval("fid")%>&map=fileapp' style =" color :Blue ;"   target =_blank><asp:Label runat=server  id ="mm"  Text ='<%# Bind("fname") %>'></asp:Label> </a>
                        </ItemTemplate>
                        <ItemStyle HorizontalAlign="Left" />
                    </asp:TemplateField>
                  
                    <asp:BoundField DataField="version" HeaderText="版本号" SortExpression="version"  />
                       
                    <asp:TemplateField HeaderText="批准人" SortExpression="approverid">
                        <ItemTemplate>
                           <asp:Label ID="Label1" ToolTip ="" runat="server" Text='<%# getReceiverName( Eval("approverid")) %>'></asp:Label>
                        
                        </ItemTemplate>
                    </asp:TemplateField>
                       <asp:BoundField DataField="adate" HeaderText="借阅日期" SortExpression="adate"  DataFormatString="{0:yyyy-MM-dd}" />
                  
                    
                 <asp:TemplateField HeaderText="借阅人">
                        <ItemTemplate>
                           <asp:Label ID="lbl_receiverName" ToolTip ="" runat="server" Text='<%# getReceiverName( Eval("lenderid") )%>'></asp:Label>
                        
                        </ItemTemplate>
                    </asp:TemplateField>
                   <asp:TemplateField HeaderText="批准状态" >
                        
                        <ItemTemplate>
                            <asp:Label ID="lbl_state" runat="server" Text='<%# Eval("state") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="是否过期" >
                        
                        <ItemTemplate>
                            <asp:Label ID="lbl_expire" runat="server" Text='<%# ExpireOrNot(Eval("id")) %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
                <RowStyle BorderColor="#A8C7CE" BorderStyle="Solid" BorderWidth="1px" />
                <HeaderStyle BackColor="#1471B0" Font-Size="9pt" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView> 
            <asp:SqlDataSource ID="SqlDataSource1" runat="server"></asp:SqlDataSource>
            </div>
             </ContentTemplate>
        </asp:UpdatePanel> 
        </div>
   
    </form>
</body>
</html>
