<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Voucher.aspx.cs" Inherits="MTCUN.WeiXin.Voucher" %>

<%@ Import Namespace="MTCUN" %>
<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <script src="http://res.wx.qq.com/open/js/jweixin-1.0.0.js" type="text/javascript"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <link id="mobileCss" runat="server" href="../mobile/themes/mobile.css" rel="stylesheet"
        type="text/css" />
    <link href="../mobile/msg/Themes/css.css" rel="stylesheet"
        type="text/css" />

    <style type="text/css">
        html body form {
            background-color: red !important;
        }
    </style>

</head>
<body>
    <div style="display: none">
        <asp:Image ID="imgIco" runat="server" ToolTip="ico" />
    </div>
    <form id="form1" runat="server">
        <div id="web_page_contents">
            <div class="search biao_zhun_suo_jin">
                <div runat="server" id="divHB" visible="false" style="margin: auto; margin-top: 100px; width: 120px; color: darkorange" class="striking">
                    暂无新的活动！！
                </div>
                <asp:Repeater ID="repBlock" runat="server" OnItemCommand="repBlock_ItemCommand" OnItemDataBound="repBlock_ItemDataBound">
                    <ItemTemplate>
                        <div class="kuai_show">
                            <div class="hongbaorow">
                                <div class="logo">
                                    <div class="money">
                                        <%#Eval("Money","{0:c2}")%>
                                    </div>
                                </div>

                                <div class="name">
                                    <h1><%#Eval("VoucherGroupName")%></h1>
                                </div>
                                <div class="time">
                                    剩余数量：<%#(int)Eval("TotalCount") - (int)Eval("ReceiveCount")%>
                                </div>
                                <div class="content"><%#Eval("Remark")%></div>
                            </div>
                            <span class="lab_button btn_hongbao">
                                <asp:Button ID="btnAdd" CommandName="Add" CommandArgument='<%#Eval("VoucherGroupID")%>' runat="server" Text="抢红包" /></span>
                        </div>
                    </ItemTemplate>
                </asp:Repeater>

                <div class="kuai" runat="server" id="divMyHB" visible="false">
                    已领红包
                                    <asp:Repeater ID="repHongBao" runat="server" OnItemCommand="repHongBao_ItemCommand" OnItemDataBound="repHongBao_ItemDataBound">
                                        <ItemTemplate>
                                            <div class="kuai">
                                                <div class="hongbaorow">
                                                    <div class="logo">
                                                        <div class="money">
                                                            <%#Eval("Money","{0:c2}")%>
                                                        </div>
                                                    </div>

                                                    <div class="name">
                                                        <h1><%#Eval("VoucherGroupName")%></h1>
                                                    </div>
                                                    <div class="time">
                                                        有效期：<%#Eval("EndDate","{0:d}")%>
                                                    </div>
                                                    <div class="content"><%#Eval("Remark")%></div>
                                                    <div class="codeshow"><span class="lab_button btn_hongbao" onclick="window.location = '<%#string.Format("VoucherCode.aspx?VoucherID={0}&GetUrl={1}",Eval("VoucherID"),swq.Web.PathAndQuery()) %>'">查看代码</span></div>
                                                </div>
                                            </div>
                                        </ItemTemplate>
                                    </asp:Repeater>
                </div>
            </div>
        </div>
    </form>
</body>
</html>
