//主表内附件控件 复制到 主表内附件控件 上

this.Request.Engine.BizObjectManager.CopyFiles("原-主表编码", "", "原-主表内附件控件编码", "原-主表数据ObjectId", "新-主表编码","", "新-主表内附件控件编码", "新-主表数据ObjectId", true, true);



//主表内附件控件 复制到 子表内附件控件 上

this.Request.Engine.BizObjectManager.CopyFiles("原-主表编码", "", "原-主表内附件控件编码", "原-主表数据ObjectId", "新-主表编码","新-子表编码", "新-子表内附件控件编码", "新-子表数据ObjectId", true, true);



//子表内附件控件 复制到 主表内附件控件 上

this.Request.Engine.BizObjectManager.CopyFiles("原-主表编码", "原-子表编码", "原-子表内附件控件编码", "原-子表数据ObjectId", "新-主表编码","", "新-主表内附件控件编码", "新-主表数据ObjectId", true, true);



//子表内附件控件 复制到 子表内附件控件 上

this.Request.Engine.BizObjectManager.CopyFiles("原-主表编码", "原-子表编码", "原-子表内附件控件编码", "原-子表数据ObjectId", "新-主表编码","新-子表编码", "新-子表内附件控件编码", "新-子表数据ObjectId", true, true);



/*

CopyFiles方法最后两个参数详解:

第一个true:本次复制附件到目标控件是覆盖还是添加,true为覆盖,false为添加

第二个true:若本次是覆盖模式,目标控件原先附件是否进行物理删除,true为物理删除,false为只删除记录

*/

 

posted on 2022-04-18 23:33  天涯何  阅读(120)  评论(0编辑  收藏  举报