示例#1
0
        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);
        }
示例#2
0
        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);
        }
示例#3
0
 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);
     });
 }
示例#4
0
 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);
 }