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

<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">
 <%--<div style="background-image: url('../b2c/images/win_top.png'); font-weight: bold;
        height: 27px; line-height: 30px;" class="style2">
        <span style="text-align: center">入库方式维护 </span>
    </div>--%>
    <table class="usertableborder" cellspacing="1" cellpadding="3" width="100%" align="center"
        border="0">
        <tr>
            <th>
                入库方式维护
            </th>
        </tr>
    </table>
    <div style="height: 25px; text-align: left;">
        <asp:Button ID="Button1" runat="server" Text="新 增 分 类" Height="25px" Width="133px"
            OnClick="Button1_Click1" BackColor="#CCCCCC" />
        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
    <div style="height: 550px; width: 100%; text-align: center;">
        <asp:Repeater ID="Repeater1" runat="server" OnItemCommand="Repeater1_ItemCommand">
            <HeaderTemplate>
                <table border="1" width="100%" align="center">
                    <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, "Storageid")%>
                    </td>
                    <td style="width: 300">
                        <%#DataBinder.Eval(Container.DataItem, "Storagename")%>
                    </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("Storageid") %>'>详细</asp:LinkButton>
                    </td>
                    <td style="width: 100">
                        <asp:LinkButton ID="LinkButton1" runat="server" OnClientClick="return confirm( '您确认要执行吗？ ') "
                            CommandName="Delete" CommandArgument='<%# Eval("Storageid") %>'> <%#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>

