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

<!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">
            
<!--栏目开始 -->
            <table style ="width :100%; " border="0"  cellpadding="0" cellspacing="0" class="ziti04">

                <tr>
                    <td style=" text-align :left ">               <asp:Label ID="lbMessage" runat="server" ForeColor="Red"></asp:Label> </td>
                    <td style=" text-align :right ">    <div>
                        </div>     </td>
                </tr>
            </table>
            <!--这里添加内容 -->
              <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="tbType" runat="server" Width="160px"></asp:TextBox>
                                            </td>
                <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 ">
                    详细配置</td>
                <td class ="tabletd_left ">
                   <asp:TextBox ID="tbConfiguration" runat="server" Width="160px"></asp:TextBox>
                                            </td>
            </tr>
            <tr>
                <td class ="tabletd_right " style ="width :80px">
                    库存数量</td>
                <td class ="tabletd_left ">
                    从
                    <asp:TextBox ID="tbActualinventory_Star" runat="server" Width="50px"></asp:TextBox>到
                    <asp:TextBox ID="tbActualinventory_End" runat="server" Width="50px"></asp:TextBox>                        
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server" 
                                                ControlToValidate="tbActualinventory_Star" 
                        Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ToolTip="库存数量" 
                                                ValidationGroup="sub" ForeColor="Red"></asp:RegularExpressionValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator14" runat="server" 
                                                ControlToValidate="tbActualinventory_End" 
                        Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ToolTip="库存数量" 
                                                ValidationGroup="sub" ForeColor="Red"></asp:RegularExpressionValidator>
                                            </td>
                <td class ="tabletd_right ">
                    库存状态</td>
                <td class ="tabletd_left ">
                        <asp:RadioButtonList ID="rdlState" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True">正常</asp:ListItem>
                            <asp:ListItem>仓库</asp:ListItem>
                        </asp:RadioButtonList>
                                        </td>
                <td class ="tabletd_right ">
                    存放地点</td>
                <td class ="tabletd_left ">
                    <asp:TextBox ID="tbLocation" runat="server" Width="80px"></asp:TextBox>
                                            </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>
				        

<!--栏目结束 -->
               
<!--栏目开始 -->
   <asp:Panel ID="Panel1" runat="server" Visible ="false" >
              <div class ="lanmubiaoti ">库存列表</div>
                
                        <!--这里添加内容 -->
                        <asp:GridView ID="GridView1" runat="server" Width="100%" 
                BorderWidth="1px" CssClass="gv" AutoGenerateColumns="False" 
                    onrowcreated="GridView1_RowCreated" 
                    onselectedindexchanging="GridView1_SelectedIndexChanging" >
            <RowStyle BorderWidth="1px" CssClass="gvrow" />
            <Columns>
                    <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                                        <asp:TemplateField HeaderText="设备编号" ShowHeader="False">
                    <ItemTemplate>
                        <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" 
                            CommandName="Select" Text='<%# bind("devicenumber") %>'></asp:LinkButton>
                    </ItemTemplate>
                </asp:TemplateField>
                    <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="categories" HeaderText="类别" ReadOnly="True" />
                    <asp:BoundField DataField="type" HeaderText="型号" ReadOnly="True" />
                    <asp:BoundField DataField="sn" HeaderText="序列号" ReadOnly="True" />
                    <asp:BoundField DataField="actualinventory" HeaderText="库存数量" ReadOnly="True" />
                    <asp:BoundField DataField="unit" HeaderText="单位" ReadOnly="True" />
                    <asp:BoundField DataField="location" HeaderText="存放地点" ReadOnly="True" />
                </Columns>
            <HeaderStyle BorderWidth="1px" CssClass="gvhead" />
        </asp:GridView> 
     <table style =" width :100% ; text-align:center " border="0"  cellpadding="0" cellspacing="0" class="ziti04">
             <tr>
                        <td  id ="allowpage" runat ="server" style ="text-align :right ;  padding-right  :5px">
                      &nbsp;</td>
      </tr></table>
             </asp:Panel> 
