This commit is contained in:
@@ -822,12 +822,12 @@ namespace AyaNova.Biz
|
||||
|
||||
var idList = dataListSelectedRequest.SelectedRowIds;
|
||||
JArray ReportData = new JArray();
|
||||
|
||||
List<PM> batchResults = new List<PM>();
|
||||
while (idList.Any())
|
||||
{
|
||||
var batch = idList.Take(IReportAbleObject.REPORT_DATA_BATCH_SIZE);
|
||||
idList = idList.Skip(IReportAbleObject.REPORT_DATA_BATCH_SIZE).ToArray();
|
||||
List<PM> batchResults = new List<PM>();
|
||||
batchResults.Clear();
|
||||
foreach (long batchId in batch)
|
||||
batchResults.Add(await PMGetPartialAsync(dataListSelectedRequest.AType, batchId, dataListSelectedRequest.IncludeWoItemDescendants, true));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user