<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Shop_Member_Shop_InvoiceView, mallz" title=" 发 票 信 息 列 表" enableEventValidation="false" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
<script language="javascript" src="../Js/getdate.js"></script>
<asp:ScriptManager ID="ScriptManager1" runat="server" EnablePartialRendering="true"/>

<div class="pageTitle">开发票记录</div>
<br />
    <table class="SearchTableStyle">
         <tr class="tdbg">
            <td class="tdbg5">发票编号：</td>
            <td class="tdbg6"><asp:TextBox ID="TxtInvoiceNum" runat="server"/></td>
            <td class="tdbg5">订单编号：</td>
            <td class="tdbg6"><asp:TextBox ID="TxtOrderNum" runat="server" /></td>
            <td class="tdbg5">买家帐号：</td>
            <td class="tdbg6"><asp:TextBox ID="TxtUserName" runat="server" Height="16px"/></td>
        </tr>
         <tr class="tdbg">
            <td class="tdbg5">起始日期：</td>
            <td class="tdbg6"><asp:TextBox ID="TxtBeginDate" runat="server" Height="16px"/></td>
            <td class="tdbg5">结束日期：</td>
            <td class="tdbg6"><asp:TextBox ID="TxtEndDate" runat="server" Height="16px"/></td>
            <td class="tdbg5"></td>
            <td class="tdbg6"><asp:Button ID="QuickSearchBtn" runat="server" Text=" 查 询 " OnClick="QuickSearchBtn_OnClick" /></td>
        </tr>
    </table>
    <br />
    <table class="SearchTableStyle">
        <tr>
            <td> 你现在查看的是：<asp:DropDownList ID="DropInvoiceType" OnSelectedIndexChanged="DropInvoiceType_OnSelectedIndexChanged" DataTextField="Name" DataValueField="value" runat="server" AutoPostBack="True">
                   <asp:ListItem Value="" Text="所有" Selected="true"/>
                </asp:DropDownList>
    </td></tr></table>
    <br />
    
            <asp:GridView ID="GridView2" runat="server" AutoGenerateColumns="False"  AllowPaging="True" PageSize="15" CssClass="tableHead">
                <Columns>
                    <asp:BoundField DataField="InvoiceNum" HeaderText="发票号码" HeaderStyle-Width="15%" />
                    <asp:TemplateField HeaderText="买家帐号" HeaderStyle-Width="15%">
                        <ItemTemplate>
                            <asp:HyperLink runat="server" ID="username" NavigateUrl='<%# "../Shop/index.aspx?id="+Eval("UserID") %>' Text='<%# Eval("UserName") %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="InvoiceDate" HeaderText="发票日期" HeaderStyle-Width="13%" />
                    <asp:TemplateField HeaderText="发票类型" HeaderStyle-Width="10%">
                        <ItemTemplate>
                            <asp:Literal runat="server" Text='<%# GetInvoiceType(Eval("InvoiceType").ToString()) %>' />
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:BoundField DataField="Invoicetitle" HeaderText="抬头" HeaderStyle-Width="10%" />
                    <asp:HyperLinkField DataNavigateUrlFields="OrderFormNum" DataNavigateUrlFormatString="Shop_BuyOrder.aspx?OrderFormNum={0}" DataTextField="OrderFormNum" HeaderText="订单" HeaderStyle-Width="14%"　 />
                    <asp:BoundField DataField="Drawer" HeaderText="开票人" HeaderStyle-Width="10%" />
                    <asp:BoundField DataField="Inputer" HeaderText="录入员" HeaderStyle-Width="10%" />
                    <asp:BoundField DataField="totalmoney" HeaderText="金额" HeaderStyle-Width="10%" />
                    <asp:BoundField DataField="InputTime" HeaderText="录入时间" HeaderStyle-Width="13%" />
                </Columns>
                <EmptyDataTemplate >
                    <tr>
                        <th>发票号码</th>
                        <th>买家帐号</th>
                        <th>发票日期</th>
                        <th>发票类型</th>
                        <th>抬头</th>
                        <th>开票人</th>
                    </tr>
                    <tr>
                        <td colspan="7">无数据！</td>
                    </tr>
                </EmptyDataTemplate>
            </asp:GridView>
    <br />
    
</asp:Content>

