public ActionResult QueryTeacherChooseAllOfStudent() { int year = Convert.ToInt32(HttpContext.Application["userYear"]); string teacherId = (string)Session["Account"]; var res = new ThesisManage_bll().QueryTeacherChooseAllOfStudent(teacherId, year); return(Json(res)); }
/// <summary> /// 2017年3月18日 21:59:16 /// 查询教师已经同意指导非自拟题学生的姓名、班级、论题名、论题来源 /// </summary> /// <returns></returns> public ActionResult QueryTeacherHasChoosedStudentWhoHasNotMadeThesis() { int year = Convert.ToInt32(HttpContext.Application["userYear"]); string teacherId = (string)Session["Account"]; List <TGuidingStudentInfo> result = new ThesisManage_bll().QueryChoosedGuidingStudent(year, teacherId); return(Json(result)); }
/// <summary> /// 2017年3月18日 23:04:36 /// 查询毕业年份为usingYear、选择了编号为teacherId的老师作为指导老师的所有非自拟题学生姓名及毕业论题名称 /// </summary> /// <returns></returns> public ActionResult QueryChooseTeacherThesisInfo() { var usingYear = HttpContext.Application["userYear"]; var teacherId = Session["Account"]; Object[] args = new[] { usingYear, teacherId, "否" }; List <ChooseTeacherThesis> resultList = new ThesisManage_bll().QueryChooseTeacherThesisInfo("QueryUnDrawUpThesis", args); return(Json(resultList)); }
/// <summary> /// 教师同意学生选定自己做指导老师 /// </summary> /// <returns></returns> public ActionResult ChooseStudents() { var temp = Request["data"]; string teacherId = (string)Session["Account"]; var list = JsonHelper.DeserializeJsonToList <SnoAndThesis>(temp); bool res = new ThesisManage_bll().ExecuteTeacherChooseStudentTran("TeacherChooseStudent", teacherId, list); if (res) { return(Json(new { tip = "true", students = list.Select(s => s.sno).ToArray() })); } else { return(Json(new { tip = "有失败操作,请刷新网页查看最新结果" })); } }
public ActionResult CheckThesis(string advice, string isPass, string thesisId) { int passWeight = Convert.ToInt32(HttpContext.Application["pastWeight"]); string analyzerId = Convert.ToString(Session["Account"]); string identity = (string)Session["Identity"]; var thesisBll = new ThesisManage_bll(); bool res = thesisBll.AnalyzeThesis(advice, isPass, thesisId, passWeight, analyzerId, identity, 3); if (res) { return(Json(new { tip = "审核完成" })); } else { return(Json(new { tip = "事务操作失败" })); } }
public ActionResult WithDrawStudent(string sno, long thesisNo) { bool res = new ThesisManage_bll().ExecuteTeacherWithDrawStudentTran(sno, thesisNo, "指导学生上限"); return(Json(new { tip = "sno:" + sno + " thesisNo:" + thesisNo.ToString(), res = res })); }