WEB/AdminInfo.aspx.cs
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using BLL;
using Model;
namespace WEB
{
public partial class AdminInfo : System.Web.UI.Page
{
StuBll stuBll = new StuBll();
TeacherBll teacherBll = new TeacherBll();
GradeBll gradeBll = new GradeBll();
protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
splInfo();
}
}
#region
void splInfo()
{
this.rplStudent.DataSource = stuBll.GetStuInfo();
this.rplTeacher.DataSource = teacherBll.GetTeacherInfo();
this.rplStudent.DataBind();
this.rplTeacher.DataBind();
}
protected void rplStudent_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "Del")
{
int stuID = int.Parse(e.CommandArgument.ToString());
bool result = stuBll.DeleteStuInfo(stuID);
if (result == true)
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "close", "<script language='javascript' type='text/javascript'>alert('删除成功!');window.opener.location.href=window.opener.location.href;</script>");
}
else
{
Page.ClientScript.RegisterClientScriptBlock(this.GetType(), "close", "<script language='javascript' type='text/javascript'>alert('删除失败!');</script>");
}
this.rplStudent.DataSource = stuBll.GetStuInfo();
this.rplStudent.DataBind();
}
}
protected void rplTeacher_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "Del")
{
int teachID = int.Parse(e.CommandArgument.ToString());
bool result = teacherBll.DeleteTeachInfo(teachID);
if (result == true)
{
后面还有 14 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。