コード例 #1
0
        public IEnumerable <string> ToColumnReport(string Title = null)
        {
            var report = new ReportList();

            if (Title != null)
            {
                report.WriteTextLine(Title);
            }

            foreach (var workstationCmd in this)
            {
                if (workstationCmd is WriteToDisplayCommand)
                {
                    report.WriteGapLine();
                    report.WriteTextLine("Write to display command");
                    var wtdCmd       = workstationCmd as WriteToDisplayCommand;
                    var printedLines = wtdCmd.ToColumnReport();
                    report.WriteTextLines(printedLines);
                }
                else if (workstationCmd is IDataStreamReport)
                {
                    report.WriteGapLine();
                    var iReport = workstationCmd as IDataStreamReport;
                    var report2 = iReport.ToColumnReport();
                    report.WriteTextLines(report2);
                }
                else
                {
                    var textLine = workstationCmd.ToString();
                    report.WriteTextLine(textLine);
                }
            }

            return(report);
        }
コード例 #2
0
        public IEnumerable <string> ToColumnReport(string Title = null)
        {
            var report = new ReportList();

            // WTD command defn to column report form.
            report.WriteTextLines(this.DefnToColumnReport());
            report.WriteGapLine();

            var lines = wtdReport.Print_WTD_Orders(this);

            report.WriteTextLines(lines);
            return(report);
        }
コード例 #3
0
        public IEnumerable <string> ToColumnReport(string Title = null)
        {
            var report = new ReportList();

            var lines = PrintColumnHeading();

            report.WriteTextLines(lines);

            foreach (var control in this)
            {
                var line = control.ToColumnReportLine();
                report.WriteTextLine(line.TrimEndWhitespace( ));
            }
            return(report);
        }