Ver código fonte

Merge branch '长阳分支中职' of http://123.57.209.16:3000/bjquanjiang/DigitalScholl into 长阳分支中职

新疆警官学校中职
ndbs 2 anos atrás
pai
commit
c9d6a5e9c8
1 arquivos alterados com 5 adições e 5 exclusões
  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 Ver arquivo

@@ -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);


} }


Carregando…
Cancelar
Salvar