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

<!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/admincss/skin.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server" defaultbutton ="btSelect" >
<div>
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
        <td   class ="top_bg_left "></td>
    <td  class ="top_bg_center " >
    <table style ="width :100%; height :31"  border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
      
<!--这里写页标题 -->
        <td style ="height :31px"><div class="titlebt">设备送检</div></td>
      </tr>
    </table>
    </td> 
    <td class ="top_bg_right "></td>
  </tr>
  <tr>
    <td style ="background :url(../../css/admincss/images/mail_leftbg.gif); vertical-align :middle " >&nbsp;</td>
    <td style ="background-color :#F7F8F9; vertical-align :top " >

<!--  一组内容模块开始   --> 
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">

      <tr>
        <td style ="padding-top :15px" >        
        人员编号/设备编号：
            <asp:TextBox ID="tbNumber" runat="server" Width="250px"></asp:TextBox>
            <asp:Button ID="btSelect" runat="server" Text="提交" onclick="btSelect_Click" />
            <br /><br />
           <asp:Label ID="lbStaffnumber0" runat="server"></asp:Label>
            <asp:Label ID="lbStaffnumber" runat="server" Font-Bold="True"></asp:Label>
&nbsp;&nbsp;&nbsp;&nbsp; <asp:Label ID="lbStaffname0" runat="server"></asp:Label>
            <asp:Label ID="lbStaffname" runat="server" Font-Bold="True"></asp:Label>
        
                            <asp:Label ID="lbMessage" runat="server" ForeColor="Red"></asp:Label>         
            
       
        
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->

<!--  一组内容模块开始   --> 
        <asp:Panel ID="Panel1" runat="server" Visible="False">
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                送检借出设备列表</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td> 

 
            <asp:GridView ID="GridView1" runat="server" Width="100%" CssClass="gv" 
            cellspacing="1" BorderWidth="1px" onrowediting="GridView1_RowEditing" 
                AutoGenerateColumns="False" onrowupdating="GridView1_RowUpdating" 
                onrowcancelingedit="GridView1_RowCancelingEdit" 
                onrowdeleting="GridView1_RowDeleting" >
            <RowStyle  CssClass="gvrow" BorderWidth="1px" />
                <Columns>
                    <asp:BoundField DataField="lenddate" HeaderText="预借时间" ReadOnly="True" />
                    <asp:BoundField DataField="devicenumber" HeaderText="设备编号" ReadOnly="True" />
                    <asp:BoundField DataField="devicename" HeaderText="设备名称" ReadOnly="True" />
                    <asp:BoundField DataField="type" HeaderText="型号" ReadOnly="True" />
                    <asp:BoundField DataField="configuration" HeaderText="详细配置" ReadOnly="True" />
                    <asp:BoundField DataField="unit" HeaderText="计量单位" ReadOnly="True" />
                    <asp:BoundField DataField="sumactualinventory" HeaderText="借用数量" ReadOnly="True" />
                    <asp:BoundField DataField="lendnote" HeaderText="借用说明" ReadOnly="True" />
                   
                    <asp:TemplateField HeaderText="计划归还时间">
                        <EditItemTemplate>
                          &nbsp;  <asp:TextBox ID="TextBox3" runat="server" Text='<%# Bind("plansreturndate") %>'></asp:TextBox>&nbsp;
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                                ControlToValidate="TextBox3" Display="Dynamic" ErrorMessage="归还时间不能为空。"></asp:RequiredFieldValidator>
                        </EditItemTemplate>
                        <ItemTemplate>
                           &nbsp; <asp:Label ID="Label3" runat="server" Text='<%# Bind("plansreturndate") %>'></asp:Label>&nbsp;
                        </ItemTemplate>
                    </asp:TemplateField>

                    
                    <asp:TemplateField HeaderText="修改" ShowHeader="False">
                        <EditItemTemplate>
                            &nbsp;<asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="True" 
                                CommandName="Update" Text="更新"></asp:LinkButton>
                            &nbsp;<asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                                CommandName="Cancel" Text="取消"></asp:LinkButton>&nbsp;
                        </EditItemTemplate>
                        <ItemTemplate>
                            &nbsp;<asp:LinkButton ID="LinkButton4" runat="server" CausesValidation="False" 
                                CommandName="Edit" Text="修改"></asp:LinkButton>&nbsp;
                        </ItemTemplate>
                    </asp:TemplateField>

                    
                    <asp:TemplateField HeaderText="删除" ShowHeader="False">
                        <ItemTemplate>
                           &nbsp;  <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" 
                                CommandName="Delete" Text="删除"></asp:LinkButton>&nbsp; 
                        </ItemTemplate>
                    </asp:TemplateField>

                    


                    
                </Columns>
            <HeaderStyle  CssClass="gvhead"  />
        </asp:GridView>
        <div style="text-align :right; padding :8px ">
        
                            <asp:Button ID="btLend" runat="server" Text="借出" onclick="btLend_Click" />
        </div> 
                            </td>
      </tr>
    </table>
            </asp:Panel>   
<!-- 一组内容模块结束 -->

    </td>
    <td  style =" background-image:url(../../css/admincss/images/mail_rightbg.gif )" >
    </td>
  </tr>
  <tr>
<td  class ="buttom_bg_left "></td>
  <td   class ="buttom_bg_center " ></td>
    <td  class ="buttom_bg_right " ></td>
  </tr>
</table>
    </div>
    </form>
</body>
</html>
