<%@ page language="C#" masterpagefile="~/Admin/AdminIndexMaster.master" autoeventwireup="true" inherits="Admin_Admin_JXC_CheckAccountAoucher, 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">
                        &nbsp;&nbsp;<asp:Literal ID="ltrTitle" runat="server">凭证查找</asp:Literal>
                    </td>
                </tr>
            </table>
            <%--列表信息 begin--%>
            <asp:Panel ID="pnlManage" runat="server">
                <table class="nick">
                    <tr>
                        <td colspan="4" class="tit left1">
                            &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>
                        </td>
                        <td class="ltd">
                            &nbsp;凭证编号：
                        </td>
                        <td class="rtd">
                            &nbsp;<asp:TextBox ID="txtSearchInfoNumber" CausesValidation="false" runat="server"
                                Width="200px"></asp:TextBox>
                        </td>
                    </tr>
                    <tr>
                        <td colspan="4">
                            &nbsp;<asp:Button ID="btnSearch" runat="server" Text="查询" OnClick="btnSearch_Click" />
                        </td>
                    </tr>
                </table>              
                <asp:GridView ID="gvManage" CssClass="adminlist" runat="server" AllowPaging="True"
                     OnPageIndexChanging="gridView_PageIndexChanging" OnRowDataBound="gridView_RowDataBound"
                    AutoGenerateColumns="false" PageSize="10" RowStyle-HorizontalAlign="Center" RowStyle-BorderStyle="Solid"
                    RowStyle-BorderWidth="1px">
                    <Columns>
                        <asp:BoundField HeaderText="行号" ItemStyle-HorizontalAlign="Center" DataField="RowCount" />
                        <asp:TemplateField HeaderText="凭证号码">
                            <ItemTemplate>
                                <asp:HiddenField ID="hfAccountAoucherID" runat="server" Value='<%# Eval("AccountAoucherID") %>' />
                           <%# Eval("AccountANumber") %>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="日期">
                            <ItemTemplate>
                                <%# Eval("InputDate") == DBNull.Value ? "" : Eval("InputDate")%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="审核">
                            <ItemTemplate>
                                <%# Eval("IsCaudit") == DBNull.Value ? "" : Eval("IsCaudit")%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="凭证摘要">
                            <ItemTemplate>
                                <%# Eval("AAItemSummary") == DBNull.Value ? "" : Eval("AAItemSummary")%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="科目编号">
                            <ItemTemplate>
                                &nbsp;&nbsp;
                                <%# Eval("AccountSNumber") == DBNull.Value ? "" : Eval("AccountSNumber")%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="科目名称">
                            <ItemTemplate>
                                &nbsp;&nbsp;
                                <%# Eval("AccountSName") == DBNull.Value ? "" : Eval("AccountSName")%>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Left" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="借方金额">
                            <ItemTemplate>
                                <%# Eval("BorrowPrice") == DBNull.Value ? "" : Eval("BorrowPrice")%>&nbsp;&nbsp;
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                        <asp:TemplateField HeaderText="贷方金额">
                            <ItemTemplate>
                                <%# Eval("LoanPrice") == DBNull.Value ? "" : Eval("LoanPrice")%>&nbsp;&nbsp;
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Right" />
                        </asp:TemplateField>
                        <%--<asp:TemplateField HeaderText="操作">
                            <ItemTemplate>
                                <asp:LinkButton ID="lkbtnDel" runat="server" CommandName="DelInfo" CommandArgument='<%#Eval("AccountAoucherID") %>' OnCommand="Button_Command"
                                    Text="删除" OnClientClick="return confirm('确定要删除这栏信息吗？');"></asp:LinkButton>
                            </ItemTemplate>
                        </asp:TemplateField>--%>
                    </Columns>
                    <EmptyDataTemplate>
                        <table class="adminlist" style="width: 100%">
                            <tr>
                                <th>
                                    行号
                                </th>
                                <th>
                                    凭证号码
                                </th>
                                <th>
                                    日期
                                </th>
                                <th>
                                    审核
                                </th>
                                <th>
                                    凭证摘要
                                </th>
                                <th>
                                    科目编号
                                </th>
                                <th>
                                    科目名称
                                </th>
                                <th>
                                    借方金额
                                </th>
                                <th>
                                    贷方金额
                                </th>
                            </tr>
                            <tr>
                                <td colspan="9">
                                    没有符合查询条件的记录！
                                </td>
                            </tr>
                        </table>
                    </EmptyDataTemplate>
                </asp:GridView>
                <div style="text-align:center;">
                    <asp:Literal ID="ltrPagePanel" runat="server"></asp:Literal>
                </div>
            </asp:Panel>
            <%--列表信息 end--%>
            <%--详细信息 begin--%>
            <asp:Panel ID="pnlDetail" runat="server">
            </asp:Panel>
            <%--详细信息 end--%>
        </div>
    </div>
</asp:Content>
