WebSite3/dean/StudentInfo.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 CheckOnWork.BusinessLogicLayer;
using CheckOnWork.Model;
public partial class dean_StudentInfo : System.Web.UI.Page
{
//初始定义声明的变量,
CheckOnWork.BusinessLogicLayer.StudentBLL bll = new StudentBLL();
//CheckOnWork.BusinessLogicLayer.DeanBLL bllDean=new DeanBLL();
public operation Operation = new operation();
static PagedDataSource pds = new PagedDataSource();
//int departmentId;
static int PageSize = 10;
protected void Page_Load(object sender, EventArgs e)
{
if (Session["State"].ToString() != "dean")
{
Response.Write("<script type='text/javascript'>alert('您还没有登录!无法访问');self.parent.location.href('../default.aspx') </script>");
}
else
{
if (!IsPostBack)
{
doDataBind(PageSize);
//Session["departmentId"] = departmentId;
}
}
}
/// <summary>
/// 数据发生改变时对用户控件重新绑定数据源
/// </summary>
void doDataBind(int size)
{
//departmentId = bllDean.GetDepartmentId(Session["deanId"].ToString());
//绑定上数据源
IList<CheckOnWork.Model.Student> list = bll.GetStudentsByDepartment(Convert.ToInt32( Session["departmentId"]));
pds = Operation.GetPageDataSourceByModel(size, list);
WebUserControl1.PDataSource = pds;
//dataBind(0);
}
protected void rptStudent_ItemCommand(object source, RepeaterCommandEventArgs e)
{
if (e.CommandName == "Delete")
{
string studentId = e.CommandArgument.ToString();
后面还有 21 行代码,购买后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。