<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master" AutoEventWireup="true"
    Codebehind="MoneyList.aspx.cs" Inherits="PPFOR.Admin.Sys.WebConfig.MoneyList"
    Title="货币列表" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server"> 
<script src="../../JS/gridview.js" type="text/javascript"></script>  
<form id="form1" action="MoneyList.aspx" method="post" runat="server">
    <div class="table-ppfor">
		<i></i><u></u>
		<ul>
		  <li><span><b></b><a href="MoneyAdd.aspx">添加货币</a><s></s></span></li>
		</ul>
	</div> 
  <asp:GridView ID="PPFOR_showMoneyList" OnRowDataBound="PPFOR_gridViewRowDataBound" OnRowDeleting="PPFOR_showMoneyList_RowDeleting" runat="server" AllowPaging="false" AutoGenerateColumns="False"  DataKeyNames="ID"  Width="100%" CellPadding="0" BackColor="White" BorderColor="#CCCCCC" BorderStyle="None" BorderWidth="0px" CssClass="forgridview" EmptyDataText="还没有添加货币" >
           <Columns> 
           <asp:TemplateField ShowHeader="False" HeaderText="" HeaderStyle-HorizontalAlign="Center">
                 <ItemStyle Wrap="False" HorizontalAlign="Center" />
                 <HeaderTemplate>
                     <asp:CheckBox ID="PPFOR_selectMoney" runat="server"></asp:CheckBox>
                 </HeaderTemplate>
                 <ItemTemplate>
                     <asp:CheckBox ID="PPFOR_selectMoney" runat="server"></asp:CheckBox>
                 </ItemTemplate>
             </asp:TemplateField>
             <asp:BoundField HeaderText="ID" DataField="ID" HeaderStyle-Font-Bold="false" ItemStyle-Width="30" ItemStyle-HorizontalAlign="Center"/>
             <asp:BoundField HeaderText="货币名称" DataField="MoneyName" HeaderStyle-Font-Bold="false" />
             <asp:BoundField HeaderText="货币代码" DataField="MoneyCode" HeaderStyle-Font-Bold="false"/>          
             <asp:BoundField HeaderText="货币符号" DataField="MoneySign" HeaderStyle-Font-Bold="false"/> 
             <asp:BoundField HeaderText="相对汇率" DataField="MoneyRate" DataFormatString="{0:N4}" HeaderStyle-Font-Bold="false"/>            
             <asp:BoundField HeaderText="是否默认货币" DataField="IsDefault" HeaderStyle-Font-Bold="false"/>                           
             <asp:TemplateField HeaderText="是否启用" HeaderStyle-Font-Bold="false">
                <ItemTemplate><asp:CheckBox ID="PPFOR_isEnable" runat="server" Text='<%#Eval("IsEnable")%>'></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" ItemStyle-Width="150" ItemStyle-HorizontalAlign="Center">
               <ItemTemplate>                
                <a href='MoneyEdit.aspx?id=<%#Eval("ID") %>'>修改</a> | 
                <asp:LinkButton ID="LinkButton3" runat="server" CausesValidation="False" CommandName="Delete"
                    Text="删除" OnClientClick="return confirm('确认要删除货币吗？');"></asp:LinkButton>
               </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>
        <br />
         <table width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
        <tr>
          <td>
              <asp:Button ID="PPFOR_updateMoneyBatch" CssClass="inputbutton" runat="server" Text="全部更新" OnClick="PPFOR_updateMoneyBatchClick"/>             
              <input name="reset" type="reset" id="reset1" 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_updateMoneyBatch.ClientID %>","reset1");
                    }
                </script> 
              </td>
        </tr>
      </table>
      <br />
    </form>
</asp:Content>
