fixes bug#19589
dev:lucas qua: git-svn-id: http://desenvolvimento.rjconsultores.com.br/repositorio/sco/AdmVenta/Web/trunk/ventaboletos@102171 d1611594-4594-4d17-8e1d-87c2c4800839master
parent
590a191a97
commit
2e542e6004
|
@ -11,6 +11,7 @@ import org.zkoss.zk.ui.event.Event;
|
|||
import org.zkoss.zk.ui.event.EventListener;
|
||||
import org.zkoss.zkplus.spring.SpringUtil;
|
||||
|
||||
import com.rjconsultores.ventaboletos.entidad.EmpresaEmail;
|
||||
import com.rjconsultores.ventaboletos.entidad.LogHistoricoContingencia;
|
||||
import com.rjconsultores.ventaboletos.enums.EStatusContingencia;
|
||||
import com.rjconsultores.ventaboletos.service.ContingenciaService;
|
||||
|
@ -86,7 +87,8 @@ public class EventListenerOnClickContingenciaBotaoContingencia implements EventL
|
|||
}
|
||||
|
||||
private boolean destinatarioNuloQuandoEmContingencia() {
|
||||
return StringUtils.isBlank(getEmpresaEmailService().buscarPorEmpresa(getController().getEmpresaSelecionada()).getDestinatario())
|
||||
EmpresaEmail empresaMail = getEmpresaEmailService().buscarPorEmpresa(getController().getEmpresaSelecionada());
|
||||
return (empresaMail == null || StringUtils.isBlank(empresaMail.getDestinatario()))
|
||||
&& getController().getNovoStatus().equals(EStatusContingencia.CONTINGENCIA.getId().toString());
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue