Пример #1
0
        protected override void afterInsertUpdateAction()
        {
            BP.Sys.FrmImgAth imgAth = new BP.Sys.FrmImgAth();
            imgAth.MyPK = this.MyPK;
            imgAth.RetrieveFromDBSources();
            imgAth.Update();

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

            base.afterInsertUpdateAction();
        }
Пример #2
0
        /// <summary>
        /// 保存图片
        /// </summary>
        /// <param name="fk_mapdata">表单ID</param>
        /// <param name="ctrlID">空间ID</param>
        /// <param name="x">位置x</param>
        /// <param name="y">位置y</param>
        /// <param name="h">高度h</param>
        /// <param name="w">宽度w</param>
        public static void SaveAthImg(string fk_mapdata, string ctrlID, float x, float y, float h, float w)
        {
            FrmImgAth en = new FrmImgAth();

            en.MyPK       = fk_mapdata + "_" + ctrlID;
            en.FK_MapData = fk_mapdata;
            en.CtrlID     = ctrlID;
            en.RetrieveFromDBSources();

            en.X = x;
            en.Y = y;
            en.W = w;
            en.H = h;
            en.Update();
        }