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

<!DOCTYPE html>

<html>
<head id="Head1" runat="server">
    <title>OA标题页</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="format-detection" content="telephone=no" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<link type="text/css" rel="stylesheet" href="/css/reset.css" />
<link type="text/css" rel="stylesheet" href="/css/base.css" />
<script type="text/javascript" src="/js/jquery.min.js"></script>
<style type="text/css">
   #newsArticle img{width:100%!important;height:auto!important;max-width:640px;}
  </style>
</head>
<body class="bg2">
    <form id="fom" runat="server">
    <section id="container">
    <div class="space-10"></div>
    <section class="bg-fff pad9 marLR9 opacity summary">
      <h3 class="color-black bold lineH17 padLR3"> 
      <!--此处添加标题（小字）-->
      <asp:Label ID="lbbiaoti" runat="server" ></asp:Label> 
      	</h3>
    <div class="space-10"></div>
        <h2 class="f17 color-black lineH22 padLR3">
        <!--此处添加标题（大字）-->
         <asp:HyperLink ID="HyperLink1" runat="server"   NavigateUrl="return.aspx">按人员编号归还</asp:HyperLink>
                &nbsp; <asp:HyperLink ID="HyperLink2" runat="server" ForeColor="#339966" >按设备编号归还</asp:HyperLink>
          </h2>
        <div class="padLR3 oh"><span class="fr pointer fontSize" id="fontSize">大字</span></div>
        <article class="newsArticle" id="newsArticle">
          
            <div class="color-black padLR6 marB5"> 
                <div >归还          </div>
   <!--此处添加正文-->
    <div  > <asp:TextBox ID="tbStaff" runat="server" Width="200px" placeholder="人员编号/电话/智能卡/邮箱"></asp:TextBox>    &nbsp;<asp:Button ID="tijiao" runat="server" 
                        onclick="tijiao_Click" Text="查询" ValidationGroup="cha" /> &nbsp;<asp:RequiredFieldValidator ID="RequiredFieldValidator9" runat="server" 
                            ControlToValidate="tbStaff" Display="Dynamic" ErrorMessage="请输入设备编号" 
                            ValidationGroup="cha" ForeColor="Red"></asp:RequiredFieldValidator>  <asp:Label ID="lbMessage" runat="server" ForeColor="Red"></asp:Label>   </div> 
       <table style="width:100%"><tr>
           <td>      <div>           <asp:Label ID="lbStaffnumber0" runat="server"></asp:Label>
            <asp:Label ID="lbStaffnumber" runat="server" Font-Bold="True"></asp:Label>
&nbsp;<asp:Label ID="lbStaffname" runat="server" Font-Bold="True"></asp:Label>
        
                           <asp:Label ID="lbDeviceNumber" runat="server" Visible ="false" ></asp:Label>
        
                           </div>   </td>
           <td style="text-align :right ;">
               <asp:LinkButton ID="lbnPreReturn" runat="server" OnClick="lbnPreReturn_Click" Visible ="false" >显示待还表</asp:LinkButton></td>
              </tr></table>
       
                <div>
                    <div class ="space-10 "></div>   
      
   <asp:DataList ID="DataList1" runat="server" Width="100%" CellPadding="4" 
                    ForeColor="#333333" OnItemCommand="DataList1_ItemCommand">
                   <AlternatingItemStyle BackColor="White" />
                   <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <ItemStyle BackColor="#E3EAEB" />
                   <ItemTemplate>

                   <table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
                           <tr>
                   <td class ="rh25 ">借用时间</td>
                   <td class ="rh25 "><asp:Label ID="Label13" runat="server" Text='<%# Bind("lenddate") %>'></asp:Label>&nbsp;
                       <asp:Label ID="lbId" runat="server" Text='<%# Bind("id") %>' Visible ="false" ></asp:Label></td>
                   </tr>

                   <tr>
                   <td class ="rh25 "  style =" width:80px;">借用设备</td>
                   <td class ="rh25 "><asp:Label ID="lbDevicenumber" runat="server" Text='<%# Bind("devicenumber") %>'></asp:Label>&nbsp;
                       <asp:Label ID="Label4" runat="server" Text='<%# Bind("devicename") %>'></asp:Label>&nbsp;
                       <asp:Label ID="Label5" runat="server" Text='<%# Bind("type") %>'></asp:Label></td>
                   </tr> 
                          <tr>
                   <td class ="rh25 "  style =" width:80px;">未还数量</td>
                   <td class ="rh25 "><asp:Label ID="Label6" runat="server" Text='<%# Bind("surplus") %>'></asp:Label>
                       <asp:Label ID="Label7" runat="server" Text='<%# Bind("unit") %>'></asp:Label></td>
                   </tr> 
                             
                <tr>
                   <td class ="rh25 "  style =" width:80px;">操作</td>
                   <td class ="rh25 ">
                       <asp:Button ID="btnDel" runat="server" CausesValidation="False" CommandName="Select" Text="加入待还" />
   
                    </td> 
                   </tr> 
      
                   </table> 
                   <div class ="space-10 "></div>
                       
                   </ItemTemplate>
                    
                </asp:DataList>
          <asp:Panel ID="plPreReturn" runat="server"  Visible ="false" >

                    <asp:DataList ID="dlPreReturn" runat="server" Width="100%" CellPadding="4" 
                    ForeColor="#333333" OnItemCommand="dlPreReturn_ItemCommand">
                   <AlternatingItemStyle BackColor="White" />
                   <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <ItemStyle BackColor="#E3EAEB" />
                   <ItemTemplate>

                   <table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
                        <tr>
                   <td class ="rh25 ">借用序号</td>
                   <td class ="rh25 "><asp:Label ID="Label1" runat="server" Text='<%# Bind("lendid") %>'></asp:Label>&nbsp;
                             <asp:Label ID="lbId" runat="server" Text='<%# Bind("id") %>' Visible ="false" ></asp:Label></td>
                   </tr>
                   <tr>
                   <td class ="rh25 "  style =" width:80px;">借用设备</td>
                   <td class ="rh25 "><asp:Label ID="lbDevicenumber" runat="server" Text='<%# Bind("devicenumber") %>'></asp:Label>&nbsp;
                       <asp:Label ID="Label4" runat="server" Text='<%# Bind("devicename") %>'></asp:Label>&nbsp;
                       <asp:Label ID="Label5" runat="server" Text='<%# Bind("type") %>'></asp:Label></td>
                   </tr> 
                          <tr>
                   <td class ="rh25 "  style =" width:80px;">归还数量</td>
                   <td class ="rh25 "><asp:Label ID="Label6" runat="server" Text='<%# Bind("returnnumber") %>'></asp:Label>
                       <asp:Label ID="Label7" runat="server" Text='<%# Bind("unit") %>'></asp:Label></td>
                   </tr> 
                             
                <tr>
                   <td class ="rh25 "  style =" width:80px;">操作</td>
                   <td class ="rh25 ">
                       <asp:Button ID="btnDel" runat="server" CausesValidation="False" CommandName="Select"  Text="删除" onClientClick="return confirm('确认删除吗？')"  />
   
                    </td> 
                   </tr> 
      
                   </table> 
                   <div class ="space-10 "></div>
                       
                   </ItemTemplate>
                    
                </asp:DataList>
                     <div style="text-align :center ;  ">
        
                            <asp:Button ID="btRetrun" runat="server" Text="归还" onclick="btRetrun_Click" />
        </div> 
                                             <div style="text-align :right ;  ">
        
                            <asp:Button ID="Button1" runat="server" Text="返回" OnClick="btnBack_Click" />
        </div> 
