Web/Admin/online/group_list.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data;
using Common;
namespace Web.Plugin.LineService.admin
{
public partial class group_list : Web.UI.ManagePage
{
protected void Page_Load(object sender, EventArgs e)
{
if (!Page.IsPostBack)
{
RptBind("", "sort_id asc,id desc");
}
}
#region 数据绑定=================================
private void RptBind(string _strWhere, string _orderby)
{
BLL.online_service_group bll = new BLL.online_service_group();
this.rptList.DataSource = bll.GetList(0, _strWhere, _orderby);
this.rptList.DataBind();
}
#endregion
//设置操作
protected void rptList_ItemCommand(object source, RepeaterCommandEventArgs e)
{
int id = Convert.ToInt32(((HiddenField)e.Item.FindControl("hidId")).Value);
BLL.online_service_group bll = new BLL.online_service_group();
Model.online_service_group model = bll.GetModel(id);
switch (e.CommandName.ToLower())
{
case "ibtnlock":
if (model.is_lock == 1)
bll.UpdateField(id, "is_lock=0");
else
bll.UpdateField(id, "is_lock=1");
break;
}
this.RptBind("", "sort_id asc,id desc");
}
//批量删除
protected void btnDelete_Click(object sender, EventArgs e)
{
BLL.online_service_group bll = new BLL.online_service_group();
for (int i = 0; i < rptList.Items.Count; i++)
{
int id = Convert.ToInt32(((HiddenField)rptList.Items[i].FindControl("hidId")).Value);
CheckBox cb = (CheckBox)rptList.Items[i].FindControl("chkId");
if (cb.Checked)
{
bll.Delete(id);
}
后面还有 6 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。