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

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Frederico Palma 12 years ago
parent ad846afa99
commit b0c38d029c

@ -8002,7 +8002,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
butGravar.setText( "Gravar" ); butGravar.setText( "Gravar" );
if ( a.getCorrecao().matches( "y" ) ) if ( a.getCorrecao().matches( "y" ) )
{ {
butEnviar.setText( "Enviar a Recomendações SHST" ); butEnviar.setText( "Enviar a Recomendações SHST" );
} }
else else
{ {
@ -8033,7 +8033,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
case Global.ESTADO_RH1: case Global.ESTADO_RH1:
butCorrecao.setRendered( false ); butCorrecao.setRendered( false );
butGravar.setText( "Gravar" ); butGravar.setText( "Gravar" );
butEnviar.setText( "Enviar a Recomendações SHST" ); butEnviar.setText( "Enviar a Recomendações SHST" );
gridSiprpView.setRendered( false ); gridSiprpView.setRendered( false );
gridAcidentadoView.setRendered( false ); gridAcidentadoView.setRendered( false );
gridDadosAcidenteSeg.setRendered( false ); //19/11/2007 gridDadosAcidenteSeg.setRendered( false ); //19/11/2007
@ -8094,13 +8094,13 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
//butEnviar.setText("Enviar a Médico"); //butEnviar.setText("Enviar a Médico");
// if(a.getCorrecao().matches("y")) // if(a.getCorrecao().matches("y"))
// { // {
// butEnviar.setText("Enviar a Consolidação"); // butEnviar.setText("Enviar a Consolidação");
// } // }
// else // else
// { // {
// butEnviar.setText("Enviar a Medicina"); // butEnviar.setText("Enviar a Medicina");
// } // }
butEnviar.setText( "Enviar a Consolidação" ); butEnviar.setText( "Enviar a Consolidação" );
//butEnviar.setText("Enviar a Medicina"); //butEnviar.setText("Enviar a Medicina");
//gridSiprpView.setRendered(false); //gridSiprpView.setRendered(false);
@ -8135,7 +8135,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
// case Global.ESTADO_MEDICINA: // case Global.ESTADO_MEDICINA:
// butCorrecao.setRendered(false); // butCorrecao.setRendered(false);
// butGravar.setText("Gravar"); // butGravar.setText("Gravar");
// butEnviar.setText("Enviar a Consolidação"); // butEnviar.setText("Enviar a Consolidação");
// //gridSiprpView.setRendered(false); // //gridSiprpView.setRendered(false);
// gridSiprp.setRendered(false); // gridSiprp.setRendered(false);
// gridAcidentado.setRendered(false); // gridAcidentado.setRendered(false);
@ -8167,7 +8167,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
case Global.ESTADO_CONSOLIDACAO: case Global.ESTADO_CONSOLIDACAO:
//butGravar.setText("Gravar"); //butGravar.setText("Gravar");
butGravar.setRendered( false ); butGravar.setRendered( false );
butEnviar.setText( "Enviar a Verificação" ); butEnviar.setText( "Enviar a Verificação" );
hidDisableEnviar.setValue( "n" ); hidDisableEnviar.setValue( "n" );
// boolean booAveriguacao = false; // boolean booAveriguacao = false;
// if(a.getAveriguacao_posterior().matches("y")) // if(a.getAveriguacao_posterior().matches("y"))
@ -8264,7 +8264,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
//butGravar.setText("Imprimir"); //butGravar.setText("Imprimir");
butCorrecao.setRendered( false ); butCorrecao.setRendered( false );
butImprimir.setRendered( false ); butImprimir.setRendered( false );
butEnviar.setText( "Enviar a Conclusão" ); butEnviar.setText( "Enviar a Conclusão" );
gridSiprp.setRendered( false ); gridSiprp.setRendered( false );
gridAcidentado.setRendered( false ); gridAcidentado.setRendered( false );
gridDadosAcidenteSeg.setRendered( false ); gridDadosAcidenteSeg.setRendered( false );
@ -12677,7 +12677,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
Date d = analise == null ? getCalDataOcorrencia() : analise.getData_acidente(); Date d = analise == null ? getCalDataOcorrencia() : analise.getData_acidente();
if ( d == null ) if ( d == null )
{ {
getSessionBean1().setMsg( "Falta data da ocorrência!" ); getSessionBean1().setMsg( "Falta data da ocorrência!" );
return false; return false;
} }
return true; return true;
@ -14994,7 +14994,7 @@ public class AnaliseAcidenteTrabalho extends AbstractPageBean
System.out.println( "SEND EMAIL TO RH FASE 4" ); System.out.println( "SEND EMAIL TO RH FASE 4" );
Acidentado ac = getSessionBean1().getAcidentado(); Acidentado ac = getSessionBean1().getAcidentado();
//String assunto = "SIPRP ¯ Fecho do Processo de Análise de Acidente de Trabalho nº " + a.getAnalise_nr() + " ¯ Ficheiro para Impressão"; //String assunto = "SIPRP ¯ Fecho do Processo de Análise de Acidente de Trabalho nº " + a.getAnalise_nr() + " ¯ Ficheiro para Impressão";
String assunto = "SIPRP - Fecho do Processo de Analise de Acidente de Trabalho nr " + a.getAnalise_nr() + " - Ficheiro para Impressão" + " - " + ( ac != null ? ac.getEstabelecimento_origem() : "" ); String assunto = "SIPRP - Fecho do Processo de Analise de Acidente de Trabalho nr " + a.getAnalise_nr() + " - Ficheiro para Impressão" + " - " + ( ac != null ? ac.getEstabelecimento_origem() : "" );
// UtilizadoresDataProvider udp = new UtilizadoresDataProvider(); // UtilizadoresDataProvider udp = new UtilizadoresDataProvider();
try try

@ -157,7 +157,7 @@ public class ConfirmarDesactivar extends AbstractPageBean
AnaliseAcidente analise = getSessionBean1().getCurrentAnalise(); AnaliseAcidente analise = getSessionBean1().getCurrentAnalise();
if ( analise != null ) if ( analise != null )
{ {
textAnalise.setText( "Análise nº " + analise.getAnalise_nr() ); textAnalise.setText( "Análise nº " + analise.getAnalise_nr() );
System.out.println( "\nConfirmarDesactivar . prerender() : " + System.out.println( "\nConfirmarDesactivar . prerender() : " +
"AnaliseID = " + analise.getId() + "AnaliseID = " + analise.getId() +
" ; AnaliseNr = " + analise.getAnalise_nr() + " ; AnaliseNr = " + analise.getAnalise_nr() +
@ -165,7 +165,7 @@ public class ConfirmarDesactivar extends AbstractPageBean
} }
else else
{ {
textAnalise.setText( "Análise inválida." ); textAnalise.setText( "Análise inválida." );
System.out.println( "\nConfirmarDesactivar . prerender() : Analise = null !" ); System.out.println( "\nConfirmarDesactivar . prerender() : Analise = null !" );
} }
} }
@ -291,7 +291,7 @@ public class ConfirmarDesactivar extends AbstractPageBean
catch ( Exception e ) catch ( Exception e )
{ {
ErrorLogger.logException( e ); ErrorLogger.logException( e );
getSessionBean1().setMsg( "Erro a desactivar análise.\n" + e.getMessage() ); getSessionBean1().setMsg( "Erro a desactivar análise.\n" + e.getMessage() );
} }
} }