</asp:Panel>
               <asp:Panel ID="plReturned" runat="server" Visible ="false" Style="background-color:white;" >
                         <div style ="text-align :center; font-size :large ; padding-bottom :10px; padding-top :10px; font-weight :bold ">
   设备借出清单
    </div>
    <div>借用凭证号： <asp:Label ID="lbIouid" runat ="server" ></asp:Label></div><div>
        借用人：<asp:Label ID="lbLenderid" runat="server"></asp:Label> &nbsp;<asp:Label ID="lbLender" runat="server"></asp:Label>
                
            &nbsp;办理人：<asp:Label ID="lbManaer" runat="server" /></div>      

   <asp:DataList ID="DataList2" runat="server" Width="100%" CellPadding="4" 
                    ForeColor="#333333">
                   <AlternatingItemStyle BackColor="White" />
                   <FooterStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
                   <HeaderStyle BackColor="#1C5E55" Font-Bold="True" ForeColor="White" />
            
                   <ItemTemplate>

                   <table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
                           <tr>
                   <td class ="rh25 ">借用时间</td>
                   <td class ="rh25 "><asp:Label ID="Label13" runat="server" Text='<%# Bind("lenddate") %>'></asp:Label>&nbsp;</td>
                   </tr>

                   <tr>
                   <td class ="rh25 "  style =" width:80px;">借用设备</td>
                   <td class ="rh25 "><asp:Label ID="Label3" runat="server" Text='<%# Bind("devicenumber") %>'></asp:Label>&nbsp;
                       <asp:Label ID="Label4" runat="server" Text='<%# Bind("devicename") %>'></asp:Label>&nbsp;
                       <asp:Label ID="Label5" runat="server" Text='<%# Bind("type") %>'></asp:Label></td>
                   </tr> 
                          <tr>
                   <td class ="rh25 "  style =" width:80px;">借用数量</td>
                   <td class ="rh25 "><asp:Label ID="Label6" runat="server" Text='<%# Bind("lendnumber") %>'></asp:Label>&nbsp;
                       <asp:Label ID="Label7" runat="server" Text='<%# Bind("unit") %>'></asp:Label></td>
                   </tr> 
                            
                   </table> 
                   <div class ="space-10 "></div>
                       
                   </ItemTemplate>
                 
                </asp:DataList>
                                 <div style="text-align :right ;  ">
        
                            <asp:Button ID="btnBack" runat="server" Text="返回" OnClick="btnBack_Click" />
        </div> 

                        </asp:Panel>
                </div>
                                    
   <!--正文结束-->     
           </div>
        </article>
            <div class="space-20"></div>
        <div class="space-30">
                <div class="mhome">
                    <asp:ImageButton ID="imgBHome" runat="server" ImageUrl="/css/images/home.png" 
                        Height="30px" Width="30px" onclick="imgBHome_Click"></asp:ImageButton></div>
        <div  class ="mexit">
            <asp:ImageButton ID="imgBExit" runat="server" ImageUrl="/css/images/exit.png" 
                Height="30px" Width="30px" onclick="imgBExit_Click"></asp:ImageButton></div>
        </div>
       
  
    </section><!--summary end-->
    <div class="space-20"></div>
</section><!--container end-->
<script type="text/javascript" src="/js/base.js"></script>
        </form>
    </body>
</html>