| | |
| | | package com.vci.web.service; |
| | | |
| | | import com.vci.corba.common.PLException; |
| | | import com.vci.corba.omd.stm.StatePool; |
| | | import com.vci.dto.OsStatusDTO; |
| | | import com.vci.pagemodel.OsStatusVO; |
| | | import com.vci.starter.web.pagemodel.BaseResult; |
| | | import com.vci.starter.web.pagemodel.DataGrid; |
| | | import com.vci.starter.web.pagemodel.PageHelper; |
| | | import com.vci.web.dto.OsStatusDTO; |
| | | import com.vci.web.pageModel.OsStatusVO; |
| | | |
| | | import java.io.File; |
| | | import java.util.Collection; |
| | | import java.util.List; |
| | | import java.util.Map; |
| | |
| | | * @param statePool 状态池的数据对象 |
| | | * @return 显示对象 |
| | | */ |
| | | OsStatusVO statusDO2VO(com.vci.corba.omd.stm.StatePool statePool); |
| | | OsStatusVO statusDO2VO(StatePool statePool); |
| | | |
| | | /** |
| | | * 数据对象转换为显示对象 |
| | | * @param statePools 状态池的数据对象 集合 |
| | | * @return 显示对象 |
| | | */ |
| | | List<OsStatusVO> statusDO2VOs(Collection<com.vci.corba.omd.stm.StatePool> statePools); |
| | | List<OsStatusVO> statusDO2VOs(Collection<StatePool> statePools); |
| | | |
| | | /** |
| | | * 查询所有的状态 |
| | |
| | | * 批量添加状态 |
| | | * @param statePoolList 状态内容 |
| | | */ |
| | | void batchAddStatus(List<StatePool> statePoolList); |
| | | boolean batchAddStatus(List<StatePool> statePoolList) throws Exception; |
| | | |
| | | /** |
| | | * 批量修改状态 |
| | | * @param statePoolList 状态内容 |
| | | */ |
| | | void batchEditSave(List<StatePool> statePoolList); |
| | | boolean batchEditSave(List<StatePool> statePoolList) throws Exception; |
| | | |
| | | /** |
| | | * 状态列表 |
| | |
| | | * 添加状态 |
| | | * @param statusDTO 状态的数据传输对象 |
| | | */ |
| | | void addSave(OsStatusDTO statusDTO); |
| | | boolean addSave(OsStatusDTO statusDTO) throws Exception; |
| | | |
| | | /** |
| | | * 编辑状态 |
| | | * @param statusDTO 状态的数据传输对象 |
| | | */ |
| | | void editSave(OsStatusDTO statusDTO); |
| | | boolean editSave(OsStatusDTO statusDTO)throws Exception ; |
| | | |
| | | /** |
| | | * 删除状态 |
| | | * @param oids 主键 |
| | | * @param osStatusDTOS |
| | | */ |
| | | void delete(String oids); |
| | | boolean deleteStatus(List<OsStatusDTO> osStatusDTOS) throws PLException; |
| | | |
| | | /** |
| | | * 状态的数据传输对象转换为数据对象 |
| | |
| | | * @return 平台的数据对象 |
| | | */ |
| | | StatePool statusDTO2DO(OsStatusDTO statusDTO); |
| | | |
| | | /** |
| | | * 导出选中的状态 |
| | | * @param exportFileName 导出的文件名 |
| | | * @param statusOids 需要导出的属性名称 |
| | | * @return |
| | | */ |
| | | String exportStatus(String exportFileName,String statusOids,boolean flag/*控制导出的列名是否和导入模板一致*/) throws PLException; |
| | | |
| | | /** |
| | | * 下载状态导入模板 |
| | | * @param exportFileName |
| | | * @return |
| | | * @throws PLException |
| | | */ |
| | | String downloadStatusTemplate(String exportFileName) throws Exception; |
| | | |
| | | /** |
| | | * 导入状态 |
| | | * @param file |
| | | * @return |
| | | */ |
| | | BaseResult importStatus(File file) throws Exception; |
| | | |
| | | } |