Exemplo n.º 1
0
        protected override void afterDelete()
        {
            //把相关的字段也要删除.
            MapAttrString attr = new MapAttrString();

            attr.MyPK = this.MyPK;
            attr.Delete();

            base.afterDelete();
        }
Exemplo n.º 2
0
        /// <summary>
        /// 删除之后.
        /// </summary>
        protected override void afterDelete()
        {
            GroupField gf = new GroupField();

            gf.Delete(GroupFieldAttr.CtrlID, this.MyPK);

            //把相关的字段也要删除.
            MapAttrString attr = new MapAttrString();

            attr.MyPK = this.MyPK;
            attr.Delete();

            //调用frmEditAction, 完成其他的操作.
            BP.Sys.CCFormAPI.AfterFrmEditAction(this.FK_MapData);

            base.afterDelete();
        }
Exemplo n.º 3
0
        protected override void afterInsertUpdateAction()
        {
            BP.Sys.FrmImg imgAth = new BP.Sys.FrmImg();
            imgAth.MyPK = this.MyPK;
            imgAth.RetrieveFromDBSources();
            imgAth.Update();

            //同步更新MapAttr
            MapAttrString attr = new MapAttrString(this.MyPK);

            attr.SetValByKey(MapAttrAttr.ColSpan, this.GetValStrByKey(MapAttrAttr.ColSpan));
            attr.SetValByKey(MapAttrAttr.TextColSpan, this.GetValStrByKey(MapAttrAttr.TextColSpan));
            attr.SetValByKey(MapAttrAttr.RowSpan, this.GetValStrByKey(MapAttrAttr.RowSpan));

            attr.SetValByKey(MapAttrAttr.Name, this.GetValStrByKey(FrmImgAttr.Name)); //名称.

            attr.SetValByKey(MapAttrAttr.X, this.GetValStrByKey(FrmImgAttr.X));       //名称.
            attr.SetValByKey(MapAttrAttr.Y, this.GetValStrByKey(FrmImgAttr.Y));       //名称.
            attr.Update();

            base.afterInsertUpdateAction();
        }