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

<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
<style type="text/css">
        .style1
        {
            color: #FFFFFF;
        }
        
        .style2
        {
            text-align: center;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<table class="usertableborder" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th>
                分类维护
            </th>
        </tr>
    </table>
    <div style="height: 25px;">
        <asp:Button ID="Button1" runat="server" Text="新 增 分 类" Height="25px" Width="120px"
            OnClick="Button1_Click1" BackColor="#CCCCCC" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
    <div style="height: 550px; width: 100%; text-align: center; position: relative;">
        <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
            <HeaderTemplate>
                <table border="1" width="100%" style="content" style="margin: 0px">
                    <tr>
                        <th>
                            分类编码
                        </th>
                        <th>
                            分类名称
                        </th>
                        <th>
                            创建时间
                        </th>
                        <th>
                            停用标志
                        </th>
                        <th>
                            修改
                        </th>
                        <th>
                            停用
                        </th>
                    </tr>
            </HeaderTemplate>
            <ItemTemplate>
                <tr align="center" onmousemove="this.style.backgroundColor='#0099CC'" onmouseout="this.style.backgroundColor='white'">
                    <td style="width: 100">
                        <%#DataBinder.Eval(Container.DataItem, "Classificationid")%>
                    </td>
                    <td style="width: 300">
                        <%#DataBinder.Eval(Container.DataItem, "Classificationname")%>
                    </td>
                    <td style="width: 120">
                        <%#Eval("Date", "{0:yyyy-MM-dd}")%>
                    </td>
                    <td style="width: 100">
                        <%#Eval("State").ToString() == "1" ? "是" : "否"%>
                    </td>
                    <td style="width: 100">
                        <asp:LinkButton ID="LinkButton3" runat="server" CommandName="updateUser" CommandArgument='<%# Eval("Classificationid") %>'>详细</asp:LinkButton>
                    </td>
                    <td style="width: 100">
                        <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm( '您确认要执行吗？ ') "
                            CommandName="Delete" CommandArgument='<%# Eval("Classificationid") %>'> <%#Eval("State").ToString() == "0" ?"停用":"恢复"%> </asp:LinkButton>
                        <asp:HiddenField ID="HiddenField1" runat="server" Value='<%#DataBinder.Eval(Container.DataItem, "State")%>' />
                    </td>
                </tr>
            </ItemTemplate>
            <FooterTemplate>
                </table>
            </FooterTemplate>
        </asp:Repeater>
        <center>
                 <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>
            <span>
                <asp:Button ID="Button2" runat="server" Text="上 页" Height="20px" 
                Width="56px" OnClick="Button1_Click" BackColor="#CCCCCC" />
            </span>&nbsp; <span>
                <asp:Button ID="Button5" runat="server" Text="下 页" Height="20px" 
                Width="56px" OnClick="Button2_Click" BackColor="#CCCCCC" />
            </span><span>
        
            </span>
        </center>
    </div>
</asp:Content>

