<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="search_return.aspx.cs" Inherits="Web.sb.show.search_return" %>

<!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>OA标题页</title>
    <link href="../../css/css.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript" src="/css/popcalendar.js"></script>
</head>
<body>
    <form id="fom" runat="server">
        <div id ="main-c-03-right" >
            <table cellpadding="0"; cellspacing ="0"; style =" width :100%;background-image: url('../../css/images/right_top.png'); background-repeat :repeat-x" >
                <tr>
                <td class  ="main-c-03-right02-top">
                	   <!--这里添加页面标题 -->
                      	设备归还查询
                      	</td>
                </tr>
            </table>
            <div id="main-c-03-right02-main">
            
<!--栏目开始 -->
                   <div style ="margin-bottom :10px;"> <asp:LinkButton ID="lbnCha" runat="server" OnClick="lbnCha_Click">按归还日期查询</asp:LinkButton> </div>
                <div runat ="server" id="div_cha" visible ="false" >领用日期：  
                    <asp:TextBox ID="tbStar" runat="server" Width="80px" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:TextBox>
                &nbsp;-
                    <asp:TextBox ID="tbEnd" runat="server" Width="80px" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:TextBox>   &nbsp;
                     <asp:Button ID="tbSub" runat="server" Text="归还查询" onclick="tbSub_Click" />
                </div>

                        <asp:GridView ID="GridView1" runat="server" onrowdatabound="GridView1_RowDataBound" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
                <Columns>
                    <asp:BoundField DataField="devicenumber" HeaderText="设备编号" ReadOnly="True" />
                    <asp:BoundField DataField="categories" HeaderText="类别" ReadOnly="True" />
                    <asp:BoundField DataField="devicename" HeaderText="设备名称" ReadOnly="True" />
                    <asp:BoundField DataField="type" HeaderText="型号" ReadOnly="True" />
                    <asp:TemplateField HeaderText="已还数量">
                        <ItemTemplate>
                            <asp:Label ID="Label1" runat="server" Text='<%# Bind("returnnumber") %>'></asp:Label>
                            <asp:Label ID="Label2" runat="server" Text='<%# Bind("unit") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="returnnote" HeaderText="归还说明" ReadOnly="True" />
                    <asp:BoundField DataField="lenderid" HeaderText="借用人编号" ReadOnly="True" />
                    <asp:BoundField DataField="lender" HeaderText="借用人" ReadOnly="True" />
                    <asp:BoundField DataField="returndate" HeaderText="归还时间" ReadOnly="True" />
                    <asp:BoundField DataField="receiptid" HeaderText="归还凭证" ReadOnly="True" />
                    <asp:BoundField DataField="manager" HeaderText="接收人" ReadOnly="True" />
                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView>
                                <div>
              说明：<br />
              简易查询模式：查询近一年内的归还记录；按归还日期查询模式：查询指定日期内的归还记录。
          </div>      
<!--栏目结束 -->
                </div>
            </div>
        </form>
    </body>
</html>