From caf41f1d388a5e26de4dc9573696d0e7b0a907b7 Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 12 Aug 2022 11:42:56 +0800 Subject: [PATCH 1/4] =?UTF-8?q?app2.0=20-=20=E9=80=9A=E8=AE=AF=E5=BD=95?= =?UTF-8?q?=E7=A6=81=E7=94=A8=E7=82=B9=E5=87=BB=E4=BA=8B=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/contact.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/contact.vue b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/contact.vue index 5bff4a61e..fb4c21cb9 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/contact.vue +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages/contact.vue @@ -33,6 +33,7 @@ export default { methods: { // 处理点击用户的场合,跳转到消息页 userClick(item) { + return this.NAV_TO(`/pages/msg/chat?id=${item.id}&name=${item.name}`) } }, From 870c492575a06984b7538ff75d8c4dc91ad11650 Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 12 Aug 2022 12:03:36 +0800 Subject: [PATCH 2/4] =?UTF-8?q?app2.0-=E9=A6=96=E9=A1=B5=E9=9A=90=E8=97=8F?= =?UTF-8?q?=E6=B6=88=E6=81=AF=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../LearunApp-2.2.0/pages.json | 20 +++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json index 78032ad68..8de4a6aa1 100644 --- a/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json +++ b/Learun.Framework.Ultimate V7/LearunApp-2.2.0/pages.json @@ -814,7 +814,7 @@ "navigationBarTitleText": "监考安排" } }, - + //教师考勤 { "path": "pages/attendance/list", @@ -999,10 +999,10 @@ "navigationBarTitleText": "会议扫码签到" } } - - - ], + + + ], // 全局样式 "globalStyle": { @@ -1027,11 +1027,11 @@ "iconPath": "static/img-bar/tab-home.png", "selectedIconPath": "static/img-bar/tab-home-active.png", "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", @@ -1096,7 +1096,7 @@ "u-parse": "@/components/u-parse/u-parse.vue" } } - } +} // "condition" : { //模式配置,仅开发期间生效 // "current": 0, //当前激活的模式(list 的索引项) // "list": [ From b2081748db740badfc6ccb39cde66f0a8e57eb63 Mon Sep 17 00:00:00 2001 From: zhangli <1109134334@qq.com> Date: Fri, 12 Aug 2022 14:32:34 +0800 Subject: [PATCH 3/4] =?UTF-8?q?=E6=8E=92=E8=80=83=E8=AE=B0=E5=BD=95-?= =?UTF-8?q?=E5=AE=89=E6=8E=92=E7=8F=AD=E7=BA=A7=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Exam_ExamPlanClass/Exam_ExamPlanClassService.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlanClass/Exam_ExamPlanClassService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlanClass/Exam_ExamPlanClassService.cs index 8f6791f3d..84ce9608a 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlanClass/Exam_ExamPlanClassService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/Exam_ExamPlanClass/Exam_ExamPlanClassService.cs @@ -327,8 +327,9 @@ where l.EPLId='{EPLId}' //排考记录表 var examPlan = db.FindEntity(EPId); //查询当前考试记录所有考试课程 - var lessonList = db.FindList($@"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($@"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}'"); foreach (var lesson in lessonList) { From 5b198ec2b7e74ffcfb573f2d0d3e11a78a61ba9b Mon Sep 17 00:00:00 2001 From: ndbs Date: Fri, 12 Aug 2022 14:58:11 +0800 Subject: [PATCH 4/4] =?UTF-8?q?app2.0=20=E4=B8=80=E5=8D=A1=E9=80=9A?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Learun.Application.WebApi.csproj | 1 + .../Modules/MealCardRunTabApi.cs | 64 +++++++++++++++++++ .../MealCardRunTab/MealCardRunTabService.cs | 12 ++++ 3 files changed, 77 insertions(+) create mode 100644 Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/MealCardRunTabApi.cs diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj index 193b772cd..e23e11586 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Learun.Application.WebApi.csproj @@ -209,6 +209,7 @@ + diff --git a/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/MealCardRunTabApi.cs b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/MealCardRunTabApi.cs new file mode 100644 index 000000000..cfb5eaa8a --- /dev/null +++ b/Learun.Framework.Ultimate V7/Learun.Application.WebApi/Modules/MealCardRunTabApi.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 +{ + /// + /// 版 本 Learun-ADMS-Ultimate V7.0.0 力软敏捷开发框架 + /// Copyright (c) 2013-2018 上海力软信息技术有限公司 + /// 创 建:超级管理员 + /// 日 期:2019-08-19 17:50 + /// 描 述:教师注册 + /// + + public class MealCardRunTabApi : BaseApi + { + + private MealCardRunTabIBLL mealCardRunTabIBLL = new MealCardRunTabBLL(); + + /// + /// 一卡通接口 + /// + public MealCardRunTabApi() + : base("/Learun/adms/MealCardRunTab") + { + Get["/getlist"] = GetList; + } + #region 获取数据 + + /// + /// 获取页面显示列表分页数据 + /// + /// + /// + public Response GetList(dynamic _) + { + ReqPageParam parameter = this.GetReqData(); + 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 + } + +} \ No newline at end of file diff --git a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs index 80808978d..04187986f 100644 --- a/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs +++ b/Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Application.Module/Learun.Application.TwoDevelopment/EducationalAdministration/MealCardRunTab/MealCardRunTabService.cs @@ -182,6 +182,18 @@ namespace Learun.Application.TwoDevelopment.EducationalAdministration dp.Add("identiName", queryParam["identiName"].ToString(), DbType.String); 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()) { dp.Add("flowtype", queryParam["flowtype"].ToString(), DbType.String);