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

<!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" />
            <script type="text/javascript" src="../../css/popcalendar.js"></script>

</head>
<body>
    <form id="form1" runat="server" defaultfocus ="tbDevicenumber" >
<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 ="height :40px" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                须检测的库存设备查询</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>        
      <div>
<table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
            <tr>
                <td class ="tabletd_right " style ="width :80px">
                                        设备类别</td>
                <td class ="tabletd_left ">
                                            <asp:DropDownList ID="ddlCategories" runat="server">
                                            </asp:DropDownList>
                                            </td>
                <td class ="tabletd_right " style ="width :80px">
                    设备名称</td>
                <td class ="tabletd_left ">
                    <asp:TextBox ID="tbDevicename" runat="server" Width="160px"></asp:TextBox>
                                            </td>
                <td class ="tabletd_right ">
                    设备编号</td>
                <td class ="tabletd_left ">
                    <asp:TextBox ID="tbDevicenumber" runat="server" Width="160px"></asp:TextBox>
                                            </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :80px">
                    序列号</td>
                <td class ="tabletd_left ">
                    <asp:TextBox ID="tbSn" runat="server" Width="160px"></asp:TextBox>
                                            </td>
                <td class ="tabletd_right " style ="width :80px">
                    时间选择</td>
                <td class ="tabletd_left " colspan="3">
                    <asp:DropDownList ID="ddlDays" runat="server">
                        <asp:ListItem>0</asp:ListItem>
                        <asp:ListItem>1</asp:ListItem>
                        <asp:ListItem>2</asp:ListItem>
                        <asp:ListItem Selected="True">3</asp:ListItem>
                        <asp:ListItem>5</asp:ListItem>
                        <asp:ListItem>10</asp:ListItem>
                        <asp:ListItem>15</asp:ListItem>
                        <asp:ListItem>20</asp:ListItem>
                        <asp:ListItem>30</asp:ListItem>
                        <asp:ListItem>60</asp:ListItem>
                        <asp:ListItem>-</asp:ListItem>
                    </asp:DropDownList>
                    天内须检测的设备（“-”表示选择所有）</td>
            </tr>
            <tr>
                <td class ="tabletd_center " colspan="6">
                    <asp:Button ID="tbSub" runat="server" Text="提交查询" onclick="tbSub_Click" />
                &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                    <asp:Button ID="btReset" runat="server" onclick="btReset_Click" Text="重置" />
                </td>
            </tr>
            </table>
                    </div>
        
        
        </td>
      </tr>
    </table>
<!-- 一组内容模块结束 -->

    <!--  一组内容模块开始   --> 
        <div>
            <asp:Label ID="lbMessage" runat="server" ForeColor="Red" ></asp:Label></div>
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0" id ="table_devicelist" runat ="server" visible = "false" >
      <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" 
                AutoGenerateColumns="False" 
                onselectedindexchanging="GridView1_SelectedIndexChanging" 
                onrowcreated="GridView1_RowCreated" >
            <RowStyle  CssClass="gvrow" BorderWidth="1px" />
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                    <asp:TemplateField HeaderText="设备名称" ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton2" runat="server" CausesValidation="False" 
                            CommandName="Select" Text='<%# bind("devicename") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>  
                    <asp:BoundField DataField="devicenumber" HeaderText="设备编号" ReadOnly="True" />
                    
                    <asp:BoundField DataField="categories" HeaderText="类别" ReadOnly="True" />
                  
                    <asp:BoundField DataField="type" HeaderText="型号" ReadOnly="True" />
                    <asp:BoundField DataField="actualinventory" HeaderText="数量" ReadOnly="True" />
                    <asp:BoundField DataField="unit" HeaderText="单位" ReadOnly="True" />
                    <asp:BoundField DataField="testingdays" HeaderText="检测周期" ReadOnly="True" />
                    <asp:BoundField DataField="location" HeaderText="存放地点" ReadOnly="True" />
                    
                </Columns>
            <HeaderStyle  CssClass="gvhead"  />
        </asp:GridView>
        
        
        </td>
      </tr>
            <tr>
                        <td  id ="allowpage" runat ="server" style ="text-align :right ;  padding-right  :5px">
                      &nbsp;</td>
      </tr>
            <tr><td>  
            <div class =" td_rightnoborder  ">      
                <asp:Button ID="btPrintView_PreTest" runat="server" Text="打印预览" 
                  onclick="btPrintView_PreTest_Click"  />
                <asp:Button ID="btExcel_Pretest" runat="server" onclick="btExcel_PreTest_Click" 
                    Text="导出到EXCEL" />
            </div>
      </td></tr>
    </table>

