@@ -209,6 +209,7 @@ | |||||
<Compile Include="Modules\ListenClassRecordApi.cs" /> | <Compile Include="Modules\ListenClassRecordApi.cs" /> | ||||
<Compile Include="Modules\MpManagementApi.cs" /> | <Compile Include="Modules\MpManagementApi.cs" /> | ||||
<Compile Include="Modules\PersonnelManagement\EpidemicSituationCopyApi.cs" /> | <Compile Include="Modules\PersonnelManagement\EpidemicSituationCopyApi.cs" /> | ||||
<Compile Include="Modules\MealCardRunTabApi.cs" /> | |||||
<Compile Include="Modules\StuScoreApi.cs" /> | <Compile Include="Modules\StuScoreApi.cs" /> | ||||
<Compile Include="Modules\StuInfoBasicApi.cs" /> | <Compile Include="Modules\StuInfoBasicApi.cs" /> | ||||
<Compile Include="Modules\StatisticsApi.cs" /> | <Compile Include="Modules\StatisticsApi.cs" /> | ||||
@@ -0,0 +1,64 @@ | |||||
using Nancy; | |||||
using Learun.Util; | |||||
using System.Collections.Generic; | |||||
using Learun.Application.TwoDevelopment.EducationalAdministration; | |||||
using static Learun.Application.WebApi.Modules.StuInfoFreshApi; | |||||
using System; | |||||
using System.IO; | |||||
using System.Linq; | |||||
using Learun.Application.Base.SystemModule; | |||||
using Learun.Application.OA; | |||||
using Learun.Application.OA.File.FileInfo; | |||||
using Learun.Application.TwoDevelopment.LogisticsManagement; | |||||
using Learun.Application.TwoDevelopment.LR_Desktop; | |||||
using Learun.Application.WorkFlow; | |||||
using Microsoft.Ajax.Utilities; | |||||
namespace Learun.Application.WebApi | |||||
{ | |||||
/// <summary> | |||||
/// 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架 | |||||
/// Copyright (c) 2013-2018 上海力软信息技术有限公司 | |||||
/// 创 建:超级管理员 | |||||
/// 日 期:2019-08-19 17:50 | |||||
/// 描 述:教师注册 | |||||
/// </summary> | |||||
public class MealCardRunTabApi : BaseApi | |||||
{ | |||||
private MealCardRunTabIBLL mealCardRunTabIBLL = new MealCardRunTabBLL(); | |||||
/// <summary> | |||||
/// 一卡通接口 | |||||
/// <summary> | |||||
public MealCardRunTabApi() | |||||
: base("/Learun/adms/MealCardRunTab") | |||||
{ | |||||
Get["/getlist"] = GetList; | |||||
} | |||||
#region 获取数据 | |||||
/// <summary> | |||||
/// 获取页面显示列表分页数据 | |||||
/// <summary> | |||||
/// <param name="_"></param> | |||||
/// <returns></returns> | |||||
public Response GetList(dynamic _) | |||||
{ | |||||
ReqPageParam parameter = this.GetReqData<ReqPageParam>(); | |||||
var data = mealCardRunTabIBLL.GetPageList(parameter.pagination, parameter.queryJson); | |||||
var jsonData = new | |||||
{ | |||||
rows = data, | |||||
total = parameter.pagination.total, | |||||
page = parameter.pagination.page, | |||||
records = parameter.pagination.records | |||||
}; | |||||
return Success(jsonData); | |||||
} | |||||
#endregion | |||||
} | |||||
} |
@@ -327,8 +327,9 @@ where l.EPLId='{EPLId}' | |||||
//排考记录表 | //排考记录表 | ||||
var examPlan = db.FindEntity<Exam_ExamPlanEntity>(EPId); | var examPlan = db.FindEntity<Exam_ExamPlanEntity>(EPId); | ||||
//查询当前考试记录所有考试课程 | //查询当前考试记录所有考试课程 | ||||
var lessonList = db.FindList<Exam_ExamPlanLessonEntity>($@"select a.*,b.LessonTypeId,b.MajorNo as TeachMajorNo FROM [dbo].[Exam_ExamPlanLesson] a | |||||
left join [dbo].[Exam_ExamLesson] b on a.ELId=b.ELId | |||||
var lessonList = db.FindList<Exam_ExamPlanLessonEntity>($@"select a.*,b.MajorNo as TeachMajorNo FROM [dbo].[Exam_ExamPlanLesson] a | |||||
left join [dbo].[Exam_ExamPlan] c on c.epid=a.epid | |||||
left join [dbo].[Exam_ExamLesson] b on a.lessonno=b.lessonno and b.AcademicYearNo=c.AcademicYearNo and b.Semester=c.Semester and b.Grade=a.Grade | |||||
where a.EPId='{EPId}'"); | where a.EPId='{EPId}'"); | ||||
foreach (var lesson in lessonList) | foreach (var lesson in lessonList) | ||||
{ | { | ||||
@@ -182,6 +182,18 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration | |||||
dp.Add("identiName", queryParam["identiName"].ToString(), DbType.String); | dp.Add("identiName", queryParam["identiName"].ToString(), DbType.String); | ||||
strSql.Append(" AND t.identiName = @identiName "); | strSql.Append(" AND t.identiName = @identiName "); | ||||
} | } | ||||
if (!queryParam["IsStuOrTeach"].IsEmpty()) | |||||
{ | |||||
var IsStuOrTeach = queryParam["IsStuOrTeach"].ToString(); | |||||
if (IsStuOrTeach == "0") | |||||
{ | |||||
strSql.Append(" AND t.identiName = '教师' "); | |||||
} | |||||
else if (IsStuOrTeach == "1") | |||||
{ | |||||
strSql.Append(" AND t.identiName = '学生' "); | |||||
} | |||||
} | |||||
if (!queryParam["flowtype"].IsEmpty()) | if (!queryParam["flowtype"].IsEmpty()) | ||||
{ | { | ||||
dp.Add("flowtype", queryParam["flowtype"].ToString(), DbType.String); | dp.Add("flowtype", queryParam["flowtype"].ToString(), DbType.String); | ||||
@@ -814,7 +814,7 @@ | |||||
"navigationBarTitleText": "监考安排" | "navigationBarTitleText": "监考安排" | ||||
} | } | ||||
}, | }, | ||||
//教师考勤 | //教师考勤 | ||||
{ | { | ||||
"path": "pages/attendance/list", | "path": "pages/attendance/list", | ||||
@@ -999,10 +999,10 @@ | |||||
"navigationBarTitleText": "会议扫码签到" | "navigationBarTitleText": "会议扫码签到" | ||||
} | } | ||||
} | } | ||||
], | |||||
], | |||||
// 全局样式 | // 全局样式 | ||||
"globalStyle": { | "globalStyle": { | ||||
@@ -1027,11 +1027,11 @@ | |||||
"iconPath": "static/img-bar/tab-home.png", | "iconPath": "static/img-bar/tab-home.png", | ||||
"selectedIconPath": "static/img-bar/tab-home-active.png", | "selectedIconPath": "static/img-bar/tab-home-active.png", | ||||
"text": "首页" | "text": "首页" | ||||
}, { | |||||
"pagePath": "pages/msg", | |||||
"iconPath": "static/img-bar/tab-msg.png", | |||||
"selectedIconPath": "static/img-bar/tab-msg-active.png", | |||||
"text": "消息" | |||||
// }, { | |||||
// "pagePath": "pages/msg", | |||||
// "iconPath": "static/img-bar/tab-msg.png", | |||||
// "selectedIconPath": "static/img-bar/tab-msg-active.png", | |||||
// "text": "消息" | |||||
}, | }, | ||||
{ | { | ||||
"pagePath": "pages/contact", | "pagePath": "pages/contact", | ||||
@@ -1096,7 +1096,7 @@ | |||||
"u-parse": "@/components/u-parse/u-parse.vue" | "u-parse": "@/components/u-parse/u-parse.vue" | ||||
} | } | ||||
} | } | ||||
} | |||||
} | |||||
// "condition" : { //模式配置,仅开发期间生效 | // "condition" : { //模式配置,仅开发期间生效 | ||||
// "current": 0, //当前激活的模式(list 的索引项) | // "current": 0, //当前激活的模式(list 的索引项) | ||||
// "list": [ | // "list": [ | ||||
@@ -33,6 +33,7 @@ export default { | |||||
methods: { | methods: { | ||||
// 处理点击用户的场合,跳转到消息页 | // 处理点击用户的场合,跳转到消息页 | ||||
userClick(item) { | userClick(item) { | ||||
return | |||||
this.NAV_TO(`/pages/msg/chat?id=${item.id}&name=${item.name}`) | this.NAV_TO(`/pages/msg/chat?id=${item.id}&name=${item.name}`) | ||||
} | } | ||||
}, | }, | ||||