Sfoglia il codice sorgente

课时费统计打印增加合计

黑艺新账号
dao 7 mesi fa
parent
commit
530f189efb
1 ha cambiato i file con 21 aggiunte e 1 eliminazioni
  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 Vedi File

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


Caricamento…
Annulla
Salva