<%@ page language="C#" masterpagefile="~/Member/MyShopMasterPage.master" autoeventwireup="true" inherits="Member_JXC_AccountSubjectDetail, WebApp_deploy" title="明细分类账" %>

<asp:Content ID="cphContent" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <asp:ScriptManager ID="sm" runat="server">
    </asp:ScriptManager>
    <div class="pageTitle" style="line-height: 30px; vertical-align: middle;">
        &nbsp;&nbsp;&nbsp;&nbsp;<asp:Literal ID="ltrTitle" runat="server">明细分类账</asp:Literal></div>
    <div id="MainMenu">
        <div class="TabText">
            <div style="line-height: 2px;">
                &nbsp;</div>
            <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                    <table class="SearchTableStyle">
                        <tr>
                            <th colspan="3" style="float: left; text-align: left">
                                &nbsp;<b>高级查询：</b>
                            </th>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;会计期间： &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>
                            </td>
                        </tr>
                        <tr>
                            <td colspan="3">
                                &nbsp;会计科目：
                                <asp:DropDownList ID="ddlSubject" runat="server" AutoPostBack="true" OnSelectedIndexChanged="ddlSubject_SelectedIndexChanged">
                                </asp:DropDownList>
                                &nbsp;
                                <asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                            </td>
                        </tr>
                    </table>
                </ContentTemplate>
                <Triggers>
                    <asp:AsyncPostBackTrigger ControlID="btnSearch" EventName="Click" />
                    <asp:AsyncPostBackTrigger ControlID="ddlSubject" EventName="SelectedIndexChanged" />
                </Triggers>
            </asp:UpdatePanel>
            <div style="line-height: 2px;">
                &nbsp;</div>
            <asp:UpdatePanel ID="upList" runat="server">
                <ContentTemplate>
                    <asp:Repeater ID="rptList" runat="server">
                        <HeaderTemplate>
                            <table class="rptrow" cellspacing="0" cellpadding="0">
                                <tr>
                                    <th>
                                        行号
                                    </th>
                                    <th>
                                        日期
                                    </th>
                                    <th>
                                        凭证号码
                                    </th>
                                    <th>
                                        摘要
                                    </th>
                                    <th>
                                        科目编号
                                    </th>
                                    <th>
                                        科目名称
                                    </th>
                                    <th>
                                        借方金额
                                    </th>
                                    <th>
                                        贷方金额
                                    </th>
                                    <th>
                                        借贷方向
                                    </th>
                                    <th>
                                        金额
                                    </th>
                                </tr>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr style="cursor: pointer" onclick="javascript:window.location.href ='CheckAccountAoucher.aspx?Action=checkinfo&InfoID=<%#Eval("AccountAoucherID") %>'"
                                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>
                                    <%# Eval("InputDate")%>
                                </td>
                                <td align="left">
                                    &nbsp;&nbsp;<%# Eval("AccountANumber")%>
                                </td>
                                <td align="left">
                                    &nbsp;&nbsp;<%# Eval("AAItemSummary")%>
                                </td>
                                <td align="left">
                                    &nbsp;&nbsp;<%# Eval("AccountSNumber")%>
                                </td>
                                <td align="left">
                                    &nbsp;&nbsp;
                                    <%# Eval("AccountSName")%>
                                </td>
                                <td align="right">
                                    <asp:Label ID="lblBorrowPrice" runat="server" ForeColor="Green"></asp:Label>&nbsp;&nbsp;
                                    <asp:HiddenField ID="hfBorrowPrice" runat="server" Value='<%# Eval("BorrowPrice") %>' />
                                </td>
                                <td align="right">
                                    <asp:Label ID="lblLoanPrice" runat="server" ForeColor="Green"></asp:Label>&nbsp;&nbsp;
                                    <asp:HiddenField ID="hfLoanPrice" runat="server" Value='<%# Eval("LoanPrice") %>' />
                                </td>
                                <td align="center">
                                    <asp:Label ID="lblLend" runat="server"></asp:Label>&nbsp;&nbsp;
                                </td>
                                <td align="right">
                                    <asp:Label ID="lblMoney" runat="server"></asp:Label>&nbsp;&nbsp;
                                </td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                            <tr class="rptrowTrBg">
                                <td align="center">
                                    <strong>合计</strong>
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td>
                                    &nbsp;
                                </td>
                                <td align="right">
                                    <strong>
                                        <asp:Label ID="lblTotalBorrowPrice" runat="server" ForeColor="Green"></asp:Label>&nbsp;&nbsp;
                                    </strong>
                                </td>
                                <td align="right">
                                    <strong>
                                        <asp:Label ID="lblTotalLoanPrice" runat="server" ForeColor="Green"></asp:Label>&nbsp;&nbsp;
                                    </strong>
                                </td>
                                <td align="center">
                                    <strong>
                                        <asp:Label ID="lblTotalLend" runat="server"></asp:Label>&nbsp;&nbsp; </strong>
                                </td>
                                <td align="right">
                                    <strong>
                                        <asp:Label ID="lblTotalMoney" runat="server"></asp:Label>&nbsp;&nbsp; </strong>
                                </td>
                            </tr>
                            </table>
                        </FooterTemplate>
                    </asp:Repeater>
                    <div style="text-align: center;">
                        <asp:Literal ID="ltrPagePanel" runat="server"></asp:Literal>
                    </div>
                </ContentTemplate>
            </asp:UpdatePanel>
            <div style="line-height: 6px;">
                &nbsp;</div>
        </div>
    </div>
</asp:Content>
