<%@ page language="C#" masterpagefile="MyShopMasterPage.master" autoeventwireup="true" inherits="Member_Shop_UserExpRecorde, mallz" enableEventValidation="false" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
 <div class="pageTitle"><font color=red>您的商城积分：<asp:Literal ID="LitUserExp" runat="server" /></font> 个积分</div>
 <br />
 <table class="SearchTableStyle">
         <tr>
         <td style="width: 200px; padding-left:20px;">类型：<asp:DropDownList ID="DropType" OnSelectedIndexChanged="DropType_Onchange" runat="server" AutoPostBack="true" >
         <asp:ListItem Value="" Text="全部"/>
         <asp:ListItem  Value="0" Text="消耗" />
         <asp:ListItem Value="1" Text="获得" />
         </asp:DropDownList>
         </td>
         <td>开始日期：<asp:TextBox runat="server"  ID="begindate" Width="75px" Height="16px" AutoPostBack="True" /></td>
         <td>结束日期：
         <asp:TextBox runat="server"  ID="EndDate" Width="75px" Height="16px" AutoPostBack="True" />
             <asp:Button ID="sb" runat="server" Text="查 询" OnClick="Search_OnClick" />
         </td>
     </tr>
 </table> 
 <br />

        <asp:GridView id="GridView1" runat="server" AutoGenerateColumns="False" DataKeyNames="ID" AllowPaging="True" PageSize="15" CssClass="tableHead">
            <Columns>
                <asp:BoundField ReadOnly="True" DataField="ID" HeaderText="编号" ItemStyle-Width="50px"></asp:BoundField>
                <asp:BoundField DataField="CreateTime" HeaderText="发生日期" ItemStyle-Width="150px"></asp:BoundField>
                <asp:TemplateField HeaderText="类型" ItemStyle-Width="100px">
                    <ItemTemplate>
                        <asp:Label ID="cType" runat="server" Text='<%#(Eval("cType").ToString()=="1")?"获得":"消耗" %>' />
                    </ItemTemplate>
                </asp:TemplateField>
                <asp:BoundField DataField="UserEp" HeaderText="数量" ItemStyle-Width="100px"></asp:BoundField>
                <asp:BoundField ReadOnly="True" DataField="Remark" HeaderText="备注">
                </asp:BoundField>
            </Columns>
                    <EmptyDataTemplate >
                    
                    <table class="tableHeader" style="width:98%"><tr><th>编号</th><th>发生日期</th><th>类型</th><th>发生额</th><th>备注</th></tr>
                    <tr><td colspan="5">没有符合查询条件的记录！</td></tr>
                    </table>
                    </EmptyDataTemplate>
        </asp:GridView>

</asp:Content>