Преглед на файлове

教师红牛 我的考勤 查看学生请假类型

新疆警官学校中职
ndbs преди 2 години
родител
ревизия
d331419173
променени са 1 файла, в които са добавени 9 реда и са изтрити 0 реда
  1. +9
    -0
      Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/TeachAttendance.cs

+ 9
- 0
Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/TeachAttendance.cs Целия файл

@@ -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,


Зареждане…
Отказ
Запис