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());
}
}
Aggregations