fixed data ocorrencia verification

git-svn-id: https://svn.coded.pt/svn/SIPRP@1767 bb69d46d-e84e-40c8-a05a-06db0d633741
lxbfYeaa
Frederico Palma 14 years ago
parent bbcefd0a03
commit eb03fddf4e

@ -5023,6 +5023,30 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
{
this.staticText42 = st;
}
private RadioButton rbTurnoOutro = new RadioButton();
public RadioButton getRbTurnoOutro()
{
return rbTurnoOutro;
}
public void setRbTurnoOutro( RadioButton rb )
{
this.rbTurnoOutro = rb;
}
private StaticText staticTextTurnoOutro = new StaticText();
public StaticText getStaticTextTurnoOutro()
{
return staticTextTurnoOutro;
}
public void setStaticTextTurnoOutro( StaticText st )
{
this.staticTextTurnoOutro = st;
}
private HiddenField hidDisableEnviar = new HiddenField();
public HiddenField getHidDisableEnviar()
@ -8383,6 +8407,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
rbTurnoManha.setSelected( null );
rbTurnoTarde.setSelected( null );
rbTurnoNoite.setSelected( null );
rbTurnoOutro.setSelected( null );
if ( a.getTurno().matches( "m" ) )
{
rbTurnoManha.setSelected( new Boolean( true ) );
@ -8395,6 +8420,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
{
rbTurnoNoite.setSelected( new Boolean( true ) );
}
else if ( a.getTurno().matches( "o" ) )
{
rbTurnoOutro.setSelected( new Boolean( true ) );
}
txtNomeSuperior.setText( a.getNome_superior_hierarquico() );
txtEmailSuperior.setText( a.getEmail_superior_hierarquico() );
@ -11654,6 +11683,13 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
a.setTurno( "n" );
}
}
if ( rbTurnoOutro.getValue() != null )
{
if ( rbTurnoOutro.getValue().equals( new Boolean( true ) ) )
{
a.setTurno( "o" );
}
}
if ( txtNomeSuperior.getText() != null )
{
@ -13609,7 +13645,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
}
}
if ( rbTurnoManha.getSelected() == null && rbTurnoTarde.getSelected() == null && rbTurnoNoite.getSelected() == null )
if ( rbTurnoManha.getSelected() == null && rbTurnoTarde.getSelected() == null && rbTurnoNoite.getSelected() == null && rbTurnoOutro.getSelected() == null )
{
getSessionBean1().setMsg( "Falta turno de trabalho!" );
return false;

@ -383,11 +383,12 @@ public class EstatisticasProcesso extends AbstractPageBean
lblUser.setText( getSessionBean1().getCurrentUser().getLogin() );
Option[] turnosOptions = new Option[ 4 ];
Option[] turnosOptions = new Option[ 5 ];
turnosOptions[ 0 ] = new Option( "", "" );
turnosOptions[ 1 ] = new Option( "m", "Manhã" );
turnosOptions[ 2 ] = new Option( "t", "Tarde" );
turnosOptions[ 3 ] = new Option( "n", "Noite" );
turnosOptions[ 4 ] = new Option( "o", "Outro" );
dropTurno.setItems( turnosOptions );
try

@ -2654,7 +2654,11 @@ public class ViewAnaliseAcidenteTrabalho extends AbstractPageBean
if(a.getTurno().matches("n"))
{
turno_str += "noite";
}
}
if(a.getTurno().matches("o"))
{
turno_str += "outro";
}
stTurno.setText(turno_str);
stNomeSuperior.setText(a.getNome_superior_hierarquico());
stEmailSuperior.setText(a.getEmail_superior_hierarquico());

@ -378,6 +378,9 @@
<ui:radioButton binding="#{AnaliseAcidenteTrabalho.rbTurnoNoite}" id="rbTurnoNoite" name="rbTurno" style="height: 24px; width: 24px"/>
<ui:staticText binding="#{AnaliseAcidenteTrabalho.staticText42}" escape="false" id="staticText42"
style="height: 24px" text="Noite"/>
<ui:radioButton binding="#{AnaliseAcidenteTrabalho.rbTurnoOutro}" id="rbTurnoOutro" name="rbTurno" style="height: 24px; width: 24px"/>
<ui:staticText binding="#{AnaliseAcidenteTrabalho.staticTextTurnoOutro}" escape="false" id="staticTextTurnoOutro"
style="height: 24px" text="Outro"/>
</ui:panelGroup>
</h:panelGrid>
<h:panelGrid binding="#{AnaliseAcidenteTrabalho.gridPanel100}" columnClasses="gridColLeft" columns="1" id="gridPanel100"

Loading…
Cancel
Save