<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true" CodeBehind="PaymentList.aspx.cs" Inherits="PPFOR.Admin.Sys.WebConfig.PaymentList" Title="支付方式列表" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server">
<script src="../../../JS/gridview.js" type="text/javascript"></script>  
<script language="javascript" type="text/javascript">
 
</script>
<form id="form1" action="PaymentList.aspx" method="post" runat="server">
    <div class="table-ppfor">
		<i></i><u></u>
		<ul>
		  <li><asp:Label ID="PPFOR_goForAddPayment" runat="server"></asp:Label></li>
		</ul>
	</div>
    <asp:GridView ID="PPFOR_showPaymentList" runat="server" CssClass="forgridview" OnRowDataBound="PPFOR_gridViewRowDataBound" AllowPaging="false" AutoGenerateColumns="False"  DataKeyNames="ID"  Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" EmptyDataText="还没有添加支付方式">
           <Columns>                
             <asp:TemplateField ShowHeader="False" HeaderText="" HeaderStyle-HorizontalAlign="Center">
                 <ItemStyle Wrap="False" HorizontalAlign="Center" />
                 <HeaderTemplate>
                     <asp:CheckBox Text='<%#Eval("IsFix") %>' ID="PPFOR_selectPayment" runat="server"></asp:CheckBox>
                 </HeaderTemplate>
                 <ItemTemplate>
                     <asp:CheckBox Text='<%#Eval("IsFix") %>' ID="PPFOR_selectPayment" runat="server"></asp:CheckBox>
                 </ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField HeaderText="ID" DataField="ID" HeaderStyle-Font-Bold="false"/>
             <asp:BoundField HeaderText="支付方式名称" DataField="Name" HeaderStyle-Font-Bold="false"/>
             <asp:BoundField HeaderText="支付方式类型" DataField="Type" HeaderStyle-Font-Bold="false"/>       
             <asp:BoundField HeaderText="支付费率" DataField="Rate" DataFormatString="{0}%" HeaderStyle-Font-Bold="false"/>       
             <asp:BoundField HeaderText="支付金额" DataField="FixMoney" HeaderStyle-Font-Bold="false"/>       
             <asp:TemplateField HeaderText="是否启用" HeaderStyle-Font-Bold="false">
                <ItemTemplate><asp:CheckBox ID="PPFOR_status" runat="server" Text='<%#Eval("Status") %>'></asp:CheckBox></ItemTemplate>
             </asp:TemplateField>           
             <asp:TemplateField HeaderText="排列顺序" HeaderStyle-Font-Bold="false">
                <ItemTemplate><asp:TextBox ID="PPFOR_order" runat="server" Text='<%#Eval("Order")%>' Width="50" MaxLength="4" ></asp:TextBox></ItemTemplate>
             </asp:TemplateField>
             <asp:TemplateField HeaderText="操作" HeaderStyle-Font-Bold="false">
                <ItemTemplate><a href="<%#PPFOR_getLinkUrl(Eval("ID"),Eval("Type"))%>">修改</a></ItemTemplate>                
             </asp:TemplateField>
            </Columns>
             <FooterStyle BackColor="#990000" ForeColor="White" /> 
             <RowStyle Wrap="False" HorizontalAlign="Center" Font-Bold="false" BackColor="#ffffff"/> 
             <HeaderStyle HorizontalAlign="Center" BackColor="#F5F5F5" Font-Bold="false" ForeColor="#000000" />
             <AlternatingRowStyle BackColor="#F5F5F5" />
        </asp:GridView>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
        <tr>
          <td>
              <asp:Button ID="PPFOR_updateBatch" CssClass="inputbutton" runat="server" Text="全部更新" OnClick="PPFOR_updateBatchClick"/>
              <asp:Button ID="PPFOR_deletePayment" CssClass="inputbutton" runat="server" Text="删除" OnClick="PPFOR_deletePaymentClick"/>
              <input name="reset" id="reset1" type="reset" class="inputbutton" onmouseover="this.className='inputbutton_hover'" onmouseout="this.className='inputbutton'" value="重置" onclick="SelectAllRows('<%=form1.ClientID%>',false)"/>
                <script type="text/javascript">
                    if("<%=PPFOR_displayRecordOption %>"!='none'){
                        addButtonArray("<%= PPFOR_updateBatch.ClientID %>","<%= PPFOR_deletePayment.ClientID %>","reset1");
                    }
                </script>
            </td>
        </tr>
      </table>
      <br />
</form>        
</asp:Content>
