<%@ Page Language="C#" MasterPageFile="MasterPage.Master" AutoEventWireup="true" CodeBehind="UserCoupon.aspx.cs" Inherits="SocoShop.Web.Admin.UserCoupon" %>
<%@ Register Namespace="SkyCES.EntLib" Assembly="SkyCES.EntLib" TagPrefix="SkyCES"%>
<%@ Import Namespace="SocoShop.Common" %>
<%@ Import Namespace="SocoShop.Business" %>
<asp:Content ID="MasterContent" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
<script type="text/javascript" src="/Admin/Pop/lhgdialog_ex.js"></script>	
<div class="position"><img src="/Admin/Style/Images/PositionIcon.png"  alt=""/>用户优惠券列表</div>	
<ul class="search">
    <li>发放类型：<asp:DropDownList ID="GetType" runat="server"><asp:ListItem Value="">所有</asp:ListItem><asp:ListItem Value="1">在线发放</asp:ListItem><asp:ListItem Value="2">线下发放</asp:ListItem></asp:DropDownList> 
    是否使用：<asp:DropDownList ID="IsUse" runat="server"><asp:ListItem Value="">所有</asp:ListItem><asp:ListItem Value="0">未使用</asp:ListItem><asp:ListItem Value="1">已使用</asp:ListItem></asp:DropDownList> 
    编号：<asp:TextBox ID="Number" CssClass="input" runat="server" Height="20px" Width="150px" /> <asp:Button CssClass="button" ID="SearchButton" Text=" 搜 索 " runat="server"  OnClick="SearchButton_Click" /></li>
</ul>
<ul class="listHead">
	<li style="width:5%">ID</li>
	<li style="width:30%; text-align:left;text-indent:8px;">优惠券编号</li>
	<li style="width:15%">密码</li>  
	<li style="width:15%">获取类型</li>  
	<li style="width:10%">所属用户</li>   
	<li style="width:10%">是否使用</li>   
	<li style="width:10%">订单</li>     
	<li style="width:5%">选择</li>        
</ul>
<asp:Repeater ID="RecordList" runat="server">
	<ItemTemplate>	     
        	<ul class="listMain" onmousemove="ChangeColor(this,'#FFFDD7')" onmouseout="ChangeColor(this,'#FFF')">
			<li style="width:5%"><%# Eval("ID") %></li>
			<li style="width:30%; text-align:left;text-indent:8px;"><%# Eval("Number") %></li>
			<li style="width:15%"><%#Eval("Password")%></li>
            <li style="width:15%"><%# CouponBLL.ReadCouponType(Convert.ToInt32(Eval("GetType")))%></li>   
            <li style="width:10%"><%#Eval("UserName")%></li>   
            <li style="width:10%"><%#ShopCommon.GetBoolString(Eval("IsUse"))%></li>   
            <li style="width:10%"><%#ReadOrderLink(Convert.ToInt32(Eval("OrderID")))%></li>  
			<li style="width:5%"><input type="checkbox" name="SelectID" value="<%# Eval("ID") %>" /></li> 	        
		</ul>
        </ItemTemplate>
</asp:Repeater>
<div class="listPage"><SkyCES:CommonPager ID="MyPager" runat="server" /></div>
<div class="action">
        <asp:Button CssClass="button" ID="ExportButton" Text="导出Excel" runat="server"  OnClick="ExportButton_Click"/>&nbsp;<asp:Button CssClass="button" ID="DeleteButton" Text=" 删 除 " OnClientClick="return checkSelect()" runat="server"  OnClick="DeleteButton_Click"/>&nbsp;<input type="checkbox" name="All" onclick="selectAll(this)" />全选/取消
</div>
</asp:Content>
