<%@ page language="C#" masterpagefile="~/Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_JXC_SearchReceiptMoney, WebApp_deploy" title="应收账款管理" %>

<asp:Content ID="cphContent" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <div id="MainMenu">
        <div class="TabText">
            <table class="nick" id="table_item" runat="server">
                <tr>
                    <td class="tit left1">
                        <asp:Literal ID="ltrTitle" runat="server">应收账款查询</asp:Literal>
                    </td>
                </tr>
            </table>
            <table class="nick">
                <tr>
                    <td colspan="4" class="tit">
                        &nbsp;<b>高级查询：</b>
                    </td>
                </tr>
                <tr>
                    <td class="ltd">
                        &nbsp;收款日期：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:TextBox ID="txtSearchBeginDate" runat="server" onfocus="WdatePicker()"
                            CssClass="Wdate"></asp:TextBox>
                        &nbsp;&nbsp;至：&nbsp;&nbsp;<asp:TextBox ID="txtSearchEndDate" runat="server" onfocus="WdatePicker()"
                            CssClass="Wdate"></asp:TextBox>&nbsp;
                    </td>
                    <td class="ltd">
                        &nbsp;客户名称：
                    </td>
                    <td class="rtd">
                        &nbsp;<asp:TextBox ID="txtSearchBuyerName" CausesValidation="false" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td colspan="4">
                        <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                    </td>
                </tr>
            </table>
            <asp:Repeater ID="rptList" runat="server">
                <HeaderTemplate>
                    <table class="adminlist" cellspacing="0" cellpadding="0">
                        <tr>
                            <th>
                                行号
                            </th>
                            <th>
                                客户名称
                            </th>
                            <th>
                                收款日期
                            </th>
                            <th>
                                应收金额
                            </th>
                            <th>
                                已收金额
                            </th>
                            <th>
                                欠收金额
                            </th>
                        </tr>
                </HeaderTemplate>
                <ItemTemplate>
                    <tr onmouseover="c=this.style.backgroundColor;this.style.backgroundColor='#E7EDFE'"
                        onmouseout="this.style.backgroundColor=c;">
                        <td align="center">
                            <asp:Label ID="lblRow" runat="server"></asp:Label>
                        </td>
                        <td align="center">
                            <%# Eval("BuyerName")%>
                        </td>
                        <td align="center">
                            <%#Eval("ReceiptDate")%>
                        </td>
                        <td align="right">
                            <asp:Label ID="lblReceiptMoney" runat="server" Text='<%# Eval("ReceiptMoney") %>'
                                ForeColor="Green"></asp:Label>&nbsp;&nbsp;
                        </td>
                        <td align="right">
                            <asp:Label ID="lblAlreadyReceiptMoney" runat="server" Text='<%# Eval("AlreadyReceiptMoney") %>'
                                ForeColor="Green"></asp:Label>&nbsp;&nbsp;
                        </td>
                        <td align="right">
                            <asp:Label ID="lblNoReceiptMoney" runat="server" ForeColor="Red"></asp:Label>&nbsp;&nbsp;
                        </td>
                    </tr>
                </ItemTemplate>
                <FooterTemplate>
                    <tr>
                        <td align="center">
                            合计
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td align="right">
                            <asp:Label ID="lblTotalReceiptMoney" runat="server" ForeColor="Green"></asp:Label>&nbsp;&nbsp;
                        </td>
                        <td align="right">
                            <asp:Label ID="lblTotalAlreadyReceiptMoney" runat="server" ForeColor="Green"></asp:Label>&nbsp;&nbsp;
                        </td>
                        <td align="right">
                            <asp:Label ID="lblTotalNoReceiptMoney" runat="server" ForeColor="Red"></asp:Label>&nbsp;&nbsp;
                        </td>
                    </tr>
                    </table>
                </FooterTemplate>
            </asp:Repeater>
            <div style="text-align:center;">
                <asp:Literal ID="ltrPagePanel" runat="server"></asp:Literal>
            </div>
            <table class="nick">
                <tr>
                    <td class="rtd">
                        &nbsp;说明：<br />
                        &nbsp;(1)&nbsp;点击数据行可以查看单据信息。<br />
                        &nbsp;(2)&nbsp;“运费总额”指物流总费用。 &nbsp;“发票税额”指需要发票且商品价格未含税时需要买家支付的商品总税额。<br />
                        &nbsp;(3)&nbsp;“订单金额”指订单中“商品总额”+“运费总额”+“发票税额”<br />
                        &nbsp;(4)&nbsp;“应收金额”指订单中“订单金额”+“手续费”。 &nbsp;“欠收金额”指订单中未收的“订单总额”，不包括手续费。
                    </td>
                </tr>
            </table>
            <div style="line-height: 6px;">
                &nbsp;</div>
        </div>
    </div>
</asp:Content>
