Exemplo n.º 1
0
        public override void Undo(object p_args)
        {
            InsertRptTblColCmdArgs args = (InsertRptTblColCmdArgs)p_args;
            RptTable rptTab             = args.Table;
            int      index = args.Index;

            RmvTblCells(rptTab, index);
            rptTab.Data["colspan"] = rptTab.ColSpan - 1;
            rptTab.Update(true);
        }
Exemplo n.º 2
0
        public override void Undo(object p_args)
        {
            DeleRptTblColCmdArgs args   = (DeleRptTblColCmdArgs)p_args;
            RptTable             rptTab = args.Table;
            int index = args.Index;

            InsertTblCells(rptTab, index, args.Dict);
            rptTab.Data["colspan"] = rptTab.ColSpan + 1;
            rptTab.Update(false);
        }
Exemplo n.º 3
0
        public override void Undo(object p_args)
        {
            DeleTblRowCmdArgs args = (DeleTblRowCmdArgs)p_args;

            args.Row.TblPart.Rows.Insert(args.Index, args.Row);
            RptTable tbl = args.Row.Table;

            tbl.CalcRowSpan();
            tbl.Update(false);
        }
Exemplo n.º 4
0
        public override void Undo(object p_args)
        {
            InsertTblRowCmdArgs args = (InsertTblRowCmdArgs)p_args;

            args.Part.Rows.RemoveAt(args.Index);
            RptTable tbl = args.Part.Table;

            tbl.CalcRowSpan();
            tbl.Update(true);
        }
Exemplo n.º 5
0
        public override object Execute(object p_args)
        {
            DeleTblRowCmdArgs args = (DeleTblRowCmdArgs)p_args;

            args.Row.TblPart.Rows.RemoveAt(args.Index);
            RptTable tbl = args.Row.Table;

            tbl.CalcRowSpan();
            tbl.Update(true);
            return(args.Row);
        }
Exemplo n.º 6
0
        public override object Execute(object p_args)
        {
            InsertRptTblColCmdArgs args = (InsertRptTblColCmdArgs)p_args;
            RptTable rptTab             = args.Table;
            int      index = args.Index;

            BldTblCells(rptTab, index);
            // 此处直接为data赋值,触发valueChanged事件。
            rptTab.Data["colspan"] = rptTab.ColSpan + 1;
            rptTab.Update(false);
            return(null);
        }
Exemplo n.º 7
0
        public override object Execute(object p_args)
        {
            DeleRptTblColCmdArgs args   = (DeleRptTblColCmdArgs)p_args;
            RptTable             rptTab = args.Table;
            int index = args.Index;

            args.Dict.Clear();
            RmvTblCells(rptTab, index, args.Dict);
            rptTab.Data["colspan"] = rptTab.ColSpan - 1;
            rptTab.Update(true);
            return(null);
        }
Exemplo n.º 8
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);
        }