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

<!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 :31px"  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 " >
    
    <!--  一组内容模块开始   --> 
    <asp:Panel ID="Panel1" runat="server">
    <table class ="tablezong"   border="0"  cellpadding="0" cellspacing="0">
      <tr>
        <td style ="height :40px" colspan="2" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                最近入库的设备</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td colspan="2">        
            <asp:GridView ID="GridView1" runat="server" Width="100%" CssClass="gv" 
            cellspacing="1" BorderWidth="1px" 
                AutoGenerateColumns="False" PageSize="2" 
                onrowcreated="GridView1_RowCreated" >
            <RowStyle  CssClass="gvrow" BorderWidth="1px" />
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                    <asp:BoundField DataField="devicenumber" HeaderText="设备编号" ReadOnly="True" />
                    <asp:BoundField DataField="devicename" HeaderText="设备名称" ReadOnly="True" />
                    <asp:BoundField DataField="categories" HeaderText="类别" ReadOnly="True" />
                    <asp:BoundField DataField="initialinventory" HeaderText="入库数量" ReadOnly="True" />
                    <asp:BoundField DataField="unit" HeaderText="单位" ReadOnly="True" />
                    <asp:BoundField DataField="sn" HeaderText="序列号" ReadOnly="True" />
                    <asp:BoundField DataField="supplier" HeaderText="供货商" ReadOnly="True" />
                    <asp:BoundField DataField="transactor" HeaderText="经手人" ReadOnly="True" />
                    <asp:BoundField DataField="manager" HeaderText="入库人" ReadOnly="True" />
                    <asp:BoundField DataField="intostoragetime" HeaderText="入库时间" ReadOnly="True" />                
                </Columns>
            <HeaderStyle  CssClass="gvhead"  />
        </asp:GridView>
        </td>
      </tr>
      <tr>
      <td class =" td_leftnoborder ">
          <asp:Button ID="btUpload" runat="server" onclick="btUpload_Click" 
              Text="批量导入设备" />
      </td>
          <td class=" td_rightnoborder ">
              <asp:Button ID="btMore" runat="server" onclick="btMore_Click" Text="查看更多" />
          </td>
        </tr>
    </table>
        </asp:Panel>
<!-- 一组内容模块结束 -->

<!--  一组内容模块开始   --> 
    <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><asp:Label ID="lbMessage" runat="server" Font-Bold="True" ForeColor="Red"></asp:Label></div> 

                      
 
            <table border = "1" class ="table" cellpadding ="0" cellspacing ="0" style ="width :100%">
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                     设备序列号</td>
                    <td class ="tabletd_left " colspan="3">
                       <asp:TextBox ID="tbSn" 
                runat="server" Width="200px" AutoPostBack="True" 
                ontextchanged="btSelectStorage_Click" Wrap="False"></asp:TextBox>
                                        <asp:Button ID="btSelectStorage" runat="server" 
                onclick="btSelectStorage_Click" Text="查入库记录" />
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                                    ControlToValidate="tbSn" Display="Dynamic" ErrorMessage="请输入少于25个规范字符。" 
                                    ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,25}$" 
                                    ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator>
                                        <asp:Button ID="btAddnumber" runat="server" 
                onclick="btAddnumber_Click" Text="存在相同序列号设备，更新数量"  Visible ="false" />
                                </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        设备类别</td>
                    <td class ="tabletd_left " colspan="3">
                        <asp:DropDownList ID="ddlCategories" runat="server">
                        </asp:DropDownList>
