<%@ Page Language="C#" MasterPageFile="~/Master/officeMaster.master" AutoEventWireup="true"
    CodeFile="ExpenditureType.aspx.cs" Inherits="AccountType_ExpenditureType" Title="无标题页" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</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="font-size: 15px">
        <asp:Button ID="btnExpenditureType" runat="server" Text="支出类型" 
            Style="font-weight: bold;width: 80px; height: 30px;" onclick="btnExpenditureType_Click" />
        <asp:Button ID="btnIncomeType" runat="server" Text="收入类型" 
            Style="width: 80px; height: 30px;" onclick="btnIncomeType_Click" />
        <asp:Button ID="btnProjectType" runat="server" Text="项目" 
            Style="width: 80px; height: 30px;" onclick="btnProjectType_Click" />
        <asp:Button ID="btnSeller" runat="server" Text="商家/付款方" 
            Style="width: 80px; height: 30px;" onclick="btnSeller_Click" />&nbsp;&nbsp;&nbsp;&nbsp; 
        <asp:Button ID="btnAddExpenditureType" runat="server" Text="新 增" Style="width: 80px; height: 30px;"
            onclick="btnAddExpenditureType_Click" />
    </div>
    <br />
    <table class="usertableborder" cellspacing="1" cellpadding="3"width="500px" align="center"
        border="1">
        <tr>
            <th width="50%">
                名称
            </th>
            <th width="50%">
                操作
            </th>
        </tr>
        <asp:Repeater ID="rptExpenditureType" runat="server" OnItemCommand="rptExpenditureType_ItemCommand">
            <ItemTemplate>
                <tr align="center">
                    <td>
                        <%#Eval("ExpenditureTypeName")%>
                    </td>
                    <td>
                        <asp:HiddenField ID="hdExpenditureTypeId" runat="server" Value='<%#Eval("ExpenditureTypeId") %>' />
                        <a style="cursor: pointer;" href="ExpenditureTypeInfo.aspx?etid=<%#Eval("ExpenditureTypeId") %>">
                            编辑</a>
                        <asp:LinkButton ID="lbtnDelete" runat="server" Text="删除" CommandName="delete" OnClientClick="return confirm('确认要删除吗？')"></asp:LinkButton>
                    </td>
                </tr>
            </ItemTemplate>
        </asp:Repeater>
        <tr>
            <td colspan="2" align="center">
                <span>当前<span id="spanPageCurrent" runat="server">1</span>/<span id="spanPageCount"
                    runat="server"></span>页</span>
                <asp:LinkButton ID="lbtnPageFirst" runat="server" Text="首页" BackColor="Silver" Width="56px" OnClick="lbtnPageFirst_Click"></asp:LinkButton>
                <asp:LinkButton ID="lbtnPageUp" runat="server" Text="上页" BackColor="Silver" Width="56px" OnClick="lbtnPageUp_Click"></asp:LinkButton>
                <asp:LinkButton ID="lbtnPageDown" runat="server" Text="下页" BackColor="Silver" Width="56px" OnClick="lbtnPageDown_Click"></asp:LinkButton>
                <asp:LinkButton ID="lbtnPageLast" runat="server" Text="末页" BackColor="Silver" Width="56px" OnClick="lbtnPageLast_Click"></asp:LinkButton>
            </td>
        </tr>
    </table>
</asp:Content>
