<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/MasterPage.master" AutoEventWireup="true" Inherits="Kesion.NET.WebSite.Course.Admin.Course.KS_FeePackagesItem" CodeBehind="KS.FeePackagesItem.aspx.cs" %>
<%@ Import Namespace="Kesion.Cache" %>
<%@ Import Namespace="Kesion.Publics" %>
<asp:Content ID="Content1" ContentPlaceHolderID="KSContent" Runat="Server">
  
    <asp:Panel ID="listPanel" runat="server" Width="100%">
      <div class="listedit">
        <ul>
            
            <asp:LinkButton ID="LinkButton2" runat="server"  OnClientClick="return(GetIDS('del'));" OnClick="LinkButton2_Click" CssClass="button">批量删除营销卡</asp:LinkButton>
            <asp:LinkButton ID="addclass" runat="server" OnClientClick="window.print()" CssClass="button">打 印 </asp:LinkButton>
            <a href="KS.FeePackagesPub.aspx?id=<%=couponId %>" class="button">生成营销卡</a>
             <a href="../ExportAggregate/KS.FeePackagesItemExport.aspx?id=<%=KSCMS.S("id") %>&type=2" class="button mr20">导出Excel</a>
<%--            <asp:LinkButton ID="LinkButton1" runat="server" onclick="LinkButton1_Click" CssClass="button">导出Excel</asp:LinkButton>--%>
        </ul>     
      </div>     
	<div class="content-area mt20">     
	     <div class="myTitle"><a href="KS.FeePackages.aspx" class="fr button">返回</a>查看[<asp:Label ID="LabCouponName" runat="server" Text="Label"></asp:Label>]下的营销卡列表   </div> 
         <div class="quickSearch clearfix">
            <div class="SearchBox fl">
                <asp:DropDownList ID="Condition" runat="server" style="margin-right:8px;">
                    <asp:ListItem Value="1">使用人</asp:ListItem>
                    <asp:ListItem Value="2">卡号</asp:ListItem>
                </asp:DropDownList>
                <asp:TextBox onfocus="keyWordFocus();" onblur="keyWordBlur();" Style="color: #ccc" Text="" CssClass="textbox" ID="KeyWord" runat="server" Width="180px"></asp:TextBox>
    
                <asp:Button ID="Button4" runat="server" CssClass="button" OnClick="Button1_Click" Text="开始搜索" />
            </div>
            <div class="property">
                <div class="name button ml15">筛选</div>
                <div class="propertyBox">
                	<ul class="tabs"> 
                        <span class="screen fl">使用状态：</span>
                        <li <%=KSCMS.S("UseFlag")==""?" class='active'":string.Empty %>><a href="KS.FeePackagesItem.Aspx?id=<%=couponId %>"><span>营销卡列表</span></a></li>
                        <li <%=KSCMS.S("UseFlag")=="0"?" class='active'":string.Empty %>><a href="KS.FeePackagesItem.Aspx?id=<%=couponId %>&UseFlag=0"><span>未使用</span></a></li>
                        <li <%=KSCMS.S("UseFlag")=="1"?" class='active'":string.Empty %>><a href="KS.FeePackagesItem.Aspx?id=<%=couponId %>&UseFlag=1"><span>已使用</span></a></li>
                
                    </ul>
                </div>
            </div>
		</div>
    <div>
        <KS:KSGV ID="ProListView" runat="server" AutoGenerateColumns="False" DataKeyNames="FieldID" GridLines="None"
            OnRowDataBound="FieldListView_RowDataBound" PagerType="CustomNumeric" Width="99%" EnableTheming="True" OnRowCommand="FieldListView_RowCommand" CssClass="CTable" EmptyDataText="没有记录!">
            <Columns>
             <asp:TemplateField HeaderText="&lt;input type='checkbox' name='chkall' id='chkall' onClick='CheckAll(this.form);'/&gt;">
                <itemstyle horizontalalign="Center" width="50px" />
                <itemtemplate>
                    <input type="checkbox" name="ids" id="ids" value="<%#Eval("id") %>" />
                </itemtemplate>
              </asp:TemplateField>
              <asp:TemplateField HeaderText="卡号">
                <itemtemplate>
                   <%#Eval("cardNum") %>
                </itemtemplate>
              </asp:TemplateField>

             <asp:BoundField DataField="password" HeaderText="密码">
                <itemstyle width="70px" horizontalalign="Center" />
                </asp:BoundField>
              <asp:BoundField DataField="UserName" HeaderText="使用人">
                <itemstyle width="70px" horizontalalign="Center" />
                </asp:BoundField>
              <asp:TemplateField HeaderText="使用情况">
                <itemstyle horizontalalign="Center" width="150px" />
                <itemtemplate>
                <%# Eval("UseFlag").ToString()=="0"?"未使用":"已使用" %>
                </itemtemplate>
              </asp:TemplateField>
                <asp:TemplateField HeaderText="管理操作">
                <itemtemplate>
                     <asp:LinkButton runat="server" id="delete" commandargument=<%#Eval("id") %> commandname="del">删除</asp:LinkButton>
               </itemtemplate>
                <itemstyle horizontalalign="Center" width="100px" />
                </asp:TemplateField>
            </Columns>
            <HeaderStyle CssClass="CTitle" />
            <EmptyDataRowStyle CssClass="emptycss" />
        </KS:KSGV>
        </div>
        
          <KS:Page ID="Page1" runat="server" />
        
        
          <br />
        <script type="text/javascript">
            showtips('<span class="state"><strong>说明：</strong><br /></span>您可以在这里批量删除营销卡或是打印营销卡等管理操作!');
		</script>
     </asp:Panel>
    
	</div>    

</asp:Content>