From 530f189efbcd4d0327e6c059182aa724402a4139 Mon Sep 17 00:00:00 2001 From: dao Date: Mon, 22 Apr 2024 15:05:11 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AF=BE=E6=97=B6=E8=B4=B9=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E6=89=93=E5=8D=B0=E5=A2=9E=E5=8A=A0=E5=90=88=E8=AE=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ArrangeLessonTermController.cs | 22 ++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ArrangeLessonTermController.cs b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ArrangeLessonTermController.cs index 73672975d..b088f8102 100644 --- a/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ArrangeLessonTermController.cs +++ b/Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ArrangeLessonTermController.cs @@ -100,7 +100,27 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers { Pagination paginationobj = new Pagination() { rows = 100000, page = 1, sidx = "empno ", sord = "asc" }; var queryJson = "{\"weeks\":\"" + weeks + "\",\"status\":\"" + status + "\",\"deptNo\":\"" + deptNo + "\",\"StartTime\":\"" + StartTime + "\",\"EndTime\":\"" + EndTime + "\"}"; - var data = arrangeLessonTermIBLL.GetcoursestatictisList(paginationobj, queryJson); + var data = arrangeLessonTermIBLL.GetcoursestatictisList(paginationobj, queryJson).ToList(); + + if(data.Any()) + { + decimal hj = 0; + foreach (var item in data) + { + if(!item.actfeestandard.IsEmpty() && Convert.ToDecimal(item.actfeestandard)>0) + { + hj += Convert.ToDecimal(item.actfeestandard); + } + } + var tj = new LessonStatictisEntity + { + empname = "合计", + actfeestandard = hj.ToString() + }; + data.Add(tj); + } + + ViewBag.data = data; ViewBag.startTime = StartTime; ViewBag.endTime = EndTime;