diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ArrangeLessonTermController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ArrangeLessonTermController.cs
index b5530e75b..a527a3cc6 100644
--- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ArrangeLessonTermController.cs
+++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ArrangeLessonTermController.cs
@@ -26,14 +26,10 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
public class ArrangeLessonTermController : MvcControllerBase
{
private ArrangeLessonTermIBLL arrangeLessonTermIBLL = new ArrangeLessonTermBLL();
- private ArrangeLessonTermOfElectiveIBLL arrangeLessonTermOfElectiveIBLL = new ArrangeLessonTermOfElectiveBLL();
private Sys_InformationPushIBLL sys_InformationPushIBLL = new Sys_InformationPushBLL();
private UserIBLL userIbll = new UserBLL();
private WeChatConfigIBLL weChatConfigIbll = new WeChatConfigBLL();
private WeChatTempletIBLL weChatTempletIbll = new WeChatTempletBLL();
- private SchoolCalendarIBLL schoolCalendarIbll = new SchoolCalendarBLL();
- private StuInfoBasicIBLL stuInfoBasicIbll = new StuInfoBasicBLL();
- private EmpInfoIBLL empInfoIbll = new EmpInfoBLL();
#region 视图功能
@@ -78,48 +74,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{
return View();
}
- [HttpGet]
- public ActionResult IndexLessonTerm()
- {
- return View();
- }
- ///
- /// 学生课表
- ///
- ///
- [HttpGet]
- public ActionResult IndexLessonTermStu()
- {
- var LogInfo = LoginUserInfo.Get();
- if (LogInfo.Description == "学生")
- {
- var StuInfo = stuInfoBasicIbll.GetAllList().Where(x => x.StuNo == LogInfo.account);
- if (StuInfo != null)
- {
- ViewBag.ClassNo = StuInfo.FirstOrDefault().ClassNo;
- }
- }
- return View();
- }
- ///
- /// 教师课表
- ///
- ///
- [HttpGet]
- public ActionResult IndexLessonTermTeach()
- {
- var LogInfo = LoginUserInfo.Get();
- if (LogInfo.Description == "教师")
- {
- var empInfo = empInfoIbll.GetAllList().Where(x => x.EmpNo == LogInfo.account);
- if (empInfo != null)
- {
- ViewBag.EmpNo = empInfo.FirstOrDefault().EmpNo;
- }
- }
- return View();
- }
-
#endregion
#region 获取数据
@@ -156,19 +110,6 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
};
return Success(jsonData);
}
-
- ///
- /// 排课管理 获取左侧树结构
- ///
- ///
- [HttpGet]
- [AjaxOnly]
- public ActionResult GetTree()
- {
- var data = arrangeLessonTermIBLL.GetTree();
- return Success(data);
- }
-
///
/// 获取表单数据
/// 主键
@@ -181,225 +122,22 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
var data = arrangeLessonTermIBLL.GetEntity(keyValue);
return Success(data);
}
-
///
- /// 获取周次
+ /// 获取调度时间数据
///
///
[HttpGet]
[AjaxOnly]
- public ActionResult GetWeekTime()
- {
- int weekTimes = 0;
- int curWeek = 0;
- //开始时间
- var startdate = DateTime.Today;
- var startDate = Common.CalculateFirstDateOfWeek(startdate).ToString("yyyy-MM-dd");
- //var endDate = Common.CalculateLastDateOfWeek(startdate).ToString("yyyy-MM-dd");
-
- var semesterAndYear = Common.GetSemesterAndYear(startDate);
- //var strAcademicYear = semesterAndYear.AcademicYearShort;
- //var strSemester = semesterAndYear.Semester;
- var entity = schoolCalendarIbll.GetSchoolCalendarEntityByNo(semesterAndYear.AcademicYearShort, semesterAndYear.Semester);
- if (entity.StartTime.HasValue && entity.EndTime.HasValue)
- {
- weekTimes = GetYearWeekCount(entity.StartTime.Value, entity.EndTime.Value);
- curWeek = WeekOfYear(startdate, entity.StartTime.Value, entity.EndTime.Value);
- }
-
- var listObj = new List