瀏覽代碼

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

新疆警官学校中职
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.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,


Loading…
取消
儲存