<%@ Page Title="" Language="C#" MasterPageFile="~/Main.Master" AutoEventWireup="true"
    CodeBehind="PaymentList.aspx.cs" Inherits="OAWeb.Sys.Payment" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
    <!--主体-->
    <div class="page_main">
        <div class="page_content">
            <table class="data_title" cellspacing="3">
                <tr>
                    <td class="data_caption">
                        支付方式管理
                    </td>
                </tr>
            </table>
            <div class="page_op">
                <asp:Button ID="btnNewPayment" runat="server" Text="新增支付" CssClass="btn_77px" OnClientClick="window.location.href='/Sys/PaymentEdit.aspx';return false;" />
            </div>
            <div class="list">
                <asp:GridView ID="gvData" runat="server" AutoGenerateColumns="False" DataKeyNames="Id"
                    GridLines="None" OnRowDataBound="gvData_RowDataBound" CellPadding="0" CssClass="table_list"
                    EnableModelValidation="True">
                    <RowStyle HorizontalAlign="Left" />
                    <Columns>
                        <asp:TemplateField HeaderText="方式类型">
                            <ItemTemplate>
                                <%#Eval("PayType").ToString() == "0"? "预存款支付": (Eval("PayType").ToString() == "1"? "线下支付" : "网上支付")%>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="PayName" HeaderText="支付方式"></asp:BoundField>
                        <asp:BoundField DataField="PayFee" HeaderText="支付费率"></asp:BoundField>
                        <asp:BoundField DataField="SortCode" HeaderText="排序" />
                        <asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="lbtnEdit" runat="server">编辑</asp:LinkButton>
                                <asp:LinkButton ID="lbtnDelete" runat="server">删除</asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
                </asp:GridView>
            </div>
        </div>
    </div>
</asp:Content>
