Преглед изворни кода

【修改】移动端-课表:带一次加载返回间隔14天的开始时间和结束时间;

新疆警官学校中职
dyy пре 2 година
родитељ
комит
f103e45887
1 измењених фајлова са 5 додато и 5 уклоњено
  1. +5
    -5
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/TimeTable.cs

+ 5
- 5
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/TimeTable.cs Прегледај датотеку

@@ -270,17 +270,17 @@ namespace Learun.Application.WebApi.Modules
{ {
startDate = StartTime.ToString("yyyy-MM-dd"); startDate = StartTime.ToString("yyyy-MM-dd");
} }
endDate = Common.CalculateFirstDateOfWeek(StartTime.AddDays(((curWeek - 1) * 14))).AddDays(9).ToString("yyyy-MM-dd");
endDate = Common.CalculateFirstDateOfWeek(StartTime.AddDays(((curWeek - 1) * 14))).AddDays(13).ToString("yyyy-MM-dd");
param.StartDate = startDate; param.StartDate = startDate;
param.EndDate = endDate; param.EndDate = endDate;
} }
var Data = arrangeLessonTermIBLL.GetTimeTableInEducation("", "", "", "", "");
var Data = new List<TwoDevelopment.EducationalAdministration.TimeTable>();
if (param.Description == "学生") if (param.Description == "学生")
{ {
var Stulist = stuInfoBasicIBLL.GetAllList().Where(x => x.StuNo == param.Account).FirstOrDefault(); var Stulist = stuInfoBasicIBLL.GetAllList().Where(x => x.StuNo == param.Account).FirstOrDefault();
if (Stulist != null) if (Stulist != null)
{ {
Data = arrangeLessonTermIBLL.GetTimeTableInEducation(param.StartDate, param.EndDate, Stulist.ClassNo, "", "");
Data = arrangeLessonTermIBLL.GetTimeTableInEducation(param.StartDate, param.EndDate, Stulist.ClassNo, "", "").ToList();
} }
} }
else if (param.Description == "教师") else if (param.Description == "教师")
@@ -289,7 +289,7 @@ namespace Learun.Application.WebApi.Modules
var empInfo = empInfoIbll.GetAllList().Where(x => x.EmpNo == param.Account).FirstOrDefault().EmpNo; var empInfo = empInfoIbll.GetAllList().Where(x => x.EmpNo == param.Account).FirstOrDefault().EmpNo;
if (empInfo != null) if (empInfo != null)
{ {
Data = arrangeLessonTermIBLL.GetTimeTableInEducation(param.StartDate, param.EndDate, "", param.Account, "");
Data = arrangeLessonTermIBLL.GetTimeTableInEducation(param.StartDate, param.EndDate, "", param.Account, "").ToList();
} }
} }


@@ -326,7 +326,7 @@ namespace Learun.Application.WebApi.Modules
} }
; ;
var result = new var result = new
{ schoolName = "课程表", semester = $"{strAcademicYear}学年度 第{strSemester}学期", startDate = startDate, endDate = endDate, weekList = formatData };
{ schoolName = "课程表", semester = $"{strAcademicYear}学年度 第{strSemester}学期", startDate = param.StartDate, endDate = param.EndDate, weekList = formatData };
return Success(result); return Success(result);


} }


Loading…
Откажи
Сачувај