Quellcode durchsuchen

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

新疆警官学校中职
ndbs vor 2 Jahren
Ursprung
Commit
d331419173
1 geänderte Dateien mit 9 neuen und 0 gelöschten Zeilen
  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 Datei anzeigen

@@ -2,6 +2,7 @@
using System.Collections.Generic;
using System.Linq;
using System.Web;
using Learun.Application.Base.SystemModule;
using Learun.Application.TwoDevelopment.EducationalAdministration;
using Learun.Util;
using Nancy;
@@ -21,6 +22,8 @@ namespace Learun.Application.WebApi.Modules
private StuAttendanceIBLL stuAttendanceIBLL = new StuAttendanceBLL();
private ArrangeLessonTermOfElectiveIBLL arrangeLessonTermOfElectiveIBLL = new ArrangeLessonTermOfElectiveBLL();
private readonly TeachAttendanceIBLL teachAttendanceIBLL = new TeachAttendanceBLL();
private DataItemIBLL dataItemIBLL = new DataItemBLL();

public Response GetList(dynamic _)
{
var result = teachAttendanceIBLL.GetAttendanceByEmpNo(userInfo.account);
@@ -36,11 +39,17 @@ namespace Learun.Application.WebApi.Modules
if (queryParam["LessonSortNo"].ToString() == "1")//必修课
{
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")//选修课
{
data = arrangeLessonTermOfElectiveIBLL.AttendanceStudents(parameter.pagination, parameter.queryJson).ToList();
}

var jsonData = new
{
rows = data,


Laden…
Abbrechen
Speichern