// public List<BatchHistoryListView> GetBatchDetails(out BatchDetails Details) { List<BatchHistoryListView> BatchHistoryList = new List<BatchHistoryListView>(); try { foreach (var item in _collectionView.AsEnumerable()) { iCount = _collectionView.Count; CalculateTotalSum(item); BatchHistoryList.Add(GetIndividualCollectionDetails(item)); _details.WeekEndDate = item.WeekEndDate; } if (_details.VTPSum != 0) _details.dPayoutSum = (((Convert.ToDecimal(_details.VTPSum) - _details.WinLossSum)) /Convert.ToDecimal(_details.VTPSum)) * 100; else _details.dPayoutSum = 0; //_details.dPayoutSum = _details.PayoutSum / iCount; _details.dHoldSum = _details.dPayoutSum / iCount; if (_details.VTPSum == 0) { _details.PayoutSum = 0; _details.HoldSum = 100; } } catch (Exception ex) { LogError(ex); } Details = _details; return BatchHistoryList.ToList(); }
public List<Transport.BatchHistoryListView> GetBatchDetails(out BatchDetails details) { return _batchHistoryBreakdown.GetBatchDetails(out details); }