<%@ Page Language="C#" MasterPageFile="~/Admin/MainPage.Master"  AutoEventWireup="true"  Codebehind="PaidList.aspx.cs" Inherits="PPFOR.Admin.Order.PaidList" Title="收款单列表" %>
<%@ Register Src="~/Admin/Ascx/PageBar.ascx" TagName="PageBar" TagPrefix="page" %>
<asp:Content ID="Content1" ContentPlaceHolderID="PPFOR_mainContent" runat="server"> 
<form id="form1" action="PaidList.aspx" method="post" runat="server">
<script src="../JS/gridview.js" type="text/javascript"></script>  
<div class="table-ppfor">
	<i></i><u></u>
	<ul>
	  <li><span style="display:none;"><b></b><a href="#">添加订单</a><s></s></span></li>
	  <li>
            <asp:DropDownList Width="100px" ID="PPFOR_paidSearchCase" runat="server">
		        <asp:ListItem Text="订单号" Value="1"></asp:ListItem>
		        <asp:ListItem Text="收款账户" Value="2"></asp:ListItem>
		      </asp:DropDownList>
		    <asp:TextBox ID="PPFOR_paidSearchText" runat="server" Width="100px" MaxLength="64"></asp:TextBox>
		    <asp:Button ID="PPFOR_paidSearch" runat="server" Text="搜索" CssClass="blueinput" OnClick="PPFOR_paidSearchClick" />
	    </li>	    
	</ul>
</div>
<asp:GridView ID="PPFOR_showPaidList" CssClass="forgridview" runat="server" OnRowDeleting="PPFOR_showPaidList_RowDeleting" 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 ID="PPFOR_selectPaid" runat="server"></asp:CheckBox>
             </HeaderTemplate>
             <ItemTemplate>
                 <asp:CheckBox ID="PPFOR_selectPaid" runat="server"></asp:CheckBox>
             </ItemTemplate>
         </asp:TemplateField>
         <asp:BoundField HeaderText="ID" DataField="Id" HeaderStyle-Font-Bold="false"/> 
         <asp:HyperLinkField DataNavigateUrlFields="OrderNo" HeaderText="订单号" DataNavigateUrlFormatString="OrderEdit.aspx?ono={0}" DataTextField="OrderNo" HeaderStyle-Font-Bold="false"/>                   
         <asp:BoundField HeaderText="付款账户" DataField="PAccount" NullDisplayText="-" HeaderStyle-Font-Bold="false"/>             
         <asp:BoundField HeaderText="支付金额" DataField="PaidMoney" NullDisplayText="0" HeaderStyle-Font-Bold="false"/>
         <asp:BoundField HeaderText="支付币别" DataField="PayCurrency" NullDisplayText="" HeaderStyle-Font-Bold="false"/>  
         <asp:BoundField HeaderText="付款方式" DataField="Payment" NullDisplayText="-" HeaderStyle-Font-Bold="false"/>
         <asp:BoundField HeaderText="确认到账" DataField="IsConfirm" HeaderStyle-Font-Bold="false"/>
         <asp:TemplateField HeaderText="操作" HeaderStyle-Font-Bold="false">
            <ItemTemplate> 
            <a href="PaidHistory.aspx?hid=<%#Eval("Id") %>">查看</a> | 
            <asp:LinkButton ID="PPFOR_deletePaid" 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 />
    <page:PageBar ID="PPFOR_pageBar" runat="server" />
  <br />
  <table width="100%" border="0" cellspacing="0" cellpadding="0" style="display:none;">
    <tr>
      <td>
          <asp:Button ID="PPFOR_deletePaidBatch" CssClass="inputbutton" runat="server" Text="删除" OnClick="PPFOR_deletePaidBatchClick" />
          <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_deletePaidBatch.ClientID %>","reset1");
                }
            </script>  
    </td>
    </tr>
  </table>
  </form>
</asp:Content>
