HyperLesson/Teacher/AuditList-T.aspx.cs
(开头部分) 4KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using BLL;
using Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
namespace HyperLesson
{
public partial class AuditList_T : System.Web.UI.Page
{
//自动删除方法
void AutoDelete()
{
if (LessonManager.AutoDelete())
{
return;
}
}
protected void Page_Load(object sender, EventArgs e)
{
AutoDelete();
if (!IsPostBack)
{
Bind();
}
}
//绑定我的课程数据
private void Bind()
{
Lesson ls = new Lesson()
{
TeacherNum = (Session["userinfo"] as teacher).TeacherNum
};
GridView1.DataSource = LessonManager.getMyAudit(ls);
GridView1.DataBind();
}
//重新提交
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
Lesson ls = new Lesson();
ls.id = int.Parse(GridView1.Rows[e.RowIndex].Cells[0].Text);
ls.LessonName = ((TextBox)(GridView1.Rows[e.RowIndex].Cells[1].Controls[0])).Text;
ls.LessonCode = int.Parse(GridView1.Rows[e.RowIndex].Cells[2].Text);
ls.Teacher = ((TextBox)(GridView1.Rows[e.RowIndex].Cells[3].Controls[0])).Text;
ls.LessonTime = DateTime.Parse(((TextBox)(GridView1.Rows[e.RowIndex].Cells[4].Controls[0])).Text);
ls.LessonPart = ((TextBox)(GridView1.Rows[e.RowIndex].Cells[5].Controls[0])).Text;
ls.LessonNeed = int.Parse(((TextBox)(GridView1.Rows[e.RowIndex].Cells[6].Controls[0])).Text);
ls.LessonScore = int.Parse(GridView1.Rows[e.RowIndex].Cells[7].Text);
ls.LessonStart = DateTime.Parse(GridView1.Rows[e.RowIndex].Cells[8].Text);
ls.LessonEnd = DateTime.Parse(GridView1.Rows[e.RowIndex].Cells[9].Text);
ls.LessonState = ((TextBox)(GridView1.Rows[e.RowIndex].Cells[10].Controls[0])).Text;
ls.LessonAudit = GridView1.Rows[e.RowIndex].Cells[11].Text;
Boolean result = LessonManager.reAudit(ls);
if (result)
{
后面还有 60 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。