Browse Source

课时费统计打印增加合计

黑艺新账号
dao 7 months ago
parent
commit
530f189efb
1 changed files with 21 additions and 1 deletions
  1. +21
    -1
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ArrangeLessonTermController.cs

+ 21
- 1
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/EducationalAdministration/Controllers/ArrangeLessonTermController.cs View File

@@ -100,7 +100,27 @@ namespace Learun.Application.Web.Areas.EducationalAdministration.Controllers
{ {
Pagination paginationobj = new Pagination() { rows = 100000, page = 1, sidx = "empno ", sord = "asc" }; 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 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.data = data;
ViewBag.startTime = StartTime; ViewBag.startTime = StartTime;
ViewBag.endTime = EndTime; ViewBag.endTime = EndTime;


Loading…
Cancel
Save