<!--栏目结束 -->





<!--栏目开始 -->
<asp:Panel ID="Panel2" runat="server" Visible ="false" >
            <div class ="lanmubiaoti ">设备详情</div>   
             
                        <!--这里添加内容 -->

<table border = "1" class ="table" cellpadding ="0" cellspacing ="0">
                  <tr>
                  <td class =" tabletd_center  " style ="width :80px; height :30px"> 设备编号</td>
                  <td class =" tabletd_center  " style ="width :200px" >                  
                       <asp:Label ID="lbDevicenumber" runat="server"></asp:Label>
                       &nbsp;</td>
                  <td class =" tabletd_center  " style ="width :80px">名称 </td>
                  <td class =" tabletd_center  " style ="width :200px">                  
                      <asp:Label ID="lbDevicename" runat="server"></asp:Label>&nbsp;
                      </td>
                      <td class=" tabletd_center  " style ="width :360px" rowspan="5">
                          <div style ="margin-top :10px;  margin-bottom :10px; width :360px; height :270px">
                     
                      <table border = "1" class ="table" cellpadding ="0" cellspacing ="0">
                      <tr>
                      <td style ="vertical-align :middle ; text-align :center ; width :360px; height :270px"  >
                      
                       <asp:ImageButton ID="ImageButton1" runat="server" 
                    OnClick="ImageButton1_Click"
                              ImageUrl="~/share/imgbyte_s.aspx"   />

                      </td></tr></table>
                       </div>
                                               <div >
                            <asp:RadioButtonList ID="rblImg" runat="server" AutoPostBack="True" 
                                onselectedindexchanged="rblImg_SelectedIndexChanged" 
                                RepeatDirection="Horizontal">
                            </asp:RadioButtonList>

                                    </div> 
                       
                       
                       </td>

                  </tr>
                  <tr>
                      <td class=" tabletd_center  " style="width :80px; height :30px"">
                          类别</td>
                      <td class=" tabletd_center  ">
                          <asp:Label ID="lbCategories" runat="server"></asp:Label>&nbsp;
                      </td>
                      <td class=" tabletd_center  " style="width :80px">
                          序列号</td>
                      <td class=" tabletd_center  ">
                          <asp:Label ID="lbSn" runat="server"></asp:Label>&nbsp;
                      </td>
                  </tr>
                  <tr>
                      <td class=" tabletd_center  " style="width :80px; height :30px"">
                          &nbsp;数量</td>
                      <td class=" tabletd_center  ">
                          <asp:Label ID="lbInitialinventory" runat="server"></asp:Label>
                          <asp:Label ID="lbUnit" runat="server"></asp:Label>&nbsp;
                      </td>
                      <td class=" tabletd_center  " style="width :80px">
                          库存状态</td>
                      <td class=" tabletd_center  ">
                          &nbsp;<asp:Label ID="lbState" runat="server"></asp:Label>
                         
                      </td>
                  </tr>
                  <tr>
                      <td class=" tabletd_center  " style="width :80px; height :30px"">
                          型号</td>
                      <td class=" tabletd_center  ">
                          &nbsp; <asp:Label ID="lbType" runat="server"></asp:Label>&nbsp;
                      </td>
                      <td class=" tabletd_center  " style="width :80px">
                          存放地点</td>
                      <td class=" tabletd_center  ">
                          <asp:Label ID="lbLocation" runat="server"></asp:Label>&nbsp;
                      </td>
                  </tr>
                  <tr>
                      <td class=" tabletd_center  " style="width :80px">
                          详细配置 
                      </td>
                      <td class=" tabletd_center  " colspan="3" style ="height :150px">
                          <asp:Label ID="lbConfiguration" runat="server"></asp:Label>&nbsp;
                      </td>
                  </tr>

                  

</table>
    <div style ="width :970px ; text-align :right ; ">
        <asp:Button ID="back" runat="server" onclick="back_Click" Text="返回" />
            </div>    
        
                 </asp:Panel>        
<!--栏目结束 -->
                </div>
            </div>
        </form>
    </body>
</html>
