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

<!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" >
<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 " >
    
  <!--  一组内容模块开始   --> 
    <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>
            <div style ="text-align :left "> <asp:Label ID="lbMessage" runat="server" ForeColor="Red"></asp:Label></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="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 ">
                            <span style=" color :Red ">
                            <asp:DropDownList ID="ddlLocation" runat="server">
                            </asp:DropDownList>
                                            </span>
                                            </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>
<!-- 一组内容模块结束 -->

    <!--  一组内容模块开始   --> 
        <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" 
                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="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  CssClass="gvhead"  />
        </asp:GridView>
        </td>
      </tr>
            <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">
    <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>        

            <table border = "1" class ="table" cellpadding ="0" cellspacing ="0">
                  <tr>
                  <td class =" tabletd_right  " style ="width :80px; height :30px"> 设备编号</td>
                  <td class =" tabletd_left  " colspan="3" >                  
                       <asp:Label ID="lbDevicenumber" runat="server"></asp:Label>
                      </td>
                      <td class=" tabletd_left  " style ="width :360px" rowspan="5">
                        <table >  <tr>
                      <td class ="img_s">
                               <asp:ImageButton ID="imgBt" runat="server" OnClick="imgBt_Click"  Visible ="false" />    </td></tr></table>
                    <div style ="margin-top :10px;  margin-bottom :10px " >  <asp:FileUpload ID="FileUpload1" runat="server" /> 
                          </div> 
    </td</tr>
                  <tr>
                      <td class=" tabletd_right  " style="width :80px; height :30px">
                          原名称</td>
                      <td class=" tabletd_left  " style="width :200px">
                          <asp:Label ID="lbDevicename" runat="server"></asp:Label>
                      </td>
                      <td class=" tabletd_right  " style="width :80px">
                          新名称</td>
                      <td class=" tabletd_left  " style="width :200px">
                        <asp:TextBox ID="tbDevicenameEdit" runat="server"></asp:TextBox>
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" 
                              ControlToValidate="tbDevicenameEdit" Display="Dynamic" ErrorMessage="设备名称不能为空！" 
                              ForeColor="Red" ValidationGroup="intowarehousing"></asp:RequiredFieldValidator>
                          <asp:RegularExpressionValidator ID="RegularExpressionValidator21" 
                              runat="server" ControlToValidate="tbDevicenameEdit" Display="Dynamic" 
                              ErrorMessage="请输入少于25个规范字符。" ForeColor="Red" 
                              ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,25}$" 
                              ValidationGroup="intowarehousing"></asp:RegularExpressionValidator>
                      </td>
                  </tr>
                  <tr>
                      <td class=" tabletd_right  " style="width :80px; height :30px"">
                          原类别</td>
                      <td class=" tabletd_left  ">
                          <asp:Label ID="lbCategories" runat="server"></asp:Label>
                      </td>
                      <td class=" tabletd_right  " style="width :80px">
                          新类别</td>
                      <td class=" tabletd_left  ">                        
                          <asp:DropDownList ID="ddlCategoriesEdit" runat="server">
                        </asp:DropDownList>

                          &nbsp;</td>
                  </tr>
                  <tr>
                      <td class=" tabletd_right  " style="width :80px; height :30px">
                          原序列号</td>
                      <td class=" tabletd_left  ">
                          <asp:Label ID="lbSn" runat="server"></asp:Label>
                      </td>
                      <td class=" tabletd_right  " style="width :80px">
                          新序列号</td>
                      <td class=" tabletd_left  " style="width :200px">
                        <asp:TextBox ID="tbSnEdit" runat="server"></asp:TextBox>
                          <asp:RegularExpressionValidator ID="RegularExpressionValidator2" runat="server" 
                              ControlToValidate="tbSnEdit" Display="Dynamic" ErrorMessage="请输入少于25个规范字符。" 
                              ForeColor="Red" ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,25}$" 
                              ValidationGroup="intowarehousing"></asp:RegularExpressionValidator>
                      </td>
                  </tr>
                  <tr>
                      <td class=" tabletd_right  " style="width :80px; height :30px"">
                          原数量 
                      </td>
                      <td class=" tabletd_left  ">
                          <asp:Label ID="lbInitialinventory" runat="server"></asp:Label>
                          <asp:Label ID="lbUnit" runat="server"></asp:Label>&nbsp;
                      </td>
                      <td class=" tabletd_right  " style="width :80px">
                          新数量</td>
                      <td class=" tabletd_left  " style="width :200px">
                          <asp:TextBox ID="tbInitialinventoryEdit" runat="server" Width="60px"></asp:TextBox>
                          <asp:Label ID="lbUnitEdit" runat="server"></asp:Label>
                          <asp:RequiredFieldValidator ID="RequiredFieldValidator4" runat="server" 
                              ControlToValidate="tbInitialinventoryEdit" Display="Dynamic" ErrorMessage="数量不能为空！" 
                              ForeColor="Red" ValidationGroup="intowarehousing"></asp:RequiredFieldValidator>
                          <asp:RegularExpressionValidator ID="RegularExpressionValidator22" 
                              runat="server" ControlToValidate="tbInitialinventoryEdit" Display="Dynamic" 
                              ErrorMessage="请输入大于0的整数。" ForeColor="Red" ToolTip="入库数量" 
                              ValidationExpression="^\+?[1-9][0-9]*$" ValidationGroup="intowarehousing"></asp:RegularExpressionValidator>
                      </td>
                  </tr>
                  <tr>
                      <td class=" tabletd_right  " style="width :80px; height :30px"">
                          原型号</td>
                      <td class=" tabletd_left  ">
                          <asp:Label ID="lbType" runat="server"></asp:Label>
                      </td>
                      <td class=" tabletd_right  " style="width :80px">
                          新型号</td>
                      <td class=" tabletd_left  " style="width :200px">
                          <asp:TextBox ID="tbTypeEdit" runat="server"></asp:TextBox>
                          <asp:RegularExpressionValidator ID="RegularExpressionValidator24" 
                              runat="server" ControlToValidate="tbTypeEdit" Display="Dynamic" 
                              ErrorMessage="请输入少于25个规范字符。" ForeColor="Red" 
                              ValidationExpression="^[^%&gt;&lt;'&amp;*=!&quot;?]{1,25}$" 
                              ValidationGroup="intowarehousing"></asp:RegularExpressionValidator>
                      </td>
                      <td class=" tabletd_center  " style="width :360px">原配置:<asp:Label ID="lbConfiguration" runat="server"></asp:Label>
                      </td>
                  </tr>
                  <tr>
                      <td class=" tabletd_right  " style="width :80px; height :30px">
                          原存放地点</td>
                      <td class=" tabletd_left  ">
                          <asp:Label ID="lbLocation" runat="server"></asp:Label>
                          &nbsp;</td>
                      <td class=" tabletd_right  " style="width :80px">
                          新存放地点</td>
                      <td class=" tabletd_left  " style="width :200px">

                          <span style=" color :Red ">
                          <asp:DropDownList ID="ddlLocationEdit" runat="server">
                          </asp:DropDownList>
                          </span>
                      </td>
                      <td class=" tabletd_center  " style="width :360px">新配置</td>
                  </tr>
                  <tr>
                      <td class=" tabletd_right  " style="width :80px">
                          原库存状态</td>
                      <td class=" tabletd_left  " style ="height :60px">
                          <asp:Label ID="lbState" runat="server"></asp:Label>
                      </td>
                      <td class=" tabletd_right  " style="height :60px">
                          新库存状态</td>
                      <td class=" tabletd_left  " style="height :60px">
                                   <asp:RadioButtonList ID="rdlStateEdit" runat="server" RepeatDirection="Horizontal">
                            <asp:ListItem Selected="True">正常</asp:ListItem>
                            <asp:ListItem>仓库</asp:ListItem>
                        </asp:RadioButtonList></td>
                      <td class=" tabletd_center  " style="width :360px">
                          <asp:TextBox ID="tbConfigurationEdit" runat="server" Height="60px" Rows="2" TextMode="MultiLine" Width="100%"></asp:TextBox>
                          <asp:RegularExpressionValidator ID="RegularExpressionValidator28" runat="server" ControlToValidate="tbConfigurationEdit" Display="Dynamic" ErrorMessage="请输入少于100个字符。" ForeColor="Red" ValidationExpression="^[\S\s]{1,100}$" ValidationGroup="intowarehousing"></asp:RegularExpressionValidator>
                      </td>
                  </tr>

                  

<tr><td colspan="4" class ="td_centernoborder ">
    <asp:CheckBox ID="cbEdit" runat="server" Checked="True" Text="审核通过" 
        Visible="False" />
    &nbsp;
    <asp:Button ID="btEdit" runat="server" Text="修改" onclick="btEdit_Click" 
        ValidationGroup="intowarehousing" />
    </td>
<td class ="td_rightnoborder ">
    <asp:Button ID="back" runat="server" onclick="back_Click" Text="返回" />
    </td></tr>
</table>
       
        </td>
      </tr>
<tr><td style ="text-align :center ">
    &nbsp;</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>