@ -630,7 +630,7 @@ public class EnviarCorrecao extends AbstractPageBean {
c.setAnalise_id(getSessionBean1().getCurrentAnalise().getId()); c.setAnalise_id(getSessionBean1().getCurrentAnalise().getId());
c.setEstado_actual(getSessionBean1().getCurrentAnalise().getEstado()); c.setEstado_actual(getSessionBean1().getCurrentAnalise().getEstado());
c.setEstado_corr(new Integer(Global.ESTADO_RH2)); c.setEstado_corr(new Integer(Global.ESTADO_RH2));
c.setDescricao("FASE 4 - RH - MEDIDAS + LESÃO"); c.setDescricao("FASE 4 - RH - MEDIDAS + LESÃO");
list.add(c); list.add(c);
// c = new Correcao(); // c = new Correcao();
// c.setCorrecao("y"); // c.setCorrecao("y");

@ -403,7 +403,7 @@ public class EstatisticasProcesso extends AbstractPageBean
Option[] turnosOptions = new Option[ 5 ]; Option[] turnosOptions = new Option[ 5 ];
turnosOptions[ 0 ] = new Option( "", "" ); turnosOptions[ 0 ] = new Option( "", "" );
turnosOptions[ 1 ] = new Option( "m", "Manhã" ); turnosOptions[ 1 ] = new Option( "m", "Manhã" );
turnosOptions[ 2 ] = new Option( "t", "Tarde" ); turnosOptions[ 2 ] = new Option( "t", "Tarde" );
turnosOptions[ 3 ] = new Option( "n", "Noite" ); turnosOptions[ 3 ] = new Option( "n", "Noite" );
turnosOptions[ 4 ] = new Option( "o", "Outro" ); turnosOptions[ 4 ] = new Option( "o", "Outro" );
@ -950,7 +950,7 @@ public class EstatisticasProcesso extends AbstractPageBean
{ {
if ( "m".equals( turno ) ) if ( "m".equals( turno ) )
{ {
turnoDesc = "Manhã"; turnoDesc = "Manhã";
} }
else if ( "t".equals( turno ) ) else if ( "t".equals( turno ) )
{ {
@ -977,7 +977,7 @@ public class EstatisticasProcesso extends AbstractPageBean
String fshst = ""; String fshst = "";
if ( formacao_shst != null ) if ( formacao_shst != null )
{ {
fshst = formacao_shst ? "Sim" : "Não"; fshst = formacao_shst ? "Sim" : "Não";
} }
columnValue.setCellValue( fshst ); columnValue.setCellValue( fshst );
row++; row++;
@ -990,7 +990,7 @@ public class EstatisticasProcesso extends AbstractPageBean
String fparticiapdo = ""; String fparticiapdo = "";
if ( participado_seguro != null ) if ( participado_seguro != null )
{ {
fparticiapdo = participado_seguro ? "Sim" : "Não"; fparticiapdo = participado_seguro ? "Sim" : "Não";
} }
columnValue.setCellValue( fparticiapdo ); columnValue.setCellValue( fparticiapdo );

@ -1569,7 +1569,7 @@ public class FormDirGerRh extends AbstractPageBean
mesOptions[0] = new Option( "", "" ); mesOptions[0] = new Option( "", "" );
mesOptions[1] = new Option( new Integer( 1 ), "Janeiro" ); mesOptions[1] = new Option( new Integer( 1 ), "Janeiro" );
mesOptions[2] = new Option( new Integer( 2 ), "Fevereiro" ); mesOptions[2] = new Option( new Integer( 2 ), "Fevereiro" );
mesOptions[3] = new Option( new Integer( 3 ), "Março" ); mesOptions[3] = new Option( new Integer( 3 ), "Março" );
mesOptions[4] = new Option( new Integer( 4 ), "Abril" ); mesOptions[4] = new Option( new Integer( 4 ), "Abril" );
mesOptions[5] = new Option( new Integer( 5 ), "Maio" ); mesOptions[5] = new Option( new Integer( 5 ), "Maio" );
mesOptions[6] = new Option( new Integer( 6 ), "Junho" ); mesOptions[6] = new Option( new Integer( 6 ), "Junho" );

@ -1608,7 +1608,7 @@ public class FormDirSiprp extends AbstractPageBean
mesOptions[0] = new Option( "", "" ); mesOptions[0] = new Option( "", "" );
mesOptions[1] = new Option( new Integer( 1 ), "Janeiro" ); mesOptions[1] = new Option( new Integer( 1 ), "Janeiro" );
mesOptions[2] = new Option( new Integer( 2 ), "Fevereiro" ); mesOptions[2] = new Option( new Integer( 2 ), "Fevereiro" );
mesOptions[3] = new Option( new Integer( 3 ), "Março" ); mesOptions[3] = new Option( new Integer( 3 ), "Março" );
mesOptions[4] = new Option( new Integer( 4 ), "Abril" ); mesOptions[4] = new Option( new Integer( 4 ), "Abril" );
mesOptions[5] = new Option( new Integer( 5 ), "Maio" ); mesOptions[5] = new Option( new Integer( 5 ), "Maio" );
mesOptions[6] = new Option( new Integer( 6 ), "Junho" ); mesOptions[6] = new Option( new Integer( 6 ), "Junho" );

@ -1639,7 +1639,7 @@ public class FormGestor extends AbstractPageBean
mesOptions[0] = new Option( "", "" ); mesOptions[0] = new Option( "", "" );
mesOptions[1] = new Option( new Integer( 1 ), "Janeiro" ); mesOptions[1] = new Option( new Integer( 1 ), "Janeiro" );
mesOptions[2] = new Option( new Integer( 2 ), "Fevereiro" ); mesOptions[2] = new Option( new Integer( 2 ), "Fevereiro" );
mesOptions[3] = new Option( new Integer( 3 ), "Março" ); mesOptions[3] = new Option( new Integer( 3 ), "Março" );
mesOptions[4] = new Option( new Integer( 4 ), "Abril" ); mesOptions[4] = new Option( new Integer( 4 ), "Abril" );
mesOptions[5] = new Option( new Integer( 5 ), "Maio" ); mesOptions[5] = new Option( new Integer( 5 ), "Maio" );
mesOptions[6] = new Option( new Integer( 6 ), "Junho" ); mesOptions[6] = new Option( new Integer( 6 ), "Junho" );

@ -1778,7 +1778,7 @@ public class FormHS extends AbstractPageBean
mesOptions[ 0] = new Option( "", "" ); mesOptions[ 0] = new Option( "", "" );
mesOptions[ 1] = new Option( new Integer( 1 ), "Janeiro" ); mesOptions[ 1] = new Option( new Integer( 1 ), "Janeiro" );
mesOptions[ 2] = new Option( new Integer( 2 ), "Fevereiro" ); mesOptions[ 2] = new Option( new Integer( 2 ), "Fevereiro" );
mesOptions[ 3] = new Option( new Integer( 3 ), "Março" ); mesOptions[ 3] = new Option( new Integer( 3 ), "Março" );
mesOptions[ 4] = new Option( new Integer( 4 ), "Abril" ); mesOptions[ 4] = new Option( new Integer( 4 ), "Abril" );
mesOptions[ 5] = new Option( new Integer( 5 ), "Maio" ); mesOptions[ 5] = new Option( new Integer( 5 ), "Maio" );
mesOptions[ 6] = new Option( new Integer( 6 ), "Junho" ); mesOptions[ 6] = new Option( new Integer( 6 ), "Junho" );

@ -1773,7 +1773,7 @@ public class FormMedico extends AbstractPageBean
mesOptions[0] = new Option( "", "" ); mesOptions[0] = new Option( "", "" );
mesOptions[1] = new Option( new Integer( 1 ), "Janeiro" ); mesOptions[1] = new Option( new Integer( 1 ), "Janeiro" );
mesOptions[2] = new Option( new Integer( 2 ), "Fevereiro" ); mesOptions[2] = new Option( new Integer( 2 ), "Fevereiro" );
mesOptions[3] = new Option( new Integer( 3 ), "Março" ); mesOptions[3] = new Option( new Integer( 3 ), "Março" );
mesOptions[4] = new Option( new Integer( 4 ), "Abril" ); mesOptions[4] = new Option( new Integer( 4 ), "Abril" );
mesOptions[5] = new Option( new Integer( 5 ), "Maio" ); mesOptions[5] = new Option( new Integer( 5 ), "Maio" );
mesOptions[6] = new Option( new Integer( 6 ), "Junho" ); mesOptions[6] = new Option( new Integer( 6 ), "Junho" );

@ -1849,7 +1849,7 @@ public class FormRH extends AbstractPageBean
mesOptions[0] = new Option( "", "" ); mesOptions[0] = new Option( "", "" );
mesOptions[1] = new Option( new Integer( 1 ), "Janeiro" ); mesOptions[1] = new Option( new Integer( 1 ), "Janeiro" );
mesOptions[2] = new Option( new Integer( 2 ), "Fevereiro" ); mesOptions[2] = new Option( new Integer( 2 ), "Fevereiro" );
mesOptions[3] = new Option( new Integer( 3 ), "Março" ); mesOptions[3] = new Option( new Integer( 3 ), "Março" );
mesOptions[4] = new Option( new Integer( 4 ), "Abril" ); mesOptions[4] = new Option( new Integer( 4 ), "Abril" );
mesOptions[5] = new Option( new Integer( 5 ), "Maio" ); mesOptions[5] = new Option( new Integer( 5 ), "Maio" );
mesOptions[6] = new Option( new Integer( 6 ), "Junho" ); mesOptions[6] = new Option( new Integer( 6 ), "Junho" );

@ -1640,7 +1640,7 @@ public class FormSeguranca extends AbstractPageBean
mesOptions[0] = new Option( "", "" ); mesOptions[0] = new Option( "", "" );
mesOptions[1] = new Option( new Integer( 1 ), "Janeiro" ); mesOptions[1] = new Option( new Integer( 1 ), "Janeiro" );
mesOptions[2] = new Option( new Integer( 2 ), "Fevereiro" ); mesOptions[2] = new Option( new Integer( 2 ), "Fevereiro" );
mesOptions[3] = new Option( new Integer( 3 ), "Março" ); mesOptions[3] = new Option( new Integer( 3 ), "Março" );
mesOptions[4] = new Option( new Integer( 4 ), "Abril" ); mesOptions[4] = new Option( new Integer( 4 ), "Abril" );
mesOptions[5] = new Option( new Integer( 5 ), "Maio" ); mesOptions[5] = new Option( new Integer( 5 ), "Maio" );
mesOptions[6] = new Option( new Integer( 6 ), "Junho" ); mesOptions[6] = new Option( new Integer( 6 ), "Junho" );

@ -464,7 +464,7 @@ public class Login extends AbstractPageBean
initializeClock(); initializeClock();
initializeDropDownOptions(); initializeDropDownOptions();
// só para testes. retirar depois : // so para testes. retirar depois :
///getSessionBean1().setModoEdicaoUtilizador("new"); ///getSessionBean1().setModoEdicaoUtilizador("new");
///sRet = "create_user"; ///sRet = "create_user";
} }

@ -1138,7 +1138,7 @@ public class UtilizadorFields extends AbstractPageBean {
Utilizador u = udp.getUtilizador( login ); Utilizador u = udp.getUtilizador( login );
if ( u != null && login.equals( u.getLogin() ) ) if ( u != null && login.equals( u.getLogin() ) )
{ {
getSessionBean1().setMsg("O utilizador " + login + " já existe!"); getSessionBean1().setMsg("O utilizador " + login + " já existe!");
return false; return false;
} }
} }
@ -1290,7 +1290,7 @@ public class UtilizadorFields extends AbstractPageBean {
Utilizador ut = udp.getUtilizador(login); Utilizador ut = udp.getUtilizador(login);
if(ut.getLogin().equals(login)) if(ut.getLogin().equals(login))
{ {
getSessionBean1().setMsg("O utilizador " + login + " já existe!"); getSessionBean1().setMsg("O utilizador " + login + " já existe!");
return false; return false;
} }
} }

@ -12,8 +12,8 @@ package db;
public interface EstatisticasConstants public interface EstatisticasConstants
{ {
public static final String[] KEY_NAMES = new String[] { public static final String[] KEY_NAMES = new String[] {
"POR", "Nome", "Ano Ocorrência", "Data Ocorrência", "Hora Ocorrência", "Horas Trabalhadas no Turno", "POR", "Nome", "Ano Ocorrência", "Data Ocorrência", "Hora Ocorrência", "Horas Trabalhadas no Turno",
/*"Departamento", */"Estabelecimento", "Secção", "Causas do Acidente", "Turno de Trabalho", "Formação SHST", /*"Departamento", */"Estabelecimento", "Secção", "Causas do Acidente", "Turno de Trabalho", "Formação SHST",
"Participado \u00e0 Seguradora" "Participado \u00e0 Seguradora"
//TODO: falta os 2 ultimos //TODO: falta os 2 ultimos
}; };

@ -3226,11 +3226,11 @@ public class AnalisesDataProvider extends GenericDataProvider
} }
// else if(estado == Global.ESTADO_ASSINATURAS) // else if(estado == Global.ESTADO_ASSINATURAS)
// { // {
// return "Verificação"; // return "Verificação";
// } // }
// else if(estado == Global.ESTADO_IMPRESSAO) // else if(estado == Global.ESTADO_IMPRESSAO)
// { // {
// return "Impressão"; // return "Impressão";
// } // }
else if ( estado == Global.ESTADO_ASSINATURA_SEG ) else if ( estado == Global.ESTADO_ASSINATURA_SEG )
{ {

Loading…
Cancel
Save