Ejemplo n.º 1
0
        public override object Execute(object p_args)
        {
            ContainHeadOrFootCmdArgs args = (ContainHeadOrFootCmdArgs)p_args;
            RptTblPart part = null;

            if (args.Flag == "Header")
            {
                part = new RptTblHeader(args.Table);
            }
            else
            {
                part = new RptTblFooter(args.Table);
            }
            RptTblPartRow row = new RptTblPartRow(part);

            InsertTableCmd.BuildCells(row, args.Table.ColSpan);
            part.Rows.Add(row);
            if (args.Flag == "Header")
            {
                args.Table.Header = (RptTblHeader)part;
            }
            else
            {
                args.Table.Footer = (RptTblFooter)part;
            }
            args.Table.CalcRowSpan();
            args.Table.Update(false);
            return(null);
        }
Ejemplo n.º 2
0
        public override object Execute(object p_args)
        {
            InsertTblRowCmdArgs args = (InsertTblRowCmdArgs)p_args;
            RptTblPartRow       row  = new RptTblPartRow(args.Part);

            InsertTableCmd.BuildCells(row, args.Part.Table.ColSpan);
            args.Part.Rows.Insert(args.Index, row);
            RptTable tbl = args.Part.Table;

            tbl.CalcRowSpan();
            tbl.Update(false);
            return(row);
        }
Ejemplo n.º 3
0
        public override object Execute(object p_args)
        {
            InsertTblGrpCmdArgs args  = (InsertTblGrpCmdArgs)p_args;
            RptTable            table = args.Table;

            if (table.Groups == null)
            {
                table.Groups = new List <RptTblGroup>();
            }
            RptTblPartRow row = new RptTblPartRow(args.Grp.Header);

            InsertTableCmd.BuildCells(row, table.ColSpan);
            args.Grp.Header.Rows.Add(row);
            RptTblPartRow r = new RptTblPartRow(args.Grp.Footer);

            InsertTableCmd.BuildCells(r, table.ColSpan);
            args.Grp.Footer.Rows.Add(r);
            args.Table.Groups.Add(args.Grp);
            args.Table.CalcRowSpan();
            args.Table.Update(false);
            return(null);
        }