|
@@ -2,6 +2,7 @@ |
|
|
using System.Collections.Generic; |
|
|
using System.Collections.Generic; |
|
|
using System.Linq; |
|
|
using System.Linq; |
|
|
using System.Web; |
|
|
using System.Web; |
|
|
|
|
|
using Learun.Application.Base.SystemModule; |
|
|
using Learun.Application.TwoDevelopment.EducationalAdministration; |
|
|
using Learun.Application.TwoDevelopment.EducationalAdministration; |
|
|
using Learun.Util; |
|
|
using Learun.Util; |
|
|
using Nancy; |
|
|
using Nancy; |
|
@@ -21,6 +22,8 @@ namespace Learun.Application.WebApi.Modules |
|
|
private StuAttendanceIBLL stuAttendanceIBLL = new StuAttendanceBLL(); |
|
|
private StuAttendanceIBLL stuAttendanceIBLL = new StuAttendanceBLL(); |
|
|
private ArrangeLessonTermOfElectiveIBLL arrangeLessonTermOfElectiveIBLL = new ArrangeLessonTermOfElectiveBLL(); |
|
|
private ArrangeLessonTermOfElectiveIBLL arrangeLessonTermOfElectiveIBLL = new ArrangeLessonTermOfElectiveBLL(); |
|
|
private readonly TeachAttendanceIBLL teachAttendanceIBLL = new TeachAttendanceBLL(); |
|
|
private readonly TeachAttendanceIBLL teachAttendanceIBLL = new TeachAttendanceBLL(); |
|
|
|
|
|
private DataItemIBLL dataItemIBLL = new DataItemBLL(); |
|
|
|
|
|
|
|
|
public Response GetList(dynamic _) |
|
|
public Response GetList(dynamic _) |
|
|
{ |
|
|
{ |
|
|
var result = teachAttendanceIBLL.GetAttendanceByEmpNo(userInfo.account); |
|
|
var result = teachAttendanceIBLL.GetAttendanceByEmpNo(userInfo.account); |
|
@@ -36,11 +39,17 @@ namespace Learun.Application.WebApi.Modules |
|
|
if (queryParam["LessonSortNo"].ToString() == "1")//必修课 |
|
|
if (queryParam["LessonSortNo"].ToString() == "1")//必修课 |
|
|
{ |
|
|
{ |
|
|
data = arrangeLessonTermIBLL.AttendanceStudents(parameter.pagination, parameter.queryJson).ToList(); |
|
|
data = arrangeLessonTermIBLL.AttendanceStudents(parameter.pagination, parameter.queryJson).ToList(); |
|
|
|
|
|
foreach (var item in data) |
|
|
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
|
item.kqType = dataItemIBLL.GetDetailListByParentId("ktkqlx", "0").Find(a => a.F_ItemName == item.Sort).F_ItemValue; |
|
|
|
|
|
} |
|
|
} |
|
|
} |
|
|
else if (queryParam["LessonSortNo"].ToString() == "2")//选修课 |
|
|
else if (queryParam["LessonSortNo"].ToString() == "2")//选修课 |
|
|
{ |
|
|
{ |
|
|
data = arrangeLessonTermOfElectiveIBLL.AttendanceStudents(parameter.pagination, parameter.queryJson).ToList(); |
|
|
data = arrangeLessonTermOfElectiveIBLL.AttendanceStudents(parameter.pagination, parameter.queryJson).ToList(); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
var jsonData = new |
|
|
var jsonData = new |
|
|
{ |
|
|
{ |
|
|
rows = data, |
|
|
rows = data, |
|
|