Exemplo n.º 1
0
        /// <summary>
        /// report the contents of the ResponseHeader.
        /// </summary>
        /// <returns></returns>
        public IEnumerable <string> ToColumnReport(string Title = null)
        {
            List <string> lines = new List <string>();

            if (Title != null)
            {
                lines.Add(Title);
            }

            {
                var lb = new BlankFillLineBuilder();
                lb.Append("Cursor row", 12);
                lb.Append("Cursor col", 12);
                lb.Append("AID key", 9);
                lines.Add(lb.ToString());
            }

            {
                var lb = new BlankFillLineBuilder();
                lb.Append(this.RowNum.ToString(), 12);
                lb.Append(this.ColNum.ToString(), 12);
                lb.Append(this.AidKey.ToString(), 9);
                lines.Add(lb.ToString());
            }

            return(lines);
        }
Exemplo n.º 2
0
        public new string ToColumnReportLine()
        {
            var lb = new BlankFillLineBuilder();

            lb.Append(this.DataStreamLength.ToString(), 9);
            lb.Append(this.Marker.ToHex(), 10);

            return(lb.ToString());
        }
Exemplo n.º 3
0
        public static new string ToColumnReportHeaderLine()
        {
            var lb = new BlankFillLineBuilder();

            lb.Append("Response code", 13);
            lb.Append("System name", 11);
            lb.Append("Printer name", 12);
            return(lb.ToString());
        }
        public override string ToColumnReportLine()
        {
            var lb = new BlankFillLineBuilder(2);

            lb.Append(this.ControlCode.ToString(), 20);
            lb.Append(this.NullBytes.Length.ToString( ), 20);
            lb.Append(this.NullBytes.ToHex(' ').Head(40), 40);

            return(lb.ToString());
        }
        public static string ToColumnReportHeaderLine()
        {
            var lb = new BlankFillLineBuilder(2);

            lb.Append("RcdLgth", 9);
            lb.Append("Marker", 8);
            lb.Append("StreamCode", 15);
            lb.Append("VarLgth", 7);
            return(lb.ToString());
        }
        public override string ToColumnReportLine()
        {
            var lb = new BlankFillLineBuilder(2);

            lb.Append(this.ControlCode.ToString(), 20);
            lb.Append(this.TextBytes.Length.ToString( ) + "  " +
                      this.TextBytes.EbcdicBytesToString().Head(60), 60);

            return(lb.ToString());
        }
Exemplo n.º 7
0
        public new string ToColumnReportLine()
        {
            var lb = new BlankFillLineBuilder();

            lb.Append(this.ResponseCode, 13);
            lb.Append(this.SystemName, 11);
            lb.Append(this.PrinterName, 12);

            return(lb.ToString());
        }
        public override string ToColumnReportLine()
        {
            var lb = new BlankFillLineBuilder(2);

            lb.Append(this.ControlCode.ToString(), 15);
            lb.Append(this.Direction.ToString(), 15);
            lb.Append(this.PositionValue.ToString( ), 15);

            return(lb.ToString());
        }
Exemplo n.º 9
0
        public override string ToColumnReportLine()
        {
            var lb = new BlankFillLineBuilder(2);

            lb.Append(this.ControlCode.ToString(), 20);
            lb.Append(this.ByteCount.ToString(), 20);
            lb.Append(this.ParmBytes.ToHex(' '), 20);

            return(lb.ToString());
        }
Exemplo n.º 10
0
        // todo tomorrow:
        // create showLiteralItem from RA order
        // complete the report of save screen response data screen.

        public string ToColumnReportLine()
        {
            var lb = new BlankFillLineBuilder(2);

            lb.Append(this.DataStreamLength.ToString(), 9);
            lb.Append(this.Marker.ToHex(), 8);
            lb.Append(this.StreamCode.Value.ToString(), 15);
            lb.Append(this.VariableLength.ToString(), 7);

            return(lb.ToString());
        }
        public static string ToColumnReportHeaderLine( )
        {
            var lb = new BlankFillLineBuilder();

            lb.Append("RowNum", 8);
            lb.Append("ColNum", 8);
            lb.Append("AttrByte", 10);
            lb.Append("Length", 8);
            lb.Append("Text data", 30);
            return(lb.ToString());
        }
Exemplo n.º 12
0
        public static string[] PrintColumnHeading()
        {
            string line1 = null;

            {
                var lb = new BlankFillLineBuilder(2);
                lb.Append("FuncCode", 20);
                lb.Append("Parm1", 20);
                lb.Append("Parm2", 20);
                line1 = lb.ToString();
            }

            return(new string[] { line1 });
        }
Exemplo n.º 13
0
        public virtual string ToColumnReportLine()
        {
            var lb = new BlankFillLineBuilder(2);

            lb.Append(this.ControlCode.ToString(), 20);

            return(lb.ToString());
        }
        public string ToColumnReportLine()
        {
            var lb = new BlankFillLineBuilder();

            lb.Append("  " + SbaOrder.RowNum.ToString(), 8);
            lb.Append("  " + SbaOrder.ColNum.ToString(), 8);

            {
                string s1 = null;
                if (TextOrder.AttrByte == null)
                {
                    s1 = "";
                }
                else
                {
                    s1 = TextOrder.AttrByte.Value.ToHex();
                }
                lb.Append(s1, 10);
            }

            lb.Append(TextOrder.TextLength.ToString(), 8);
            lb.Append(TextOrder.PrintableText, 30);
            return(lb.ToString());
        }
Exemplo n.º 15
0
        // todo tomorrow:
        // create showLiteralItem from RA order
        // complete the report of save screen response data screen.

        public new string ToColumnReportLine()
        {
            var lb = new BlankFillLineBuilder(2);

            lb.Append(this.DataStreamLength.ToString(), 7);
            lb.Append(this.Marker.ToHex(), 6);
            lb.Append(this.StreamCode.Value.ToString(), 15);
            lb.Append(this.VariableLength.ToString(), 7);
            lb.Append(this.Flags.ToHex(), 6);
            lb.Append(this.OpcodeByte.ToHex() + " " + this.TerminalOpcode.ToString(), 10);

            return(lb.ToString());
        }