| | |
| | | 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<Map<String,Object>> addSave(FormDataDTO formDataDTO) throws VciBaseException; |
| | | BaseResult<Map<String,Object>> addSave(FormDataDTO formDataDTO) throws VciBaseException, PLException; |
| | | |
| | | /** |
| | | * 业务类型 |
| | |
| | | * @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<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; |
| | | |
| | | /** |
| | | * 设置值到业务类型的对象上 |
| | |
| | | * @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 执行的结果 |
| | | */ |
| | | 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; |
| | | } |