public void AddDataRows(IList <string> reportText) { if (reportText == null) { return; } var dataRows = reportText.Select(x => LeasePakReportRowFactory.Create <CashReceiptsReportRow>(x, GetColumnSplitIndices())).ToList(); dataRows.ForEach(x => ReportRows.Add(x)); }
public void AddDataRows(IList <string> parsedText) { var dataRows = parsedText.Select(x => LeasePakReportRowFactory.Create <PreAuthorizedPaymentReportRow>(x, GetColumnSplitIndices())).ToList(); foreach (var row in dataRows) { var corporateCostCenter = LeaseRepository.GetCorporateCostCenterByLeaseNumber(row.GetLeaseNumber()); row.SetCorporateCostCenter(corporateCostCenter); var lesseeName = LesseeRepository.GetLesseeNameFromLesseeNumber(row.GetLesseeNumber()); row.SetLesseeName(lesseeName); } dataRows.ForEach(x => ReportRows.Add(x)); }