<%@ page language="C#" autoeventwireup="true" inherits="UserInfo_Exchange, App_Web__gs0lhif" %>
<%@ register tagname="FenYe" tagprefix="Uc1" src="/ascx/fenYe.ascx" %>
<%@ Register Src="temp/top.ascx" TagName="pageTop" TagPrefix="uc1" %>
<%@ Register Src="temp/bottom.ascx" TagName="pageBottom" TagPrefix="uc1" %>
<%@ Register Src="temp/UserLeft.ascx" TagName="pageLeft" 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>
    <title>积分兑换 - 会员首页</title>
    <link href="../css/style.css" rel="stylesheet" type="text/css" />
    <link href="../css/fenye.css" rel="stylesheet" type="text/css" />
    <link href="green/css/style.css" rel="stylesheet" type="text/css" />
  <script src="/js/calendar.js" type="text/javascript" charset="gb2312"></script>
</head>
<body>
<uc1:pageTop runat="server" ID="PageTop" />
<div id="user_box">
  <uc1:pageLeft runat="server" ID="PageLeft" />
  <div id="user_box_right">
    <div class="clearfix usBox_y" style="_height:1%;">
      <h5 style="border-bottom:0;"><span style="padding-left:10px;">积分兑换</span></h5>
      <form id="Form1" runat="server">
      <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
        <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
        <ContentTemplate>
        <asp:DataGrid ID="DataGrid1" runat="server" AutoGenerateColumns="False" CssClass="bgTable"
          CellSpacing="1" CellPadding="0" GridLines="None" Width="100%">
          <ItemStyle CssClass="bgWhite" />
          <Columns>
          <asp:TemplateColumn HeaderText=" 选中 " ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="40px">
            <ItemTemplate>
              <asp:CheckBox runat="server" ID="ChkSelect" AutoPostBack="true" />
            </ItemTemplate>
          </asp:TemplateColumn>
          <asp:BoundColumn DataField="CouponName" HeaderText="名称" />
          <asp:BoundColumn DataField="CouponType2" HeaderText="类型" />
          <asp:TemplateColumn HeaderText="面值">
            <ItemTemplate>
              <asp:Literal runat="server" ID="LitFaceValue"></asp:Literal>
            </ItemTemplate>
          </asp:TemplateColumn>
          <asp:BoundColumn DataField="surplus" HeaderText="剩余" />
          <asp:BoundColumn DataField="buyInt" HeaderText="兑换所需积分" />
          <asp:BoundColumn DataField="beizhu" HeaderText="备注" />
          <asp:BoundColumn DataField="EndTime" HeaderText="结束时间" />
          <asp:TemplateColumn HeaderText="变量" ItemStyle-Width="2px" HeaderStyle-Width="2px" Visible="false">
            <ItemTemplate>
              <asp:Literal runat="server" Visible="false" ID="Uid" Text='<%#DataBinder.Eval(Container.DataItem,"Cid") %>'></asp:Literal>
              <asp:Literal runat="server" Visible="false" ID="buyInt" Text='<%#DataBinder.Eval(Container.DataItem,"buyInt") %>'></asp:Literal>
              <asp:Literal runat="server" Visible="false" ID="CouponType" Text='<%#DataBinder.Eval(Container.DataItem,"CouponType") %>'></asp:Literal>
              <asp:Literal runat="server" Visible="false" ID="FaceValue" Text='<%#DataBinder.Eval(Container.DataItem,"FaceValue") %>'></asp:Literal>
            </ItemTemplate>
          </asp:TemplateColumn>
          <asp:TemplateColumn HeaderText=" " ItemStyle-Width="2px">
            <ItemTemplate> &nbsp; </ItemTemplate>
          </asp:TemplateColumn>
          </Columns>
        </asp:DataGrid>
        <div class="Userfy" style="border-top:none; padding-left:10px;">
          <Uc1:FenYe runat="server" ID="FenYe1" />
        </div>
        <div class="Userfy" style="border-top:none; text-align:center;">
            当前剩余积分：<b style="color:Red;"><%=cookie.CkeSession["UiPoints"]%></b>
            需要扣除积分：<b style="color:Red;"><asp:Literal runat="server" ID="Litjf"></asp:Literal></b>
            <asp:Button runat="server" ID="btnBuy" Text=" 确认兑换 " OnClick="btnBuy_Click" />
        </div>
        </ContentTemplate>
        </asp:UpdatePanel>
      </form>
      <br />
    </div>
  </div>
</div>
<uc1:pageBottom runat="server" ID="PageBottom" />
</body>
</html>