<%@ Page Title="" Language="C#" MasterPageFile="~/Master/officeMaster.master" AutoEventWireup="true"
    CodeFile="goodskccx.aspx.cs" Inherits="goods_goodskccx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <style type="text/css">
        .style1
        {
            font-size: 13pt;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <%--<div style="background-image: url('../b2c/images/win_top.png'); font-weight: bold;
        height: 25px; line-height: 30px;">
        <center class="style1">
            物品库存查询</center>
    </div>--%>
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th>
                物品库存查询
            </th>
        </tr>
    </table>
    <div style="width: 100%;">
        <div>
            <asp:Label ID="Label1" runat="server" Text="请输入物品名称："></asp:Label>
            <asp:TextBox ID="TextBox1" runat="server" Width="123px"></asp:TextBox>
            <asp:Button ID="Button1" runat="server" Text="检 索" Width="58px" 
                BackColor="#CCCCCC" />
        </div>
        <table width="100%" border="1px">
            <tr>
                <th>
                    ID
                </th>
                <th>
                    物品编码
                </th>
                <th>
                    物品名称
                </th>
                <th>
                    物品数量
                </th>
                <th>
                    物品价格
                </th>
                <th>
                    物品状态
                </th>
                <th>
                    修改状态
                </th>
                <th>
                    查看台账
                </th>
            </tr>
            <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
                <ItemTemplate>
                    <tr align="center" onmousemove="this.style.backgroundColor='#0099CC'" onmouseout="this.style.backgroundColor='white'">
                        <td>
                            <%#DataBinder.Eval(Container.DataItem, "id")%>
                        </td>
                        <td>
                            <%#DataBinder.Eval(Container.DataItem, "Gid")%>
                        </td>
                        <td>
                            <%#DataBinder.Eval(Container.DataItem, "GoodsName")%>
                        </td>
                        <td>
                            <%#DataBinder.Eval(Container.DataItem, "Quantity")%>
                        </td>
                        <td>
                            <%#DataBinder.Eval(Container.DataItem, "price")%>
                        </td>
                        <td>
                            <%#Eval("State").ToString() == "0" ? "未停用" : "已停用"%>
                        </td>
                        <td>
                            <asp:LinkButton ID="LinkButton2" runat="server" OnClientClick="return confirm( '您确认要执行吗？ ') "
                                CommandName="Delete" CommandArgument='<%# Eval("State") %>'> <%#Eval("State").ToString() == "0" ? "停用" : "恢复"%> </asp:LinkButton>
                            <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "Inventoryid")%>' />
                            <asp:HiddenField ID="HiddenField2" runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "Gid")%>' />
                        </td>
                        <td>
                            <asp:LinkButton ID="LinkButton1" runat="server" CommandName="cktz" CommandArgument='<%# Eval("Gid") %>'>查看</asp:LinkButton>
                        </td>
                    </tr>
                </ItemTemplate>
            </asp:Repeater>
        </table>
    </div>
    <div style="width: 100%; height: 29px;">
        <center style="height: 37px">
                           <asp:Label ID="Label3" runat="server" Text="当前"></asp:Label>
                    <asp:Label ID="lblCurrentPage" runat="server" Text="1"></asp:Label>
                       <asp:Label ID="Label5" runat="server" Text="/"></asp:Label>
                        <asp:Label ID="lblPageCount" runat="server" Text="X"></asp:Label>
                    <asp:Label ID="Label4" runat="server" Text="页"></asp:Label>
            <asp:Button ID="Button4" runat="server" Text="首 页" Height="20px" Width="56px" 
                OnClick="Button4_Click" BackColor="#CCCCCC" />
            <asp:Button ID="Button6" runat="server" Text="上 页" Height="20px" Width="56px" OnClick="Button6_Click"
                BackColor="#CCCCCC" />
            <asp:Button ID="Button7" runat="server" Text="下 页" Height="20px" Width="56px" OnClick="Button7_Click"
                BackColor="#CCCCCC" />
            <asp:Button ID="Button8" runat="server" Text="末 页" Height="20px" Width="56px" 
                OnClick="Button8_Click" BackColor="#CCCCCC" />
    
        </center>
    </div>
</asp:Content>
