<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Main.Master" EnableViewState="true"
    Theme="Default" CodeBehind="PrePaidList.aspx.cs" Inherits="OAWeb.crm.orders.PrePaidList" %>

<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="../../UserControls/OrderNav.ascx" TagName="OrderNav" TagPrefix="uc1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlace" runat="server">
<script>
    function AddAmount() {
        OpenDialog('/crm/agent/prepaidAdd.aspx', '录款');
        return false;
    }
</script>
    <!--主体左侧-->
    <table id="plc_profile" cellpadding="0" cellspacing="0" border="0">
        <tr>
            <td class="main_left">
                <uc1:OrderNav ID="OrderNav1" runat="server" />
            </td>
            <td class="main_center">
                <!--主体-->
                <div class="page_main">
                    <div class="page_content">
                        <table class="data_title" style="margin-top: 10px;">
                            <tr>
                                <td class="data_caption">
                                    客户预付款
                                </td>
                            </tr>
                            <tr>
                                <td class="data-field">
                                    <table width="60%">
                                        <tr>
                                            <td class="tb-label" colspan="2">
                                                &nbsp; <a href="/crm/orders/prepaidlist.aspx">预付款余额</a> <a style="margin-left: 15px"
                                                    href="/crm/orders/PrePaidItem.aspx">预付款明细</a>
                                            </td>
                                        </tr>
                                        <tr>
                                            <td class="tb-label">
                                                &nbsp;<asp:DropDownList ID="ddlField" runat="server">
                                                    <asp:ListItem>客户名称</asp:ListItem>
                                                    <asp:ListItem>客户电话</asp:ListItem>
                                                    <asp:ListItem>联系人姓名</asp:ListItem>
                                                    <asp:ListItem>联系人电话</asp:ListItem>
                                                    <asp:ListItem>联系人手机</asp:ListItem>
                                                    <asp:ListItem>联系人QQ</asp:ListItem>
                                                </asp:DropDownList>
                                            </td>
                                            <td class="tb-editor" nowrap="nowrap">
                                                <asp:TextBox ID="txtCustomer" runat="server" Width="200px"></asp:TextBox>
                                                <asp:Button ID="btnSearch" runat="server" OnClick="btnSearch_Click" TabIndex="1"
                                                    Text=" 查 询 " CssClass="btn_77px" />
                                                    <asp:Button ID="btnLUKUAN" runat="server" Text=" 录 款 " CssClass="btn_77px" OnClientClick="AddAmount();return false;" />
                                                <asp:Button ID="btnAdvanceSearch" Visible="false" runat="server" Text="高级查询" CssClass="btn_77px" />
                                            </td>
                                        </tr>
                                    </table>
                                </td>
                            </tr>
                        </table>
                        <div class="buttons-bar" style="margin-bottom: 10px;">
                            <table class="w100p" style="width: 100%">
                                <tr>
                                    <td align="left">
                                    </td>
                                    <td align="right">
                                    </td>
                                </tr>
                            </table>
                        </div>
                        <asp:GridView ID="gvCustomerList" runat="server" AutoGenerateColumns="False" DataKeyNames="CustomerID"
                            OnRowDataBound="gvCustomerList_RowDataBound" PageSize="20">
                            <HeaderStyle Wrap="False" />
                            <Columns>
                                <asp:TemplateField HeaderText="会员相关信息">
                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                    <ItemStyle HorizontalAlign="Left" />
                                    <ItemTemplate>
                                        <%#Eval("CustomerName") %>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="预付款余额">
                                    <ItemStyle HorizontalAlign="Center" />
                                    <ItemTemplate>
                                        <%# Eval("balance") %>
                                        <a href="javascript:void(0)" id="LinkBalance" runat="server" style="margin-left: 5px">
                                            明细</a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="操作">
                                    <HeaderStyle HorizontalAlign="Center"></HeaderStyle>
                                    <ItemStyle HorizontalAlign="Center" CssClass="BtnList" />
                                    <ItemTemplate>
                                        <a href="javascript:void(0)" runat="server" id="LinkAdd">录入款项</a>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        </asp:GridView>
                        <div class="pager-bar">
                            <webdiyer:AspNetPager ID="plCustomer" runat="server" OnPageChanged="plCustomer_PageChanged"
                                PageSize="20">
                            </webdiyer:AspNetPager>
                        </div>
                        <asp:HiddenField ID="hdfSql" runat="server" />
                        <asp:HiddenField ID="hdfOwnerId" runat="server" />
                    </div>
                </div>
            </td>
        </tr>
    </table>
</asp:Content>
