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

lxbfYeaa
Frederico Palma 11 years ago
parent 581093802b
commit fa1654e92c

@ -1359,7 +1359,7 @@ public class AnalisesDataProvider extends GenericDataProvider
if( nome != null ) if( nome != null )
{ {
firstWhereExp = firstWhereExp.and( firstWhereExp = firstWhereExp.and(
new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isLike( "%" + nome + "%" ).or( new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isILike( "%" + nome + "%" ).or(
new Field( "lower(" + db.data.siprp_local.outer.TrabalhadoresData.NUMERO_MECANOGRAFICO_FULL + ")" ) new Field( "lower(" + db.data.siprp_local.outer.TrabalhadoresData.NUMERO_MECANOGRAFICO_FULL + ")" )
.isLike( "%" + nrMecanografico.toLowerCase() + "%" ) ) ); .isLike( "%" + nrMecanografico.toLowerCase() + "%" ) ) );
} }
@ -1375,7 +1375,7 @@ public class AnalisesDataProvider extends GenericDataProvider
if( nome != null ) if( nome != null )
{ {
firstWhereExp = firstWhereExp firstWhereExp = firstWhereExp
.and( new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isLike( "%" + nome + "%" ) ); .and( new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isILike( "%" + nome + "%" ) );
} }
} }
@ -1420,7 +1420,7 @@ public class AnalisesDataProvider extends GenericDataProvider
if( nome != null ) if( nome != null )
{ {
secondWhereExp = secondWhereExp.and( secondWhereExp = secondWhereExp.and(
new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isLike( "%" + nome + "%" ).or( new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isILike( "%" + nome + "%" ).or(
new Field( "lower(" + db.data.siprp_local.outer.TrabalhadoresData.NUMERO_MECANOGRAFICO_FULL + ")" ) new Field( "lower(" + db.data.siprp_local.outer.TrabalhadoresData.NUMERO_MECANOGRAFICO_FULL + ")" )
.isLike( "%" + nrMecanografico.toLowerCase() + "%" ) ) ); .isLike( "%" + nrMecanografico.toLowerCase() + "%" ) ) );
} }
@ -1436,7 +1436,7 @@ public class AnalisesDataProvider extends GenericDataProvider
if( nome != null ) if( nome != null )
{ {
secondWhereExp = secondWhereExp secondWhereExp = secondWhereExp
.and( new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isLike( "%" + nome + "%" ) ); .and( new Field( db.data.siprp_local.outer.TrabalhadoresData.NOME_FULL ).isILike( "%" + nome + "%" ) );
} }
} }
@ -2641,7 +2641,7 @@ public class AnalisesDataProvider extends GenericDataProvider
{ {
nome = StringPlainer.convertString( nome.trim() ); nome = StringPlainer.convertString( nome.trim() );
nome = nome.replaceAll( " ", "%" ); nome = nome.replaceAll( " ", "%" );
where = where.and( new Field( "plain_utf8( " + AcidentadosData.NOME_FULL + " )" ).isLike( "%" + nome + "%" ) ); where = where.and( new Field( "plain_utf8( " + AcidentadosData.NOME_FULL + " )" ).isILike( "%" + nome + "%" ) );
} }
if( visitaDate != null ) if( visitaDate != null )
{ {
@ -2654,7 +2654,7 @@ public class AnalisesDataProvider extends GenericDataProvider
if( por != null ) if( por != null )
{ {
where = where =
where.and( new Field( AcidentadosData.NUMERO_MECANOGRAFICO_FULL ).isLike( "%" + por.toUpperCase() + "%" ) ); where.and( new Field( AcidentadosData.NUMERO_MECANOGRAFICO_FULL ).isILike( "%" + por.toUpperCase() + "%" ) );
} }
if( visitaDate == null ) if( visitaDate == null )

@ -1,5 +1,7 @@
/* Style rules to make data tables look better */ /* Style rules to make data tables look better */
body {background-color: #bbd400;} /* body {background-color: #bbd400;} */
body {background-color: #ffffff;}
.list-header { .list-header {
background-color: #eeeeee; background-color: #eeeeee;

Loading…
Cancel
Save