Backup/WEB/UpdateTeacher.aspx.cs

(开头部分) 3KB

这里只显示每个文件的开头 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 UpdateTeacher : System.Web.UI.Page
    {
        private GradeBll gradeBll = new GradeBll();
        private StuBll stuBll = new StuBll();
        private TeacherBll teacherBll = new TeacherBll();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)//首次加载
            {
                UpdateTeach();
                
            }
        }
        void UpdateTeach()
        {
            if (Request.QueryString["teaId"] != null)
            {
                int teaId = int.Parse(Request.QueryString["teaId"]);
                List<Model.Teacher> teacher = teacherBll.GetTeacherByID(teaId);
                #region
                //int stuId = int.Parse(Request.QueryString["stuId"]);
                //List<StuInfo> stuInfo = stuBll.GetStuInfoByID(stuId);
                //List<Grade> grade = gradeBll.GetGrade();
                //var result = from t in teacher
                //             join g in grade on t.teaId equals g.gSubject
                //             join i in stuInfo on g.stuId equals i.stuId
                //             where t.teaId == teaId 
                //             select new
                //             {
                //                 t.teaId,
                //                 t.teaName,
                //                 t.teaPwd,
                //                 t.teaSubject,
                //                 g.gScore,
                //                 i.stuName,
                //                 i.stuId,
                //             };
                //foreach (var i in result)
                //{
                //    this.txtNmae.Text = i.teaName;
                //    this.txtPwd.Text = i.teaPwd;
                //    this.txtGread.Text = i.teaSubject;
                //    this.txtStuName.Text = i.stuName;
                //    this.txtScore.Text = i.gScore.ToString();
                //}
                #endregion
                foreach (var i in teacher)
                {
                    this.txtNmae.Text = i.teaName;
后面还有 35 行代码,解锁后查看完整代码

24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明

AI 解读 AI

登录后可用,每次 10 算力,解读结果公开显示在下面。

还没有人解读过这个文件。