&nbsp;&nbsp;&nbsp;<asp:Button ID="btCopyDevice" runat="server" Text="复制同类别上一件设备的详细信息" 
                            onclick="btCopyDevice_Click" />
                                        </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        设备编号</td>
                 <td class ="tabletd_left " colspan="3">
                        <asp:TextBox ID="tbDevicenumber" runat="server" Width="200px" 
                            AutoPostBack="True" ontextchanged="tbDevicenumber_TextChanged"></asp:TextBox>
                       <span style =" color :Red ">*</span>
                        <asp:Button ID="btGetDevicenumber" runat="server" 
                            onclick="btGetDevicenumber_Click" Text="根据设备类别获取编号" />
                        &nbsp;
                        

                        <asp:Button ID="btCode" runat="server" onclick="btCode_Click" 
                            style="margin-bottom: 0px" Text="打印条码" ValidationGroup="code" 
                            Height="21px" />
                            条码类型：<asp:DropDownList ID="ddlCodeMod" runat="server">
                        </asp:DropDownList>
                            
                            <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
                            ControlToValidate="tbDevicenumber" Display="Dynamic" ErrorMessage="设备编号不能为空！" 
                            ValidationGroup="intowarehousing" ForeColor="Red"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator19" runat="server" 
                                    ControlToValidate="tbDevicenumber" Display="Dynamic" ErrorMessage="请输入少于25个规范字符。" 
                                    ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,25}$" 
                                    ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator>
                       
                                         
                                      <asp:Label ID="lbDevicenumber" runat="server" Visible ="false"  ></asp:Label>
                       
                                         
                                      </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        设备名称</td>
                    <td class ="tabletd_left" style ="width :360px">
                        <asp:TextBox ID="tbDevicename" runat="server" Width="200px"></asp:TextBox>
                        <span style=" color :Red ">*</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
                            ControlToValidate="tbDevicename" Display="Dynamic" ErrorMessage="设备名称不能为空！" 
                            ValidationGroup="intowarehousing" ForeColor="Red"></asp:RequiredFieldValidator>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator20" runat="server" 
                                    ControlToValidate="tbDevicename" Display="Dynamic" ErrorMessage="请输入少于25个规范字符。" 
                                    ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,25}$" 
                                    ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator>
                                        </td>
                    <td class ="tabletd_left " rowspan="9" colspan="2">
                      <table >
                      <tr>
                      <td style ="vertical-align :middle ; text-align :center ; width :360px; height :270px"> 
                  
                          <asp:ImageButton ID="imgBt" runat="server" OnClick="imgBt_Click"  Visible ="false" />
                      </td></tr></table>
                 <div style ="margin-top :5px;  margin-bottom :5px " >上传图片：  <asp:FileUpload ID="FileUpload1" runat="server" /> </div> 
                                        </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        入库数量</td>
                    <td class ="tabletd_left" style ="width :360px">
                         <asp:TextBox ID="tbInitialinventory" runat="server" Width="60px"></asp:TextBox>
                        <span style=" color :Red ">*</span>
                        <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                            ControlToValidate="tbInitialinventory" Display="Dynamic" ErrorMessage="数量不能为空！" 
                            ValidationGroup="intowarehousing" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator13" runat="server" 
                                                ControlToValidate="tbInitialinventory" 
                        Display="Dynamic" ErrorMessage="请输入大于0的整数。" 
                                                ValidationExpression="^\+?[1-9][0-9]*$" ToolTip="入库数量" 
                                                ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator></td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        计量单位</td>
                    <td class ="tabletd_left" style ="width :360px">
                        <asp:DropDownList ID="ddlUnit" runat="server">
                        </asp:DropDownList>
                                        </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        存放地点</td>
                    <td class ="tabletd_left" style ="width :360px">
                            <span style=" color :Red ">
                            <asp:DropDownList ID="ddlLocation" runat="server">
                            </asp:DropDownList>
                                            </span></td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        检测周期</td>
                    <td class ="tabletd_left" style ="width :360px">
                        <asp:TextBox ID="tbTestingDays" runat="server" Width="50px">0</asp:TextBox>
                        天。0表示非强制检测<span style=" color :Red ">*</span><asp:RequiredFieldValidator ID="RequiredFieldValidator5" runat="server" 
                            ControlToValidate="tbTestingDays" Display="Dynamic" ErrorMessage="天数不能为空！" 
                            ValidationGroup="intowarehousing" ForeColor="Red"></asp:RequiredFieldValidator>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator18" runat="server" 
                                                ControlToValidate="tbTestingDays" 
                        Display="Dynamic" ErrorMessage="请输入整数。" 
                                                ValidationExpression="^\+?[0-9]*$" ToolTip="入库数量" 
                                                ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator>
                                        </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        首检时间</td>
                    <td class ="tabletd_left "  style ="width :360px">
                        <asp:TextBox ID="tbFistTestingTime" runat="server" Width="80px" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:TextBox>
                       
                        检测周期不为0时，首检时间必填，且数量为1</td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        设备型号</td>
                    <td class ="tabletd_left" style ="width :360px">
                        <asp:TextBox ID="tbType" runat="server" Width="150px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator22" runat="server" 
                                    ControlToValidate="tbType" Display="Dynamic" ErrorMessage="请输入少于25个规范字符。" 
                                    ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,25}$" 
                                    ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        详细配置</td>
                    <td class ="tabletd_left"  style ="width :360px">
                        <asp:TextBox ID="tbConfiguration" runat="server" Height="80px" 
                            TextMode="MultiLine" Width="340px" Rows="2"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator28" runat="server" 
                                    ControlToValidate="tbConfiguration" Display="Dynamic" ErrorMessage="请输入少于100个字符。" 
                                    ValidationExpression="^[\S\s]{1,100}$" 
                                    ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator>
                                        </td>
                </tr>

                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        生产商</td>
                    <td class ="tabletd_left " style ="width :360px">
                        <asp:TextBox ID="tbProducers" runat="server" Width="300px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator23" runat="server" 
                                    ControlToValidate="tbProducers" Display="Dynamic" ErrorMessage="请输入少于25个规范字符。" 
                                    ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,25}$" 
                                    ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator>
                                        </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        购买单价</td>
                    <td class ="tabletd_left" style ="width :360px">
                                             <asp:TextBox ID="tbUnitprice" runat="server"></asp:TextBox>
                                            <asp:RegularExpressionValidator ID="RegularExpressionValidator17" runat="server" 
                                                ControlToValidate="tbUnitprice" 
                        Display="Dynamic" ErrorMessage="请输入大于0的数字。" 
                                                
                        ValidationExpression="^(?:[1-9][0-9]*|0)(?:\.[0-9]+)?$" 
                                                ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator></td>
                    <td class ="tabletd_right " style ="width :70px">
                        发票编号</td>
                    <td class ="tabletd_left ">
                       <asp:TextBox ID="tbInvoice" runat="server" Width="150px"></asp:TextBox>  
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator27" runat="server" 
                                    ControlToValidate="tbInvoice" Display="Dynamic" ErrorMessage="请输入少于25个规范字符。" 
                                    ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,25}$" 
                                    ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        供货商</td>
                    <td class ="tabletd_left" style ="width :360px">
                        <asp:TextBox ID="tbSupplier" runat="server" Width="300px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator24" runat="server" 
                                    ControlToValidate="tbSupplier" Display="Dynamic" ErrorMessage="请输入少于25个规范字符。" 
                                    ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,25}$" 
                                    ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator>
                                        </td>
                    <td class ="tabletd_right " style ="width :70px">
                        经办人</td>
                    <td class ="tabletd_left ">
                        <asp:TextBox ID="tbTransactor" runat="server" Width="100px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator25" runat="server" 
                                    ControlToValidate="tbTransactor" Display="Dynamic" ErrorMessage="请输入少于25个规范字符。" 
                                    ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,25}$" 
                                    ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator>
                                        </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        保修时间</td>
                    <td class ="tabletd_left" style ="width :360px">
                        <asp:TextBox ID="tbWarrantydate" runat="server" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:TextBox>
      </td>
                    <td class ="tabletd_right " style ="width :70px">
                        凭证号</td>
                    <td class ="tabletd_left ">
                        <asp:TextBox ID="tbAcountingdocumentsid" runat="server" Width="199px"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator26" runat="server" 
                                    ControlToValidate="tbAcountingdocumentsid" Display="Dynamic" ErrorMessage="请输入少于25个规范字符。" 
                                    ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,25}$" 
                                    ValidationGroup="intowarehousing" ForeColor="Red"></asp:RegularExpressionValidator>
                    </td>
                </tr>
                <tr>
                    <td class ="tabletd_right " style ="width :70px">
                        库存状态</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_left " colspan="2">
                        <asp:Button ID="btAddDevice" runat="server" onclick="btAddDevice_Click" 
                            Text="入库" ValidationGroup="intowarehousing" />
                                        </td>
                </tr>
            </table>
        
        
        </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>

