示例#1
0
        public void updata(Teacher teacher)
        {
            TeacherBll bll = new TeacherBll();

            Enums.OpResult enums = bll.Updata(teacher);
            if (enums.Equals(Enums.OpResult.更新成功))
            {
                LogHelper.Info(this.GetType(), teacher.TeaAccount + " - " + teacher.TeaName + " - 管理员修改个人信息");
                Response.Write("修改成功");
                Session["user"] = teacher;
                Response.End();
            }
            else
            {
                Response.Write("修改失败");
                Response.End();
            }
        }
示例#2
0
        public void updata(Student student)
        {
            StudentBll bll = new StudentBll();

            Enums.OpResult enums = bll.Updata(student);
            if (enums.Equals(Enums.OpResult.更新成功))
            {
                LogHelper.Info(this.GetType(), student.StuAccount + " - " + student.RealName + " - 学生修改个人资料");
                Response.Write("修改成功");
                Session["user"] = student;
                Response.End();
            }
            else
            {
                Response.Write("修改失败");
                Response.End();
            }
        }