|
@@ -898,6 +898,12 @@ namespace TEAMModelOS.Controllers
|
|
|
{
|
|
|
artAttachments.Add(item);
|
|
|
}
|
|
|
+ var quotas = artAttachments.GroupBy(c => (c.quotaId,c.subjectId,c.quotaName)).Select(x => new {
|
|
|
+ x.Key.subjectId,
|
|
|
+ x.Key.quotaId,
|
|
|
+ x.Key.quotaName,
|
|
|
+ x.ToList().Select(z => z.files).ToList().Count
|
|
|
+ });
|
|
|
var newArts = arts.Select(c => new {
|
|
|
|
|
|
c.id,
|
|
@@ -919,6 +925,7 @@ namespace TEAMModelOS.Controllers
|
|
|
c.period,
|
|
|
c.periodType,
|
|
|
c.zymusicstds,c.code,
|
|
|
+ quotas,
|
|
|
count = artAttachments.Where(z => z.artId.Equals(c.id)).ToList().Count
|
|
|
|
|
|
});
|