<%@ page language="C#" autoeventwireup="true" inherits="V5Shop.Member.User_Coupon_Manage, V5Shop.Member" enableviewstatemac="false" enableEventValidation="false" viewStateEncryptionMode="Never" %>

<%@ Register Assembly="V5Shop.Control" Namespace="V5Shop.Control" TagPrefix="cc1" %>
<%@ Register Src="control/HiddenField.ascx" TagName="HiddenField" TagPrefix="uc1" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    <link href="css/css.css" rel="stylesheet" type="text/css" />
    <link href="css/membercss.css" rel="stylesheet" type="text/css" />
    <title>威博单用户系统</title>
    <script type="text/javascript" language="javascript" src="Js/Common.js"></script>
</head>
<body>
    <form id="form1" runat="server">
        <div>
            <table border="0" cellpadding="5" cellspacing="0" class="membertable">
                <tr>
                    <td height="20" colspan="2" background="../images/user/tbj10.gif" bgcolor="#65697A">
                        <font color="FFFFFF"><strong>
                            <asp:Label ID="Label6" runat="server" Text="- 我的优惠券 -" Style="color: #ffffff; font-weight: bold;" />
                        </strong></font>
                    </td>
                </tr>
                <tr>
                    <td style="border: 1px #CCCCCC solid; padding: 20px; text-align: left; background: #F9F9F9;">
                        <asp:Label ID="Label1" runat="server" Text="绑定优惠券：" Font-Bold="True"></asp:Label>
                        <asp:Label ID="Label2" runat="server" Text="将优惠券挂记到自己的名下，别人将无法将使用该优惠券。优惠券格式为：AAAA-BBBB-CCCC-DDDD"></asp:Label>
                        <br />
                        <asp:Label ID="Label3" runat="server" Text="请输入要绑定的优惠券券号：" Font-Bold="True"></asp:Label>
                        <asp:TextBox ID="txtNumber" runat="server" Width="200px" CssClass="input2" />
                        <asp:Button ID="btnBind" runat="server" CssClass="input" Text="绑定优惠券" OnClick="btnBind_Click" /></td>
                </tr>
                <tr>
                    <td colspan="2" style="background-color: #FFFFFF; width: 100%; text-align: center">
                        <div id="content" class="opreate">
                            <div style="padding-right: 25px; padding-left: 25px; padding-bottom: 3px; color: #4b6888; padding-top: 3px; border-bottom: #cccccc 1px solid">
                                <input name="checkbox" type="checkbox" class="checkbox" id="CheckAllBox" onclick="CheckAll()" />
                                全选
        　    <asp:LinkButton ID="btnDel" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClick="btnDel_Click" OnClientClick="return CheckDel()"><img src="images/icon/key_delete.gif" alt="删除"/> 删除</asp:LinkButton>
        　    <asp:LinkButton ID="btnView" runat="server" CausesValidation="False" ForeColor="#4B6888" meta:resourcekey="btnDelResource2" OnClientClick="return CheckSelectOne()" OnClick="btnView_Click"><img src="images/icon/key_detail.gif" alt=""/> 查看</asp:LinkButton>
                            </div>
                            <div class="listborder">
                                <cc1:V5ShopGridView ID="GridViewShow" runat="server" AllowPaging="True" AllowSorting="True" PageSize="10" AutoGenerateColumns="False" CssClass="datalist" EmptyDataText="没有任何可用信息！" HeaderStyle-ForeColor="#000000">
                                    <PagerSettings Mode="NumericFirstLast" />
                                    <Columns>
                                        <asp:TemplateField meta:resourcekey="DetilData">
                                            <itemtemplate>
                                                <input name="checkbox2" type="checkbox" class="checkbox" id="CheckBoxID" onmouseover="this.mouse='over'" onmouseout="this.mouse='out'" value='<%# Eval("ID") %>' runat="server" />
                                            </itemtemplate>
                                            <itemstyle horizontalalign="Center" width="5%" />
                                        </asp:TemplateField>
                                        <asp:BoundField DataField="ID" HeaderText="ID" SortExpression="ID" />
                                        <asp:BoundField DataField="Name" HeaderText="名称" SortExpression="Name" />
                                        <asp:BoundField DataField="Number" HeaderText="券号" SortExpression="Number" />
                                        <asp:BoundField DataField="MinusPrice" HeaderText="面值" SortExpression="MinusPrice" />
                                        <asp:BoundField DataField="StartDate" HeaderText="开始时间" SortExpression="StartDate" />
                                        <asp:BoundField DataField="EndDate" HeaderText="结束时间" SortExpression="EndDate" />
                                        <asp:TemplateField meta:resourcekey="DetilData" HeaderText="使用状态" SortExpression="IsUsed">
                                            <itemtemplate>
                          	                    <asp:Label ID="lblIsUsed" runat="server" Text='<%# FormatIsUsedState(DataBinder.Eval(Container, "DataItem(IsUsed)","{0}")) %>'></asp:Label>
                                            </itemtemplate>
                                        </asp:TemplateField>
                                    </Columns>
                                    <HeaderStyle CssClass="category" ForeColor="Black" />
                                </cc1:V5ShopGridView>
                            </div>
                        </div>
                        <div id="hiddenfield">
                            <asp:HiddenField ID="CheckedIDS" runat="server" Value="0" />
                            <asp:HiddenField ID="PageIndex" runat="server" Value="0" />
                            <asp:HiddenField ID="MaxPageIndex" runat="server" Value="0" />
                            <uc1:HiddenField ID="Alert" runat="server" />
                        </div>
                    </td>
                </tr>
            </table>
        </div>
    </form>
</body>
</html>
