Search in sources :

Example 11 with SysFormTemplateVO

use of com.netsteadfast.greenstep.vo.SysFormTemplateVO in project bamboobsc by billchen198318.

the class SystemFormManagementAction method loadFormData.

private void loadFormData() throws ServiceException, Exception {
    this.transformFields2ValueObject(this.form, new String[] { "oid" });
    DefaultResult<SysFormVO> result = this.sysFormService.findObjectByOid(form);
    if (result.getValue() == null) {
        throw new ServiceException(result.getSystemMessage().getValue());
    }
    this.form = result.getValue();
    SysFormTemplateVO template = new SysFormTemplateVO();
    template.setTplId(this.form.getTemplateId());
    DefaultResult<SysFormTemplateVO> tplResult = this.sysFormTemplateService.findByUK(template);
    if (tplResult.getValue() != null) {
        this.getFields().put("templateOid", tplResult.getValue().getOid());
    }
}
Also used : ServiceException(com.netsteadfast.greenstep.base.exception.ServiceException) SysFormVO(com.netsteadfast.greenstep.vo.SysFormVO) SysFormTemplateVO(com.netsteadfast.greenstep.vo.SysFormTemplateVO)

Aggregations

SysFormTemplateVO (com.netsteadfast.greenstep.vo.SysFormTemplateVO)11 ServiceException (com.netsteadfast.greenstep.base.exception.ServiceException)6 SysFormVO (com.netsteadfast.greenstep.vo.SysFormVO)3 ServiceMethodAuthority (com.netsteadfast.greenstep.base.model.ServiceMethodAuthority)2 Transactional (org.springframework.transaction.annotation.Transactional)2 File (java.io.File)1 HashMap (java.util.HashMap)1 Map (java.util.Map)1