This commit is contained in:
@@ -47,13 +47,7 @@ namespace AyaNova.Biz
|
||||
var batchResults = await ct.ViewPartInventoryRequestList.AsNoTracking().Where(z => batch.Contains(z.RequestId)).ToArrayAsync();
|
||||
//order the results back into original
|
||||
var orderedList = from id in batch join z in batchResults on id equals z.RequestId select z;
|
||||
|
||||
//cache frequent viz data
|
||||
var AyaTypesEnumList = await AyaNova.Api.Controllers.EnumListController.GetEnumList(
|
||||
StringUtil.TrimTypeName(typeof(AyaType).ToString()),
|
||||
UserTranslationId,
|
||||
CurrentUserRoles);
|
||||
|
||||
batchResults=null;
|
||||
foreach (ViewPartInventoryRequestList w in orderedList)
|
||||
{
|
||||
if (!ReportRenderManager.KeepGoing(jobId)) return null;
|
||||
@@ -61,7 +55,7 @@ namespace AyaNova.Biz
|
||||
var jo = JObject.FromObject(w);
|
||||
ReportData.Add(jo);
|
||||
}
|
||||
|
||||
orderedList=null;
|
||||
}
|
||||
return ReportData;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user