git-svn-id: https://svn.coded.pt/svn/SIPRP@1850 bb69d46d-e84e-40c8-a05a-06db0d633741

lxbfYeaa
Frederico Palma 12 years ago
parent 8deab6d127
commit ab893f43bb

@ -8366,7 +8366,9 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
{ {
if ( a.getEstado().intValue() == Global.ESTADO_HS ) if ( a.getEstado().intValue() == Global.ESTADO_HS )
{ {
if ( a.getTecnico_saude_id() == null || a.getTecnico_saude_id().equals( new Integer( 0 ) ) ) if ( a.getTecnico_saude_id() == null || a.getTecnico_saude_id().equals( new Integer( 0 ) )
&& getSessionBean1().getCurrentUser() != null && getSessionBean1().getCurrentUser().getTipo() != null
&& getSessionBean1().getCurrentUser().getTipo().equals( Global.TIPO_UTILIZADOR_HS ) )
{ {
a.setTecnico_saude_id( getSessionBean1().getCurrentUser().getId() ); a.setTecnico_saude_id( getSessionBean1().getCurrentUser().getId() );
} }
@ -11330,7 +11332,9 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
{ {
ac = fillAcidentadoFields(); ac = fillAcidentadoFields();
} }
else if ( estado == Global.ESTADO_HS ) else if ( estado == Global.ESTADO_HS
&& getSessionBean1().getCurrentUser() != null && getSessionBean1().getCurrentUser().getTipo() != null
&& getSessionBean1().getCurrentUser().getTipo().equals( Global.TIPO_UTILIZADOR_HS ) )
{ {
a.setTecnico_saude_id( getSessionBean1().getCurrentUser().getId() ); a.setTecnico_saude_id( getSessionBean1().getCurrentUser().getId() );
recs = fillAnaliseRecomendacoesHs( a ); recs = fillAnaliseRecomendacoesHs( a );
@ -11473,7 +11477,9 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
{ {
ac = fillAcidentadoFields(); ac = fillAcidentadoFields();
} }
else if ( estado == Global.ESTADO_HS ) else if ( estado == Global.ESTADO_HS
&& getSessionBean1().getCurrentUser() != null && getSessionBean1().getCurrentUser().getTipo() != null
&& getSessionBean1().getCurrentUser().getTipo().equals( Global.TIPO_UTILIZADOR_HS ) )
{ {
a.setTecnico_saude_id( getSessionBean1().getCurrentUser().getId() ); a.setTecnico_saude_id( getSessionBean1().getCurrentUser().getId() );
recs = fillAnaliseRecomendacoesHs( a ); recs = fillAnaliseRecomendacoesHs( a );

@ -108,7 +108,7 @@
<ui:staticText id="labelEstabelecimento" escape="false" text="Estabelecimento:" styleClass="labelBold" /> <ui:staticText id="labelEstabelecimento" escape="false" text="Estabelecimento:" styleClass="labelBold" />
<ui:dropDown binding="#{EstatisticasProcesso.dropEstabelecimentos}" id="dropEstabelecimentos" style="height: 18px; width: 240px"/> <ui:dropDown binding="#{EstatisticasProcesso.dropEstabelecimentos}" id="dropEstabelecimentos" style="height: 18px; width: 240px"/>
<ui:staticText id="labelSeccao" escape="false" text="Secção:" styleClass="labelBold" /> <ui:staticText id="labelSeccao" escape="false" text="Mercado:" styleClass="labelBold" />
<ui:dropDown binding="#{EstatisticasProcesso.dropSeccoes}" id="dropSeccoes" style="height: 18px; width: 240px"/> <ui:dropDown binding="#{EstatisticasProcesso.dropSeccoes}" id="dropSeccoes" style="height: 18px; width: 240px"/>
<ui:staticText id="labelCausas" escape="false" text="Causas do acidente:" styleClass="labelBold" /> <ui:staticText id="labelCausas" escape="false" text="Causas do acidente:" styleClass="labelBold" />

@ -269,7 +269,7 @@
</ui:panelGroup> </ui:panelGroup>
<ui:panelGroup binding="#{ViewAnaliseAcidenteTrabalho.groupPanel23}" id="groupPanel23" style="height: 24px"> <ui:panelGroup binding="#{ViewAnaliseAcidenteTrabalho.groupPanel23}" id="groupPanel23" style="height: 24px">
<ui:staticText binding="#{ViewAnaliseAcidenteTrabalho.lblSeccao}" escape="false" id="lblSeccao" <ui:staticText binding="#{ViewAnaliseAcidenteTrabalho.lblSeccao}" escape="false" id="lblSeccao"
style="height: 24px; width: 288px" styleClass="labelBold" text="Sec&amp;#231;&amp;#227;o:&amp;nbsp;"/> style="height: 24px; width: 288px" styleClass="labelBold" text="Mercado:&amp;nbsp;"/>
<ui:staticText binding="#{ViewAnaliseAcidenteTrabalho.txtSeccao}" id="txtSeccao" style="height: 24px; width: 216px"/> <ui:staticText binding="#{ViewAnaliseAcidenteTrabalho.txtSeccao}" id="txtSeccao" style="height: 24px; width: 216px"/>
</ui:panelGroup> </ui:panelGroup>
<ui:panelGroup binding="#{ViewAnaliseAcidenteTrabalho.groupPanel24}" id="groupPanel24" style="height: 24px"> <ui:panelGroup binding="#{ViewAnaliseAcidenteTrabalho.groupPanel24}" id="groupPanel24" style="height: 24px">

Loading…
Cancel
Save