|
@@ -6,6 +6,7 @@ using Microsoft.AspNetCore.Http;
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
using Microsoft.Extensions.Configuration;
|
|
|
using Microsoft.Extensions.Options;
|
|
|
+using Microsoft.OData.Edm;
|
|
|
using OpenXmlPowerTools;
|
|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
@@ -185,7 +186,13 @@ namespace TEAMModelOS.Controllers
|
|
|
string oesql = $"select value c from c where c.semesterId='{_semesterId}' and c.year={_year} and c.periodId='{_periodId}' " +
|
|
|
$"and c.classId in {string.Join(",",classes.Select(z=>$"'{z}'"))} ";
|
|
|
var oeresults = await client.GetContainer(Constant.TEAMModelOS, Constant.Student).GetList<OverallEducation>(oesql, $"OverallEducation-{_school}");
|
|
|
+ double excellence_count = 0;
|
|
|
+ double pass_Count = 0;
|
|
|
+ double dataCount = 0;
|
|
|
+ if (oeresults.list.IsNotEmpty()) {
|
|
|
+ dataCount=oeresults.list.Count();
|
|
|
|
|
|
+ }
|
|
|
return Ok(new { studentCount ,classCount=classes.Count, grade=years.Count });
|
|
|
}
|
|
|
}
|