package cn.autoform.web.client;
|
|
import java.util.List;
|
import java.util.concurrent.TimeoutException;
|
|
import cn.autoform.bean.CodeAndValueBean;
|
import cn.autoform.db.entity.MasterDefineEntity;
|
import cn.autoform.db.entity.MasterElementEntity;
|
import cn.autoform.db.entity.MasterValueEntity;
|
import cn.autoform.db.exten.MasterData;
|
import cn.autoform.db.exten.MasterValue;
|
import cn.autoform.fw.exception.FormClientException;
|
|
/**
|
* 表单主数据定义
|
* @author yuezhw
|
*
|
*/
|
public interface MasterClient {
|
|
/**
|
* 根据主数据值的code转换成NAME
|
* @throws Exception
|
*/
|
CodeAndValueBean masterValueCodeToName(MasterValue masterValue) throws Exception;
|
|
/**
|
* 获得主数据定义
|
* @param tenantID
|
* @param name
|
* @return List<MasterDefineEntity>
|
* @throws TimeoutException
|
* @throws FormClientException
|
*/
|
public List<MasterDefineEntity> queryClientMasterDefines(MasterData masterData) throws TimeoutException, FormClientException;
|
|
/**
|
* 表单创建时获得主数据元素
|
*
|
* @param tenantID 租户ID
|
* @param code 主数据定义Code
|
* @return 主数据元素
|
* @throws Exception
|
*/
|
List<MasterElementEntity> queryClientMasterElements(MasterData masterData) throws Exception;
|
|
|
/**
|
* 新建数据获得主数据元素
|
*
|
* @param tenantID 租户ID
|
* @param code 主数据定义Code
|
* @return 主数据元素
|
* @throws Exception
|
*/
|
|
// List<MasterValueEntity> queryClientMasterValues(MasterValue masterValue) throws Exception;
|
List<CodeAndValueBean> queryClientMasterValues(MasterValue masterValue) throws Exception;
|
}
|