private void _writeTotalSummaries(IEnumerable<KeyValuePair<string, ErrorsSummary>> summaries, ErrorsSummary totals, string name) { XlHelper.AddMargin(); XlHelper.WriteRow(() => XlHelper.WriteValue(name)); XlHelper.AddMargin(); _writeTotalHeader(); _writeTotalBody(summaries); _writeSummaryTotal(totals); }
private void _writeSummaryForType(ErrorType type, IEnumerable<KeyValuePair<int, ErrorsSummary>> summaries, ErrorsSummary totalSummary) { XlHelper.AddMargin(); XlHelper.WriteRow(() => XlHelper.WriteValue(_getTypeName(type))); XlHelper.AddMargin(); _writeCategorySummaryHeader(); _writeCategorySummaryBody(summaries); _writeSummaryTotal(totalSummary); }
private void _writeSummaryTotal(ErrorsSummary totalSummary) { XlHelper.WriteRow(() => { XlHelper.WriteValue(Labels.Errors.Total, Colors.SummaryRow); XlHelper.WriteValue(totalSummary.SubjectErrorCount, Colors.SummaryRow); XlHelper.WriteValue(totalSummary.PredicatesErrorCount, Colors.SummaryRow); XlHelper.WriteValue(totalSummary.UniformsErrorCount, Colors.SummaryRow); XlHelper.WriteValue(totalSummary.MeaningPartsErrorCount, Colors.SummaryRow); XlHelper.WriteValue(totalSummary.ChainsFromSubjectErrorCount, Colors.SummaryRow); XlHelper.WriteValue(totalSummary.ChainsFromPredicateErrorCount, Colors.SummaryRow); XlHelper.WriteValue(totalSummary.ChainsFromMeaningPartErrorCount, Colors.SummaryRow); XlHelper.WriteValue(totalSummary.Total, Colors.SummaryRow); XlHelper.WriteValue(totalSummary.TotalPrediction, Colors.SummaryHeader); }); }
private void _writeBodyCommonPart(ErrorsSummary sum) { XlHelper.WriteValue(sum.SubjectErrorCount); XlHelper.WriteValue(sum.PredicatesErrorCount); XlHelper.WriteValue(sum.UniformsErrorCount); XlHelper.WriteValue(sum.MeaningPartsErrorCount); XlHelper.WriteValue(sum.ChainsFromSubjectErrorCount); XlHelper.WriteValue(sum.ChainsFromPredicateErrorCount); XlHelper.WriteValue(sum.ChainsFromMeaningPartErrorCount); XlHelper.WriteValue(sum.Total, Colors.SummaryRow); XlHelper.WriteValue(sum.TotalPrediction, Colors.SummaryHeader); }