public void CleanupFlowThroughColumns() { for (int rhIndex = 0; rhIndex < currentFilingSummary.MyReports.Count; rhIndex++) { ReportHeader rh = currentFilingSummary.MyReports[rhIndex] as ReportHeader; //Equity reports that do not have segments still need to have flow through columns //cleaned up because they were not processed with the regular equity processing logic bool isEquityStatement = false; if (ReportUtils.IsStatementOfEquityCombined(rh.LongName)) { isEquityStatement = true; } if (isEquityStatement) { string instanceFile = Path.Combine(this.currentReportDirectory, rh.XmlFileName); InstanceReport ir = InstanceReport.LoadXml(instanceFile); if (ir.IsEquityReport) { continue; } } if (rh.ReportType == ReportHeaderType.Sheet || rh.ReportType == ReportHeaderType.Notes) { if (cleanupStatementsOnly) { if (ReportUtils.IsStatement(rh.LongName) == true) { this.currentFilingSummary.TraceInformation("Process Flow-Through: " + rh.LongName); InstanceReport.ElementSegmentCombinations allInUseElementsSegments = this.BuildInUseElementSegmentCombinationsForAllReports(rh); this.CleanupColumns(rh, allInUseElementsSegments); this.uniqueReportElementSegmentCombos.Remove(rh.XmlFileName); } } else { this.currentFilingSummary.TraceInformation("Process Flow-Through: " + rh.LongName); InstanceReport.ElementSegmentCombinations allInUseElementsSegments = this.BuildInUseElementSegmentCombinationsForAllReports(rh); this.CleanupColumns(rh, allInUseElementsSegments); this.uniqueReportElementSegmentCombos.Remove(rh.XmlFileName); } } } this.uniqueReportElements = new Dictionary <string, List <string> >(); this.uniqueReportSegments = new Dictionary <string, List <string> >(); this.uniqueReportElementSegmentCombos = new Dictionary <string, InstanceReport.ElementSegmentCombinations>(); }
public bool IsStatementOfStockholdersEquity() { return(ReportUtils.IsStatementOfEquityCombined(this.LongName)); }