Pārlūkot izejas kodu

课时费统计打印增加合计

黑艺新账号
dao pirms 7 mēnešiem
vecāks
revīzija
530f189efb
1 mainītis faili ar 21 papildinājumiem un 1 dzēšanām
  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 Parādīt failu

@@ -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;


Notiek ielāde…
Atcelt
Saglabāt