<%@ page language="C#" masterpagefile="~/Admin/MasterPage/Main.master" autoeventwireup="true" inherits="admin_Coupon_ShopCouponList, App_Web_3olkleaz" title="无标题页" %>
<%@ Register Src="~/Admin/Controls/CurrTool_Panel.ascx" TagName="CurrTool" TagPrefix="html" %>
<%@ Register Src="~/Admin/Controls/CurrImage_Panel.ascx" TagName="CurrImage" TagPrefix="html" %>
<%@ Register TagName="FenYe" TagPrefix="Uc1" Src="~/ascx/fenYe.ascx" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
  <link rel="stylesheet" type="text/css" href="../../css/fenye.css" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
  <div class="divTools">
    <div class="tool-nav">
      <div class="title"> 导航栏</div>
      <asp:HyperLink ID="hy_add" Text="[添加优惠券]" runat="server"/>
      <asp:HyperLink ID="hy_list" Text="[优惠券列表]" runat="server"/>
    </div>
    <div class="clear"> </div>
    <html:CurrTool ID="CurrTool1" Title="优惠券管理" Version="120402" runat="server"/>
    <html:CurrImage ID="CurrImage1" Title="管理优惠券信息" 
            Tips="在这里您可以开启或关闭优惠券兑换；查看优惠券销售及使用情况...." runat="server" />
    <div class="clear"> </div>
    <div class="tool-search">
      <div class="title"></div>
      <div class="search-content" >
        <div>
          <asp:DropDownList runat="server" ID="DropCouponType">
            <asp:ListItem Value="-1">全部类型</asp:ListItem>
            <asp:ListItem Value="0">达到多少减多少</asp:ListItem>
            <asp:ListItem Value="1">现金抵用券</asp:ListItem>
            <asp:ListItem Value="2">折扣</asp:ListItem>
          </asp:DropDownList>
          搜索字：
          <asp:TextBox ID="Seach_Name" runat="server"></asp:TextBox>
            <asp:RadioButtonList ID="RadIsShow" runat="server" RepeatColumns="3" RepeatDirection="Horizontal" RepeatLayout="Flow">
                <asp:ListItem Value="-1" Selected="True">全部</asp:ListItem>
                <asp:ListItem Value="1">在售</asp:ListItem>
                <asp:ListItem Value="0">停止销售</asp:ListItem>
            </asp:RadioButtonList>
          <asp:CheckBox runat="server" ID="chkEndTime" Text="过期" />
          <asp:Button ID="seach" runat="server" Text="搜 索" onclick="seach_Click" CssClass="button" />
        </div>
      </div>
    </div>
    <div class="hr"> </div>
  </div>
  <div class="divContent">
    <asp:ScriptManager ID="ScriptManager1" runat="server"> </asp:ScriptManager>
    <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
      <ContentTemplate>
        <div class="divth" style="margin-bottom:10px;">  
          <asp:Button ID="BtnInsert" Text="新 增" runat="server" CssClass="button" OnClick="BtnInsert_Click" />
          <asp:Button ID="BtnEdit" Text="修 改" ToolTip="如已卖出，则不允许修改" runat="server" CssClass="button" OnClick="BtnEdit_Click" />
          <asp:Button ID="BtnDelete" Text="删除选中项" runat="server" CssClass="button" OnClick="BtnDelete_Click" />
          <asp:Button ID="BtnIsShow" Text="出 售" runat="server" CssClass="button" OnClick="BtnIsShow_Click" />
          <asp:Button ID="BtnNoShow" Text="停止销售" runat="server" CssClass="button" OnClick="BtnNoShow_Click" />
          <asp:Button ID="btnAll" Text=" 全 选 " runat="server" CssClass="button" OnClick="BtnAll_Click" />
          <asp:Button ID="btnInverse" Text=" 反 选 " runat="server" CssClass="button" OnClick="btnInverse_Click" />
        </div>
        <asp:DataGrid ID="DataGrid1" runat="server" AutoGenerateColumns="False" CssClass="content-table"
                    CellPadding="0" GridLines="None" Width="100%" OnSelectedIndexChanged="DataGrid1_SelectedIndexChanged">
          <SelectedItemStyle CssClass="linkDown" />
          <ItemStyle CssClass="BotDas" />
          <HeaderStyle CssClass="tableTitle" />
          <Columns>
          <asp:TemplateColumn HeaderText=" 选中 " ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderStyle-Width="40px">
            <ItemTemplate>
              <asp:CheckBox runat="server" ID="ChkSelect" />
            </ItemTemplate>
          </asp:TemplateColumn>
          <asp:TemplateColumn HeaderText="选择">
            <ItemTemplate>
              <asp:LinkButton ID="LinkButton2" runat="server" CommandName="Select" CausesValidation="False" Text="选择"></asp:LinkButton>
            </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="CountInt" HeaderText="总" />
          <asp:BoundColumn DataField="UsedInt" HeaderText="使用" />
          <asp:BoundColumn DataField="byNum" HeaderText="买出" />
          <asp:BoundColumn DataField="buyInt" HeaderText="兑换" />
          <asp:BoundColumn DataField="Noprefix" HeaderText="前缀" />
          <asp:BoundColumn DataField="BeganNum" HeaderText="开始编号" />
          <asp:BoundColumn DataField="EndNum" HeaderText="结束编号" />
          <asp:BoundColumn DataField="beizhu" HeaderText="备注" />
          <asp:BoundColumn DataField="isShow" 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="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="divth"><Uc1:FenYe runat="server" ID="FenYe1" /></div>
      </ContentTemplate>
    </asp:UpdatePanel>
  </div>
</asp:Content>
