<%@ Control Language="C#" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Controls" Assembly="Hishop.Web.Controls" %>
<%@ Register TagPrefix="Hishop" Namespace="Hishop.Web.Components" Assembly="Hishop.Web.Components" %>

<asp:DataList ID="dataListCoupon" runat="server"  Width="100%" DataKeyField="CouponId">
         <HeaderTemplate>
        <table  border="0" cellpadding="0" cellspacing="0" class="datalist">
            <tr height="23" class="diplayth">
                <td class="firstcell">
                    <asp:Literal ID="litJournalNumberHead" runat="server" Text="优惠券名称"></asp:Literal></td>
                <td >
                    <asp:Literal ID="litTradeDateHead" runat="server" Text="满足金额"></asp:Literal></td>
                <td >
                    <asp:Literal ID="litTradeTypeHead" runat="server" Text="面值"></asp:Literal></td>
                    <td >
                    <asp:Literal ID="litNeedPoint" runat="server" Text="兑换所需积分"></asp:Literal></td>
                <td >
                    <asp:Literal ID="litIncomeHead" runat="server" Text="有效期(止)"></asp:Literal></td>
                <td >
                    <asp:Literal ID="Literal1" runat="server" Text="操作"></asp:Literal></td>
                
            </tr>
               </HeaderTemplate>
         <ItemTemplate>
            <tr>
                <td >
                    <Hishop:SubStringLabel ID="SubStringLabel1" Text='<%#Eval("Name") %>' StrLength="12" StrReplace="..  " runat="server" /></td>
                <td >
                    <Hishop:FormatedMoneyLabel ID="lblAmount" Money='<%#Eval("Amount") %>' runat="server"></Hishop:FormatedMoneyLabel></td>
                <td >
                    <Hishop:FormatedMoneyLabel ID="lblValue" Money='<%#Eval("DiscountValue") %>' runat="server"></Hishop:FormatedMoneyLabel></td>
                <td >
                    <asp:Literal ID="litNeedPoint" Text='<%#Eval("NeedPoint") %>' runat="server" /></td>
                <td >
                    <Hishop:FormatedTimeLabel ID="lblClosingTime" Time='<%#Eval("ClosingTime") %>' runat="server"></Hishop:FormatedTimeLabel></td>
                <td><Hishop:ImageLinkButton runat="server" ID="lbtnChage" OnClientClick="return confirm('您真的要兑换这张优惠券吗？');" Text="兑换"  CommandName="Change" /></td>
                
            </tr>
                      </ItemTemplate>
         <FooterTemplate>
         </table>
         </FooterTemplate>
         </asp:DataList>