<!-- 一组内容模块结束 -->
   
   

    <!--  一组内容模块开始   --> 
        <div>
            <asp:Label ID="lbDevicenumberMessage" runat="server" ForeColor="Red" ></asp:Label></div>
                <div id="divTesting" runat ="server" visible ="false" >
    <asp:Label ID="lbDevice" runat="server" Text=""></asp:Label>
    <asp:Button ID="btTesting" runat="server" Text="送检" onclick="btTesting_Click" />
            </div>
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0" id = "tbDevicetestinglist" runat ="server"  visible ="false" >

      <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="GridView2" runat="server" Width="100%" CssClass="gv" 
            cellspacing="1" BorderWidth="1px" 
                AutoGenerateColumns="False" >
            <RowStyle  CssClass="gvrow" BorderWidth="1px" />
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                    <asp:BoundField DataField="devicenumber" HeaderText="设备编号" ReadOnly="True" />
                    <asp:BoundField DataField="testnumber" HeaderText="数量" ReadOnly="True" />
                    <asp:BoundField DataField="unit" HeaderText="单位" ReadOnly="True" />
                    <asp:BoundField DataField="testingtime" HeaderText="时间" ReadOnly="True" />
                    <asp:BoundField DataField="testresults" HeaderText="检测状态" ReadOnly="True" />
                    <asp:BoundField DataField="testerid" HeaderText="送检人编号" ReadOnly="True" />
                    <asp:BoundField DataField="tester" HeaderText="送检人姓名" ReadOnly="True" />
      
      
                </Columns>
            <HeaderStyle  CssClass="gvhead"  />
        </asp:GridView>
        
        
        </td>
      </tr>
            <tr>
                        <td  id ="Td1" runat ="server" style ="text-align :right ;  padding-right  :5px">
                      &nbsp;</td>
      </tr>
                  <tr><td>  
            <div class =" td_rightnoborder  ">      
                <asp:Button ID="btPrintView_TestList" runat="server" Text="打印预览" 
                  onclick="btPrintView_TestList_Click"  />
                <asp:Button ID="btExcel_TestList" runat="server" onclick="btExcel_TestList_Click" 
                    Text="导出到EXCEL" />
            </div>
      </td></tr>
    </table>

<!-- 一组内容模块结束 -->

    <!--  一组内容模块开始   --> 
<div>
    <asp:Button ID="btTested" runat="server" Text="已送检设备查询" 
        onclick="btTested_Click" /></div>
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0" id ="table_tested" runat ="server" visible = "false" >
      <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="GridView3" runat="server" Width="100%" CssClass="gv" 
            cellspacing="1" BorderWidth="1px" 
                AutoGenerateColumns="False" 
                onselectedindexchanging="GridView3_SelectedIndexChanging" >
            <RowStyle  CssClass="gvrow" BorderWidth="1px" />
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                    <asp:BoundField DataField="devicename" HeaderText="设备名称" ReadOnly="True" />
                    <asp:BoundField DataField="devicenumber" HeaderText="设备编号" ReadOnly="True" />
                    <asp:BoundField DataField="categories" HeaderText="类别" ReadOnly="True" />
                    <asp:BoundField DataField="lendnumber" HeaderText="送检借出数量" ReadOnly="True" />
                    <asp:BoundField DataField="unit" HeaderText="单位" ReadOnly="True" />
                    <asp:BoundField DataField="lenderid" HeaderText="送检人编号" ReadOnly="True" />
                    <asp:BoundField DataField="lender" HeaderText="送检人姓名" ReadOnly="True" />
                    <asp:BoundField DataField="iouid" HeaderText="借条编号" ReadOnly="True" />
                    
                    <asp:CommandField HeaderText="归还" SelectText="归还" ShowSelectButton="True" />
                    
                </Columns>
            <HeaderStyle  CssClass="gvhead"  />
        </asp:GridView>
        
        
        </td>
      </tr>
            <tr>
                        <td  id ="Td2" runat ="server" style ="text-align :right ;  padding-right  :5px">
                      &nbsp;</td>
      </tr>
                        <tr><td>  
            <div class =" td_rightnoborder  ">      
                <asp:Button ID="btPrintView_Testing" runat="server" Text="打印预览" 
                  onclick="btPrintView_Testing_Click"  />
                <asp:Button ID="btExcel_Testing" runat="server" onclick="btExcel_Testing_Click" 
                    Text="导出到EXCEL" />
            </div>
      </td></tr>
    </table>

<!-- 一组内容模块结束 -->
   
    </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>
