ludc
2024-11-15 600c2ebb55b18d687ff848cb6c9d9a61b8bfa307
Source/plt-web/plt-web-parent/plt-web/src/main/java/com/vci/web/service/UIDataServiceI.java
@@ -1,15 +1,18 @@
package com.vci.web.service;
import com.vci.client.bof.RevisionValueObject;
import com.vci.client.bof.VersionValueObject;
import com.vci.corba.common.PLException;
import com.vci.corba.omd.data.BusinessObject;
import com.vci.corba.omd.data.LinkObject;
import com.vci.corba.omd.data.RevisionDataInfo;
import com.vci.corba.omd.data.VersionDataInfo;
import com.vci.dto.*;
import com.vci.starter.web.enumpck.VciChangeDocumentTypeEnum;
import com.vci.starter.web.exception.VciBaseException;
import com.vci.starter.web.model.BaseModel;
import com.vci.starter.web.pagemodel.*;
import com.vci.web.dto.*;
import com.vci.web.pageModel.OsBtmTypeVO;
import com.vci.web.pageModel.ReferConfigVO;
import com.vci.web.pageModel.UIFormDataVO;
import com.vci.pagemodel.OsBtmTypeVO;
import com.vci.pagemodel.ReferConfigVO;
import com.vci.pagemodel.UIFormDataVO;
import com.vci.web.query.UIDataGridQuery;
import com.vci.web.query.UIFormQuery;
import com.vci.web.query.UITreeQuery;
@@ -31,7 +34,7 @@
     * @return DataGrid中data为Map<String,String>格式
     * @throws VciBaseException 查询出错的时候会抛出异常
     */
    DataGrid getDataForGrid(UIDataGridQuery dataGridQuery)  throws VciBaseException;
    DataGrid getDataForGrid(UIDataGridQuery dataGridQuery) throws VciBaseException, PLException;
    /**
     * 获取表单的数据
@@ -39,7 +42,7 @@
     * @return 表单的数据
     * @throws VciBaseException 查询出错的时候会抛出异常
     */
    UIFormDataVO getDataForForm(UIFormQuery formQuery) throws VciBaseException;
    UIFormDataVO getDataForForm(UIFormQuery formQuery) throws VciBaseException, PLException;
    /**
     * 获取树形数据
@@ -47,7 +50,7 @@
     * @return 树形数据
     * @throws VciBaseException 查询出错的时候会抛出异常
     */
    List<Tree> getDataForTree(UITreeQuery treeQuery) throws VciBaseException;
    List<Tree> getDataForTree(UITreeQuery treeQuery) throws VciBaseException, PLException;
    /**
     * 调用前置事件
@@ -58,7 +61,7 @@
     * @return 执行结果,请判断success属性是否为true
     * @throws VciBaseException 配置或者是调用不成功的时候,会抛出异常
     */
    BaseResult callPreEvent(BaseModelDTOList baseModelDTOList, BaseLinkModelDTOList baseLinkModelDTOList,String preEvent, VciChangeDocumentTypeEnum businessType) throws VciBaseException;
    BaseResult callPreEvent(BaseModelDTOList baseModelDTOList, BaseLinkModelDTOList baseLinkModelDTOList, String preEvent, VciChangeDocumentTypeEnum businessType) throws VciBaseException;
    /**
     * 后置事件
@@ -69,7 +72,7 @@
     * @return 执行的结果
     * @throws VciBaseException 执行出错的会抛出异常,或者事件直接返回了异常
     */
    BaseResult callPostEvent(Collection<com.vci.client.bof.ClientBusinessObject> cbos, Collection<com.vci.client.bof.ClientLinkObject> clos, String postEvent, VciChangeDocumentTypeEnum businessType) throws VciBaseException;
    BaseResult callPostEvent(Collection<BusinessObject> cbos, Collection<LinkObject> clos, String postEvent, VciChangeDocumentTypeEnum businessType) throws VciBaseException;
    /**
     * 表单数据转换为基础对象
@@ -105,14 +108,14 @@
     * @return 执行结果和显示后的值
     * @throws VciBaseException 保存出错的时候会抛出异常
     */
    BaseResult<Map<String,Object>> addSave(FormDataDTO formDataDTO) throws VciBaseException;
    BaseResult<Map<String,Object>> addSave(FormDataDTO formDataDTO) throws VciBaseException, PLException;
    /**
     * 业务类型
     * @param cbo 业务数据对象
     * @return 基础对象
     */
    BaseModel cbo2BaseModel(com.vci.client.bof.ClientBusinessObject cbo);
    BaseModel cbo2BaseModel(BusinessObject cbo);
    /**
     * 业务数据表单对象转换为基础的属性
@@ -134,7 +137,7 @@
     * @param baseModel 基础对象
     * @return 版本的对象
     */
    RevisionValueObject getNextRevision(OsBtmTypeVO btmTypeVO, BaseModel baseModel);
    RevisionDataInfo getNextRevision(OsBtmTypeVO btmTypeVO, BaseModel baseModel);
    /**
     * 获取下一个版次的号
@@ -142,7 +145,7 @@
     * @param baseModel 基础对象
     * @return 版本的值对象
     */
    VersionValueObject getNextVersion(OsBtmTypeVO btmTypeVO, BaseModel baseModel);
    VersionDataInfo getNextVersion(OsBtmTypeVO btmTypeVO, BaseModel baseModel);
    /**
     * 获取第一个版次
@@ -157,7 +160,7 @@
     * @return 执行结果和主键
     * @throws VciBaseException 保存出错的时候会抛出异常
     */
    BaseResult<String> batchAddSave(FormDataDTOList formDataDTOList) throws VciBaseException;
    BaseResult<String> batchAddSave(FormDataDTOList formDataDTOList) throws VciBaseException, PLException;
    /**
     * 修改数据。注意表单定义的字段才会被修改,ts这种默认字段除外
@@ -165,7 +168,7 @@
     * @return 执行结果和显示后的值
     * @throws VciBaseException 保存出错的时候会抛出异常
     */
    BaseResult<Map<String,Object>> editSave(FormDataDTO formDataDTO) throws VciBaseException;
    BaseResult<Map<String,Object>> editSave(FormDataDTO formDataDTO) throws VciBaseException, PLException;
    /**
     * 数据升版
@@ -173,7 +176,7 @@
     * @return 执行结果和显示后的值
     * @throws VciBaseException 保存出错的时候会抛出异常
     */
    BaseResult<Map<String, Object>> upRevision(FormDataDTO formDataDTO) throws VciBaseException;
    BaseResult<Map<String, Object>> upRevision(FormDataDTO formDataDTO) throws VciBaseException, PLException;
    /**
     * 批量修改,注意表单定义的字段才会被修改,ts这种默认字段除外
@@ -181,7 +184,7 @@
     * @return 执行结果和显示后的值
     * @throws VciBaseException 保存出错的时候会抛出异常
     */
    BaseResult<String> batchEditSave(FormDataDTOList formDataDTOList) throws VciBaseException;
    BaseResult<String> batchEditSave(FormDataDTOList formDataDTOList) throws VciBaseException, PLException;
    /**
     * 批量删除
@@ -189,7 +192,7 @@
     * @return 执行结果
     * @throws VciBaseException 数据被引用的时候会抛出异常
     */
    BaseResult batchDelete(DeleteDataDTO deleteDataDTO)  throws VciBaseException;
    BaseResult batchDelete(DeleteDataDTO deleteDataDTO) throws VciBaseException, PLException;
    /**
     * 链接类型添加
@@ -197,7 +200,7 @@
     * @return 链接类型的主键
     * @throws VciBaseException 参数为空,必输项缺失
     */
    BaseResult<String> linkAddSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException;
    BaseResult<String> linkAddSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException, PLException;
    /**
     * 设置值到业务类型的对象上
@@ -206,7 +209,7 @@
     * @param cbo 业务类型的对象
     * @param editFlag 是否为编辑
     */
    void setValueToCbo(Map<String, String> dataLow, Map<String, String> baseDataLow, com.vci.client.bof.ClientBusinessObject cbo, boolean editFlag);
    void setValueToCbo(Map<String, String> dataLow, Map<String, String> baseDataLow, BusinessObject cbo, boolean editFlag);
    /**
     * 链接类型的编辑数据
@@ -214,7 +217,7 @@
     * @return 执行结果
     * @throws VciBaseException 参数为空,必输项缺失
     */
    BaseResult linkEditSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException;
    BaseResult linkEditSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException, PLException;
    /**
     * 删除链接类型
@@ -230,7 +233,7 @@
     * @param pageHelper 分页的工具
     * @return 列表数据
     */
    DataGrid referDataGrid(ReferConfigVO referConfigVO, PageHelper pageHelper);
    DataGrid referDataGrid(ReferConfigVO referConfigVO, PageHelper pageHelper) throws PLException;
    /**
     * 获取树形的参照
@@ -246,4 +249,28 @@
     * @return 业务数据的属性信息
     */
    List<Map<String,String>>  getDataAttr(String btmName, String oid);
    /**
     * 数据升版本/次,前端使用JSON提交
     * @param btmname 业务类型的信息
     * @param oid 业务数据的主键
     * @param type 1:版次对象;2:版本对象;3:主对象
     * @return 执行的结果
     */
    BaseResult deleteBusinessObject(String btmname, String oid, int type) throws PLException;
    /**
     * 变更所有者
     * @param btmname 业务类型
     * @param oid 主键
     * @return 执行的结果
     */
    BaseResult changeBusinessObjectOwner(String btmname, String oid) throws PLException;
    /**
     * 状态跃迁
     * @param btmname 业务类型
     * @param oid 主键
     * @param releaseStatus 发布状态
     * @return 执行的结果
     */
    BaseResult transferBusinessObject(String btmname, String oid, String toStatus, String releaseStatus) throws PLException;
}