| | |
| | | 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.pagemodel.OsBtmTypeVO; |
| | | import com.vci.pagemodel.ReferConfigVO; |
| | | import com.vci.pagemodel.UIFormDataVO; |
| | | import com.vci.query.UIDataGridQuery; |
| | | import com.vci.query.UIFormQuery; |
| | | import com.vci.query.UITreeQuery; |
| | | 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.web.query.UIDataGridQuery; |
| | | import com.vci.web.query.UIFormQuery; |
| | | import com.vci.web.query.UITreeQuery; |
| | | |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | |
| | | * @return DataGrid中data为Map<String,String>格式 |
| | | * @throws VciBaseException 查询出错的时候会抛出异常 |
| | | */ |
| | | DataGrid getDataForGrid(UIDataGridQuery dataGridQuery) throws VciBaseException; |
| | | DataGrid getDataForGrid(UIDataGridQuery dataGridQuery) throws VciBaseException, PLException; |
| | | |
| | | /** |
| | | * 获取表单的数据 |
| | |
| | | * @return 表单的数据 |
| | | * @throws VciBaseException 查询出错的时候会抛出异常 |
| | | */ |
| | | UIFormDataVO getDataForForm(UIFormQuery formQuery) throws VciBaseException; |
| | | UIFormDataVO getDataForForm(UIFormQuery formQuery) throws VciBaseException, PLException; |
| | | |
| | | /** |
| | | * 获取树形数据 |
| | |
| | | * @return 树形数据 |
| | | * @throws VciBaseException 查询出错的时候会抛出异常 |
| | | */ |
| | | List<Tree> getDataForTree(UITreeQuery treeQuery) throws VciBaseException; |
| | | List<UIDataTree> getDataForTree(UITreeQuery treeQuery) throws Exception; |
| | | |
| | | /** |
| | | * 获取树形数据(根据查询模板查询对象) |
| | | * @param treeQuery 树形查询条件 |
| | | * @return 树形数据 |
| | | * @throws VciBaseException 查询出错的时候会抛出异常 |
| | | */ |
| | | BaseResult getDataByTemp(UITreeQuery treeQuery) throws Exception; |
| | | |
| | | /** |
| | | * 调用前置事件 |
| | |
| | | * @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; |
| | | |
| | | /** |
| | | * 后置事件 |
| | |
| | | * @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; |
| | | |
| | | /** |
| | | * 表单数据转换为基础对象 |
| | |
| | | * @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); |
| | | |
| | | /** |
| | | * 业务数据表单对象转换为基础的属性 |
| | |
| | | * @param baseModel 基础对象 |
| | | * @return 版本的对象 |
| | | */ |
| | | RevisionValueObject getNextRevision(OsBtmTypeVO btmTypeVO, BaseModel baseModel); |
| | | RevisionDataInfo getNextRevision(OsBtmTypeVO btmTypeVO, BaseModel baseModel); |
| | | |
| | | /** |
| | | * 获取下一个版次的号 |
| | |
| | | * @param baseModel 基础对象 |
| | | * @return 版本的值对象 |
| | | */ |
| | | VersionValueObject getNextVersion(OsBtmTypeVO btmTypeVO, BaseModel baseModel); |
| | | VersionDataInfo getNextVersion(OsBtmTypeVO btmTypeVO, BaseModel baseModel); |
| | | |
| | | /** |
| | | * 获取第一个版次 |
| | |
| | | * @return 执行结果和主键 |
| | | * @throws VciBaseException 保存出错的时候会抛出异常 |
| | | */ |
| | | BaseResult<String> batchAddSave(FormDataDTOList formDataDTOList) throws VciBaseException; |
| | | BaseResult<String> batchAddSave(FormDataDTOList formDataDTOList) throws VciBaseException, PLException; |
| | | |
| | | /** |
| | | * 修改数据。注意表单定义的字段才会被修改,ts这种默认字段除外 |
| | |
| | | * @return 执行结果和显示后的值 |
| | | * @throws VciBaseException 保存出错的时候会抛出异常 |
| | | */ |
| | | BaseResult<Map<String,Object>> editSave(FormDataDTO formDataDTO) throws VciBaseException; |
| | | BaseResult<Map<String,Object>> editSave(FormDataDTO formDataDTO) throws VciBaseException, PLException; |
| | | |
| | | /** |
| | | * 数据升版 |
| | |
| | | * @return 执行结果和显示后的值 |
| | | * @throws VciBaseException 保存出错的时候会抛出异常 |
| | | */ |
| | | BaseResult<Map<String, Object>> upRevision(FormDataDTO formDataDTO) throws VciBaseException; |
| | | BaseResult<Map<String, Object>> upRevision(FormDataDTO formDataDTO) throws VciBaseException, PLException; |
| | | |
| | | /** |
| | | * 批量修改,注意表单定义的字段才会被修改,ts这种默认字段除外 |
| | |
| | | * @return 执行结果和显示后的值 |
| | | * @throws VciBaseException 保存出错的时候会抛出异常 |
| | | */ |
| | | BaseResult<String> batchEditSave(FormDataDTOList formDataDTOList) throws VciBaseException; |
| | | BaseResult<String> batchEditSave(FormDataDTOList formDataDTOList) throws VciBaseException, PLException; |
| | | |
| | | /** |
| | | * 批量删除 |
| | |
| | | * @return 执行结果 |
| | | * @throws VciBaseException 数据被引用的时候会抛出异常 |
| | | */ |
| | | BaseResult batchDelete(DeleteDataDTO deleteDataDTO) throws VciBaseException; |
| | | BaseResult batchDelete(DeleteDataDTO deleteDataDTO) throws VciBaseException, PLException; |
| | | |
| | | /** |
| | | * 链接类型添加 |
| | |
| | | * @return 链接类型的主键 |
| | | * @throws VciBaseException 参数为空,必输项缺失 |
| | | */ |
| | | BaseResult<String> linkAddSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException; |
| | | BaseResult<String> linkAddSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException, PLException; |
| | | |
| | | /** |
| | | * 设置值到业务类型的对象上 |
| | |
| | | * @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); |
| | | |
| | | /** |
| | | * 链接类型的编辑数据 |
| | |
| | | * @return 执行结果 |
| | | * @throws VciBaseException 参数为空,必输项缺失 |
| | | */ |
| | | BaseResult linkEditSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException; |
| | | BaseResult linkEditSave(FormLinkDataDTO formLinkDataDTO) throws VciBaseException, PLException; |
| | | |
| | | /** |
| | | * 删除链接类型 |
| | |
| | | * @param pageHelper 分页的工具 |
| | | * @return 列表数据 |
| | | */ |
| | | DataGrid referDataGrid(ReferConfigVO referConfigVO, PageHelper pageHelper); |
| | | DataGrid referDataGrid(ReferConfigVO referConfigVO, PageHelper pageHelper) throws PLException; |
| | | |
| | | /** |
| | | * 获取树形的参照 |
| | |
| | | * @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; |
| | | } |