|
|
|
@ -5023,6 +5023,30 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
|
|
|
|
{
|
|
|
|
{
|
|
|
|
this.staticText42 = st;
|
|
|
|
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();
|
|
|
|
private HiddenField hidDisableEnviar = new HiddenField();
|
|
|
|
|
|
|
|
|
|
|
|
public HiddenField getHidDisableEnviar()
|
|
|
|
public HiddenField getHidDisableEnviar()
|
|
|
|
@ -8383,6 +8407,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
|
|
|
|
rbTurnoManha.setSelected( null );
|
|
|
|
rbTurnoManha.setSelected( null );
|
|
|
|
rbTurnoTarde.setSelected( null );
|
|
|
|
rbTurnoTarde.setSelected( null );
|
|
|
|
rbTurnoNoite.setSelected( null );
|
|
|
|
rbTurnoNoite.setSelected( null );
|
|
|
|
|
|
|
|
rbTurnoOutro.setSelected( null );
|
|
|
|
if ( a.getTurno().matches( "m" ) )
|
|
|
|
if ( a.getTurno().matches( "m" ) )
|
|
|
|
{
|
|
|
|
{
|
|
|
|
rbTurnoManha.setSelected( new Boolean( true ) );
|
|
|
|
rbTurnoManha.setSelected( new Boolean( true ) );
|
|
|
|
@ -8395,6 +8420,10 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
|
|
|
|
{
|
|
|
|
{
|
|
|
|
rbTurnoNoite.setSelected( new Boolean( true ) );
|
|
|
|
rbTurnoNoite.setSelected( new Boolean( true ) );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
else if ( a.getTurno().matches( "o" ) )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
rbTurnoOutro.setSelected( new Boolean( true ) );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
txtNomeSuperior.setText( a.getNome_superior_hierarquico() );
|
|
|
|
txtNomeSuperior.setText( a.getNome_superior_hierarquico() );
|
|
|
|
txtEmailSuperior.setText( a.getEmail_superior_hierarquico() );
|
|
|
|
txtEmailSuperior.setText( a.getEmail_superior_hierarquico() );
|
|
|
|
@ -11654,6 +11683,13 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
|
|
|
|
a.setTurno( "n" );
|
|
|
|
a.setTurno( "n" );
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
if ( rbTurnoOutro.getValue() != null )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if ( rbTurnoOutro.getValue().equals( new Boolean( true ) ) )
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
a.setTurno( "o" );
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
if ( txtNomeSuperior.getText() != null )
|
|
|
|
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!" );
|
|
|
|
getSessionBean1().setMsg( "Falta turno de trabalho!" );
|
|
|
|
return false;
|
|
|
|
return false;
|
|
|
|
|