CommonBussiness/admin/manager.aspx.cs
(开头部分) 7KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Model;
using DAL;
using System.Data;
namespace CommonBussiness.admin
{
public partial class manager : System.Web.UI.Page
{
protected void Page_Load(object sender, EventArgs e)
{
if(!IsPostBack)
{
if (Session["loginUser"] == null)
{
Response.Redirect("/admin/login.aspx");
return;
}
else
{
AdminUser item = Session["loginUser"] as AdminUser;
if(item.roleId != 2)
{
ScriptManager.RegisterStartupScript(this.UpdatePanel1, this.GetType(), "", "alert('无操作权限');window.location='/admin/basis.aspx';", true);
return;
}
}
LoadData();
}
}
/// <summary>
/// 获取选择的信息
/// </summary>
/// <returns></returns>
private string selInfo()
{
string Id = "";//获取当前选中的ID
for (int i = 0; i < this.repInfo.Items.Count; i++)
{
CheckBox ckb = (CheckBox)this.repInfo.Items[i].FindControl("cbxAll");
if (ckb.Checked)
{
Id += (this.repInfo.Items[i].FindControl("lblId") as Label).Text + ",";
}
}
return Id;
}
/// <summary>
/// 批量删除
/// </summary>
/// <param name="sender"></param>
/// <param name="e"></param>
protected void Button2_Click(object sender, EventArgs e)
后面还有 151 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。