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

<!DOCTYPE html>
<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>
    <style type="text/css">
        .auto-style1 {
            height: 40px;
        }
    </style>
</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 :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 class="auto-style1" >
        <table class="tablebiaoti"  border="0" cellpadding="0" cellspacing="0" >
          <tr>
            <td><div class ="biaotileft ">  
                库存盘点</div> </td>
          </tr>
        </table>
        </td>
      </tr>
      <tr>
        <td>
        
            盘点状态：<asp:DropDownList ID="ddlInventorystate" runat="server" AutoPostBack="False">
                <asp:ListItem>盘点中</asp:ListItem>
                <asp:ListItem>未开始</asp:ListItem>
                <asp:ListItem>完成</asp:ListItem>
                <asp:ListItem>所有</asp:ListItem>
                                            </asp:DropDownList>
                                            
     
设备类别：                                             
            <asp:DropDownList ID="ddlCategories" runat="server">
            </asp:DropDownList>
                                            
     
            &nbsp;生成日期 从 
                    <asp:TextBox ID="tbStar" runat="server" Width="80px" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:TextBox> 
                    到 
                    <asp:TextBox ID="tbEnd" runat="server" Width="80px" onclick="popUpCalendar(this,this,'yyyy-mm-dd')"></asp:TextBox> 设备编号：<asp:TextBox ID="tbDevicenumber" runat="server"></asp:TextBox>&nbsp;<asp:Button ID="btTijiao" runat="server" Text="提交" OnClick="btTijiao_Click" />
            <asp:Label ID="Label1" runat="server" Font-Bold="True" Font-Size="Large" ForeColor="#0066FF" ></asp:Label>
            <div>
                  <asp:GridView ID="GridView1" runat="server" Width="100%" CssClass="gv" 
            cellspacing="1" BorderWidth="1px" 
                AutoGenerateColumns="False" 
                onrowcreated="GridView1_RowCreated" OnRowCancelingEdit="GridView1_RowCancelingEdit" OnRowEditing="GridView1_RowEditing" OnRowDataBound="GridView1_RowDataBound" OnRowUpdating="GridView1_RowUpdating" >
            <RowStyle  CssClass="gvrow" BorderWidth="1px" />
                <Columns>
                    <asp:BoundField DataField="id" HeaderText="序号" ReadOnly="True" />
                    <asp:BoundField DataField="inventorydate" 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="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="checknumber" HeaderText="盘点数量" ReadOnly="True" /> 
                    <asp:BoundField DataField="checker" HeaderText="盘点人" ReadOnly="True" /> 
                    <asp:BoundField DataField="checktime" HeaderText="盘点时间" ReadOnly="True" /> 
                    <asp:TemplateField HeaderText="盘点状态">
                        <EditItemTemplate>
                  <asp:DropDownList ID="ddlEditstate" runat="server" AutoPostBack="False">
                <asp:ListItem>盘点中</asp:ListItem>
                <asp:ListItem>未开始</asp:ListItem>
                <asp:ListItem>完成</asp:ListItem>
                                            </asp:DropDownList>
                            <asp:Label ID="lbEditstate" runat="server" Text='<%# Eval("inventorystate") %>'  Visible ="false" ></asp:Label>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lbviewstate" runat="server" Text='<%# Bind("inventorystate") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="盘点备注">
                        <EditItemTemplate>
                            <asp:TextBox ID="tbEditremarks" runat="server"  Text='<%# Eval("remarks") %>'></asp:TextBox> 
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:Label ID="lbviewremarks" runat="server" Text='<%# Bind("remarks") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="修改" ShowHeader="False">
                        <EditItemTemplate>
                            <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>
                        </EditItemTemplate>
                        <ItemTemplate>
                            <asp:LinkButton ID="LinkButton1" runat="server" CausesValidation="False" CommandName="Edit" Text="编辑"></asp:LinkButton>
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            <HeaderStyle  CssClass="gvhead"  />
        </asp:GridView>


            </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>