📄 cardlist.aspx
字号:
<%@ Page Language="C#" MasterPageFile="~/Admin/Masterpage/Page.Master" Theme="Admin" AutoEventWireup="true" CodeBehind="CardList.aspx.cs" Inherits="YXShop.Web.Admin.OrderCard.CardList" %>
<asp:Content ID="Contentheand" runat="server" ContentPlaceHolderID="head">
<script language="javascript">
/*单个删除*/
function Mdelete(id,right)
{
if (right=="f")
{
alert("对不起,您没有删除充值卡的权限");
return false;
}
if(confirm("删除后将不可再恢复,您确认要删除吗?"))
{
var content=YXShop.Web.Admin.OrderCard.CardList.BetchCardDel(id.toString());
if(content.value=="")
{
DeleteRow();
}
else
{
alert("删除失败!");
}
}
}
/*批量删除*/
function Abuth(right)
{
if (right=="f")
{
alert("对不起,您没有充值卡的权限");
return false;
}
if(confirm("删除后将不可再恢复,您确认要删除所选择吗?"))
{
var List="";
var strID = document.getElementsByName("OCW_ID");
for(var i=0;i<strID.length;i++)
{
if(strID[i].checked)
{
List+=strID[i].value+",";
}
}
var content=YXShop.Web.Admin.OrderCard.CardList.BetchCardDel(List);
if(content.value=="")
{
window.location.reload();
}
else
{
alert("删除失败!");
}
}
}
</script>
<script src="../JS/FormSelected.js" type="text/javascript"></script>
</asp:Content>
<asp:Content ID="Content1" runat="server" ContentPlaceHolderID="ContentPlaceTitle">
用户管理
>> 充值卡管理 >> 值充卡列表
</asp:Content>
<asp:Content ID="Content2" runat="server" ContentPlaceHolderID=ContentPlaceHolderMain>
<asp:GridView ID="dgTBCardInfo" runat="server" AutoGenerateColumns="False" DataKeyNames="OCW_ID" AllowPaging="True"
CssClass="taStyle" GridLines="None" CellPadding="1" CellSpacing="1" PageSize="20" Width="100%" OnRowDataBound="dgTBCardInfo_RowDataBound" >
<Columns>
<asp:TemplateField HeaderText="选择">
<ItemTemplate>
<input id="OCW_ID" name="OCW_ID" type="checkbox" style="border: 0" value='<%#Eval("OCW_ID") %>' />
</ItemTemplate>
</asp:TemplateField>
<asp:BoundField DataField="OCW_Type" SortExpression ="OCW_Type" HeaderText="类型" >
<ItemStyle HorizontalAlign="Center" />
</asp:BoundField>
<asp:BoundField SortExpression ="OCW_CardNumber" DataField="OCW_CardNumber" HeaderText="卡号">
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</asp:BoundField>
<asp:BoundField SortExpression ="OCW_FaceValue" DataField="OCW_FaceValue" HeaderText="面值">
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</asp:BoundField>
<asp:BoundField SortExpression ="OCW_FaceValue" DataField="OCW_FaceValue" HeaderText="点数">
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</asp:BoundField>
<asp:BoundField SortExpression ="" DataField="" HeaderText="所属商品">
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</asp:BoundField>
<asp:BoundField SortExpression ="" DataField="" HeaderText="状态">
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</asp:BoundField>
<asp:BoundField SortExpression ="" DataField="" HeaderText="截止日期">
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</asp:BoundField>
<asp:BoundField SortExpression ="OCW_UserName" DataField="OCW_UserName" HeaderText="使用会员">
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</asp:BoundField>
<asp:BoundField SortExpression ="OCW_FullMoneyDate" DataField="OCW_FullMoneyDate" HeaderText="获取时间">
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</asp:BoundField>
<asp:BoundField HeaderText="操作">
<ItemStyle HorizontalAlign="Center" Wrap="False" />
</asp:BoundField>
</Columns>
<RowStyle Wrap="True" CssClass="Rlist" Height="20px" />
<AlternatingRowStyle Wrap="True" CssClass="Alist" Height="20px" />
<HeaderStyle CssClass="head"/>
<EmptyDataTemplate>
<div align="center"><span class="SubTitle"> 没有找到相关信息。</span></div>
</EmptyDataTemplate>
<PagerSettings Visible="False" />
</asp:GridView>
<table width="100%" border="0" align="right" bgcolor="white">
<tr>
<td><input type="checkbox" id="chkAll" onclick="CheckAll(this.form);" />全选/取消
<input type="checkbox" id="BackAll" onclick="CheckBack(this.form);" />返选
<input id="Button1" type="button" onclick="Abuth('<%# GetPowerStr("del") %>')" value="删除所选卡" /></td>
<td align="right" class="noprint"><%
if (ps!=null)
Response.Write(ps.navStr);
%></td>
</tr>
</table>
</asp:Content>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -