This commit is contained in:
@@ -321,6 +321,37 @@ namespace AyaNova.Biz
|
||||
return await GetReportData(idList);
|
||||
}
|
||||
|
||||
|
||||
// public async Task<object[]> GetObjectArrayExportData(long[] idList)
|
||||
// {
|
||||
// //NOTE: Report widget is a superset of biz object widget
|
||||
// //Biz objects will add and needed linked records here as extra fields with the data included
|
||||
// //for example instead of a userid only there will be username added to the record
|
||||
// //so the report designer can just select it as a field, no need to query seperately for it etc
|
||||
// //REMEMBER: there is a name display format system and it should honour that so that the report
|
||||
// //displays a user the same as it would display in the UI in an input form, no surprises
|
||||
|
||||
// List<Widget> wList = new List<Widget>();
|
||||
// while (idList.Any())
|
||||
// {
|
||||
// var batch = idList.Take(IReportAbleObject.REPORT_DATA_BATCH_SIZE);
|
||||
// idList = idList.Skip(IReportAbleObject.REPORT_DATA_BATCH_SIZE).ToArray();
|
||||
// //query for this batch, comes back in db natural order unfortunately
|
||||
// var batchResults = await ct.Widget.Where(z => batch.Contains(z.Id)).ToArrayAsync();
|
||||
// //order the results back into original
|
||||
// var orderedList = from id in batch join z in batchResults on id equals z.Id select z;
|
||||
|
||||
// wList.AddRange(orderedList);
|
||||
// // foreach (Widget w in orderedList)
|
||||
// // {
|
||||
// // var jo = JObject.FromObject(w);
|
||||
// // jo["CustomFields"] = JObject.Parse((string)jo["CustomFields"]);
|
||||
// // ReportData.Add(jo);
|
||||
// // }
|
||||
// }
|
||||
// return wList.ToArray();
|
||||
// }
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////////////////////
|
||||
//JOB / OPERATIONS
|
||||
//
|
||||
|
||||
Reference in New Issue
Block a user