|
|
|
|
@ -11,15 +11,20 @@ import com.evolute.utils.timer.Timer;
|
|
|
|
|
import com.sun.data.provider.RowKey;
|
|
|
|
|
import com.sun.rave.web.ui.appbase.AbstractPageBean;
|
|
|
|
|
import com.sun.webui.jsf.component.Button;
|
|
|
|
|
import com.sun.webui.jsf.component.PanelGroup;
|
|
|
|
|
import com.sun.webui.jsf.component.StaticText;
|
|
|
|
|
import com.sun.webui.jsf.component.Table;
|
|
|
|
|
import com.sun.webui.jsf.component.TableColumn;
|
|
|
|
|
import com.sun.webui.jsf.component.TableRowGroup;
|
|
|
|
|
import com.sun.webui.jsf.component.TextField;
|
|
|
|
|
import db.Dblocal;
|
|
|
|
|
import db.entidades.PlanoActuacao;
|
|
|
|
|
import db.providers.UtilizadoresDataProvider;
|
|
|
|
|
import db.entidades.Utilizador;
|
|
|
|
|
import db.providers.PlanosDataProvider;
|
|
|
|
|
import global.Global;
|
|
|
|
|
import java.text.DateFormat;
|
|
|
|
|
import java.text.SimpleDateFormat;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
@ -91,8 +96,7 @@ public class ListaPlanos extends AbstractPageBean {
|
|
|
|
|
this.tableRowGroup3 = trg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// </editor-fold>
|
|
|
|
|
PlanosDataProvider pdp = new PlanosDataProvider();
|
|
|
|
|
|
|
|
|
|
private HtmlPanelGrid gridActual = new HtmlPanelGrid();
|
|
|
|
|
|
|
|
|
|
public HtmlPanelGrid getGridActual() {
|
|
|
|
|
@ -148,6 +152,184 @@ public class ListaPlanos extends AbstractPageBean {
|
|
|
|
|
this.buttonDesactivarSeguimento = b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private HtmlPanelGrid gridPanelFilterActual = new HtmlPanelGrid();
|
|
|
|
|
public HtmlPanelGrid getGridPanelFilterActual()
|
|
|
|
|
{
|
|
|
|
|
return this.gridPanelFilterActual;
|
|
|
|
|
}
|
|
|
|
|
public void setGridPanelFilterActual( HtmlPanelGrid pg )
|
|
|
|
|
{
|
|
|
|
|
this.gridPanelFilterActual = pg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private PanelGroup groupPanelFilterActual = new PanelGroup();
|
|
|
|
|
public PanelGroup getGroupPanelFilterActual()
|
|
|
|
|
{
|
|
|
|
|
return this.groupPanelFilterActual;
|
|
|
|
|
}
|
|
|
|
|
public void setGroupPanelFilterActual( PanelGroup pg )
|
|
|
|
|
{
|
|
|
|
|
this.groupPanelFilterActual = pg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private TextField textFilterNameActual = new TextField();
|
|
|
|
|
public TextField getTextFilterNameActual()
|
|
|
|
|
{
|
|
|
|
|
return this.textFilterNameActual;
|
|
|
|
|
}
|
|
|
|
|
public void setTextFilterNameActual( TextField tf )
|
|
|
|
|
{
|
|
|
|
|
this.textFilterNameActual = tf;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private TextField textFilterEstabelecimentoActual = new TextField();
|
|
|
|
|
|
|
|
|
|
public TextField getTextFilterEstabelecimentoActual() {
|
|
|
|
|
return textFilterEstabelecimentoActual;
|
|
|
|
|
}
|
|
|
|
|
public void setTextFilterEstabelecimentoActual(TextField textFilterEstabelecimentoActual) {
|
|
|
|
|
this.textFilterEstabelecimentoActual = textFilterEstabelecimentoActual;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private com.sun.webui.jsf.component.Calendar calFilterDateActual = new com.sun.webui.jsf.component.Calendar();
|
|
|
|
|
public com.sun.webui.jsf.component.Calendar getCalFilterDateActual() {
|
|
|
|
|
return calFilterDateActual;
|
|
|
|
|
}
|
|
|
|
|
public void setCalFilterDateActual(com.sun.webui.jsf.component.Calendar calFilterDateActual) {
|
|
|
|
|
this.calFilterDateActual = calFilterDateActual;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Button buttonFilterActual = new Button();
|
|
|
|
|
public Button getButtonFilterActual()
|
|
|
|
|
{
|
|
|
|
|
return this.buttonFilterActual;
|
|
|
|
|
}
|
|
|
|
|
public void setButtonFilterActual( Button b )
|
|
|
|
|
{
|
|
|
|
|
this.buttonFilterActual = b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private HtmlPanelGrid gridPanelFilterSeg = new HtmlPanelGrid();
|
|
|
|
|
public HtmlPanelGrid getGridPanelFilterSeg()
|
|
|
|
|
{
|
|
|
|
|
return this.gridPanelFilterSeg;
|
|
|
|
|
}
|
|
|
|
|
public void setGridPanelFilterSeg( HtmlPanelGrid pg )
|
|
|
|
|
{
|
|
|
|
|
this.gridPanelFilterSeg = pg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private PanelGroup groupPanelFilterSeg = new PanelGroup();
|
|
|
|
|
public PanelGroup getGroupPanelFilterSeg()
|
|
|
|
|
{
|
|
|
|
|
return this.groupPanelFilterSeg;
|
|
|
|
|
}
|
|
|
|
|
public void setGroupPanelFilterSeg( PanelGroup pg )
|
|
|
|
|
{
|
|
|
|
|
this.groupPanelFilterSeg = pg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private TextField textFilterNameSeg = new TextField();
|
|
|
|
|
public TextField getTextFilterNameSeg()
|
|
|
|
|
{
|
|
|
|
|
return this.textFilterNameSeg;
|
|
|
|
|
}
|
|
|
|
|
public void setTextFilterNameSeg( TextField tf )
|
|
|
|
|
{
|
|
|
|
|
this.textFilterNameSeg = tf;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private TextField textFilterEstabelecimentoSeg = new TextField();
|
|
|
|
|
|
|
|
|
|
public TextField getTextFilterEstabelecimentoSeg() {
|
|
|
|
|
return textFilterEstabelecimentoSeg;
|
|
|
|
|
}
|
|
|
|
|
public void setTextFilterEstabelecimentoSeg(TextField textFilterEstabelecimentoSeg) {
|
|
|
|
|
this.textFilterEstabelecimentoSeg = textFilterEstabelecimentoSeg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private com.sun.webui.jsf.component.Calendar calFilterDateSeg = new com.sun.webui.jsf.component.Calendar();
|
|
|
|
|
public com.sun.webui.jsf.component.Calendar getCalFilterDateSeg() {
|
|
|
|
|
return calFilterDateSeg;
|
|
|
|
|
}
|
|
|
|
|
public void setCalFilterDateSeg(com.sun.webui.jsf.component.Calendar calFilterDateSeg) {
|
|
|
|
|
this.calFilterDateSeg = calFilterDateSeg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Button buttonFilterSeg = new Button();
|
|
|
|
|
public Button getButtonFilterSeg()
|
|
|
|
|
{
|
|
|
|
|
return this.buttonFilterSeg;
|
|
|
|
|
}
|
|
|
|
|
public void setButtonFilterSeg( Button b )
|
|
|
|
|
{
|
|
|
|
|
this.buttonFilterSeg = b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private HtmlPanelGrid gridPanelFilterConc = new HtmlPanelGrid();
|
|
|
|
|
public HtmlPanelGrid getGridPanelFilterConc()
|
|
|
|
|
{
|
|
|
|
|
return this.gridPanelFilterConc;
|
|
|
|
|
}
|
|
|
|
|
public void setGridPanelFilterConc( HtmlPanelGrid pg )
|
|
|
|
|
{
|
|
|
|
|
this.gridPanelFilterConc = pg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private PanelGroup groupPanelFilterConc = new PanelGroup();
|
|
|
|
|
public PanelGroup getGroupPanelFilterConc()
|
|
|
|
|
{
|
|
|
|
|
return this.groupPanelFilterConc;
|
|
|
|
|
}
|
|
|
|
|
public void setGroupPanelFilterConc( PanelGroup pg )
|
|
|
|
|
{
|
|
|
|
|
this.groupPanelFilterConc = pg;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private TextField textFilterNameConc = new TextField();
|
|
|
|
|
public TextField getTextFilterNameConc()
|
|
|
|
|
{
|
|
|
|
|
return this.textFilterNameConc;
|
|
|
|
|
}
|
|
|
|
|
public void setTextFilterNameConc( TextField tf )
|
|
|
|
|
{
|
|
|
|
|
this.textFilterNameConc = tf;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private TextField textFilterEstabelecimentoConc = new TextField();
|
|
|
|
|
|
|
|
|
|
public TextField getTextFilterEstabelecimentoConc() {
|
|
|
|
|
return textFilterEstabelecimentoConc;
|
|
|
|
|
}
|
|
|
|
|
public void setTextFilterEstabelecimentoConc(TextField textFilterEstabelecimentoConc) {
|
|
|
|
|
this.textFilterEstabelecimentoConc = textFilterEstabelecimentoConc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private com.sun.webui.jsf.component.Calendar calFilterDateConc = new com.sun.webui.jsf.component.Calendar();
|
|
|
|
|
public com.sun.webui.jsf.component.Calendar getCalFilterDateConc() {
|
|
|
|
|
return calFilterDateConc;
|
|
|
|
|
}
|
|
|
|
|
public void setCalFilterDateConc(com.sun.webui.jsf.component.Calendar calFilterDateConc) {
|
|
|
|
|
this.calFilterDateConc = calFilterDateConc;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private Button buttonFilterConc = new Button();
|
|
|
|
|
public Button getButtonFilterConc()
|
|
|
|
|
{
|
|
|
|
|
return this.buttonFilterConc;
|
|
|
|
|
}
|
|
|
|
|
public void setButtonFilterConc( Button b )
|
|
|
|
|
{
|
|
|
|
|
this.buttonFilterConc = b;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private static final DateFormat D_F = new SimpleDateFormat( "yyyy-MM-dd" );
|
|
|
|
|
// </editor-fold>
|
|
|
|
|
|
|
|
|
|
PlanosDataProvider pdp = new PlanosDataProvider();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <p>Construct a new Page bean instance.</p>
|
|
|
|
|
@ -568,16 +750,24 @@ FacesContext context = FacesContext.getCurrentInstance();
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
////PlanosActuacao planos = new PlanosActuacao(u);
|
|
|
|
|
|
|
|
|
|
List listPlanosActivos = getPlanosActivos(u);
|
|
|
|
|
getSessionBean1().getPlanosActualDataProvider().setList(listPlanosActivos);
|
|
|
|
|
|
|
|
|
|
List listPlanosSeguimento = getPlanosSeguimento(u);
|
|
|
|
|
getSessionBean1().getPlanosSeguimentoDataProvider().setList(listPlanosSeguimento);
|
|
|
|
|
|
|
|
|
|
List listPlanosConcluidos = getPlanosConcluidos(u);
|
|
|
|
|
getSessionBean1().getPlanosConcluidosDataProvider().setList(listPlanosConcluidos);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
System.out.println( "INITIALIZE:" );
|
|
|
|
|
|
|
|
|
|
if ( ! getSessionBean1().getIsSearchingPlanosActuacao() )
|
|
|
|
|
{
|
|
|
|
|
System.out.println( "\tGETTING INITIAL VALUES FOR EACH TABLE." );
|
|
|
|
|
|
|
|
|
|
List listPlanosActivos = getPlanosActivos(u);
|
|
|
|
|
getSessionBean1().getPlanosActualDataProvider().setList(listPlanosActivos);
|
|
|
|
|
|
|
|
|
|
List listPlanosSeguimento = getPlanosSeguimento(u);
|
|
|
|
|
getSessionBean1().getPlanosSeguimentoDataProvider().setList(listPlanosSeguimento);
|
|
|
|
|
|
|
|
|
|
List listPlanosConcluidos = getPlanosConcluidos(u);
|
|
|
|
|
getSessionBean1().getPlanosConcluidosDataProvider().setList(listPlanosConcluidos);
|
|
|
|
|
}
|
|
|
|
|
//checkPlanosDelayed();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -674,51 +864,216 @@ FacesContext context = FacesContext.getCurrentInstance();
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
public List< PlanoActuacao > searchPlanosActivos( Utilizador u, String nome, String estabelecimento, String dataVisita )
|
|
|
|
|
{
|
|
|
|
|
List< PlanoActuacao > list = new ArrayList< PlanoActuacao >();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if ( u.getTipo().intValue() != Global.DIRECTOR_SIPRP
|
|
|
|
|
&& u.getTipo().intValue() != Global.GESTOR
|
|
|
|
|
&& u.getTipo().intValue() != Global.DIRECTOR_GERAL_RH )
|
|
|
|
|
{
|
|
|
|
|
list = pdp.searchPlanosActivos( u, nome, estabelecimento, dataVisita );
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch ( Exception e )
|
|
|
|
|
{
|
|
|
|
|
e.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<PlanoActuacao> getPlanosActivos(Utilizador u)
|
|
|
|
|
{
|
|
|
|
|
ArrayList list = new ArrayList();
|
|
|
|
|
return searchPlanosActivos( u, null, null, null );
|
|
|
|
|
// List< PlanoActuacao > list = new ArrayList();
|
|
|
|
|
// try
|
|
|
|
|
// {
|
|
|
|
|
// if ( u.getTipo().intValue() != Global.DIRECTOR_SIPRP
|
|
|
|
|
// && u.getTipo().intValue() != Global.GESTOR
|
|
|
|
|
// && u.getTipo().intValue() != Global.DIRECTOR_GERAL_RH )
|
|
|
|
|
// {
|
|
|
|
|
//// list = pdp.getPlanosActivos(u);
|
|
|
|
|
// list = pdp.searchPlanosActivos( u, null, null );
|
|
|
|
|
// }
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// }
|
|
|
|
|
// return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List< PlanoActuacao > searchPlanosSeguimento( Utilizador u, String nome, String estabelecimento, String dataVisita )
|
|
|
|
|
{
|
|
|
|
|
List< PlanoActuacao > list = new ArrayList();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
if(u.getTipo().intValue() != Global.DIRECTOR_SIPRP && u.getTipo().intValue() != Global.GESTOR && u.getTipo().intValue() != Global.DIRECTOR_GERAL_RH)
|
|
|
|
|
{
|
|
|
|
|
list = pdp.getPlanosActivos(u);
|
|
|
|
|
}
|
|
|
|
|
list = pdp.searchPlanosSeguimento( u, nome, estabelecimento, dataVisita );
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<PlanoActuacao> getPlanosSeguimento(Utilizador u)
|
|
|
|
|
{
|
|
|
|
|
ArrayList list = new ArrayList();
|
|
|
|
|
return searchPlanosSeguimento( u, null, null, null );
|
|
|
|
|
// List< PlanoActuacao > list = new ArrayList();
|
|
|
|
|
// try
|
|
|
|
|
// {
|
|
|
|
|
//// list = pdp.getPlanosSeguimento(u);
|
|
|
|
|
// list = pdp.searchPlanosSeguimento( u, null, null );
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// }
|
|
|
|
|
// return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List< PlanoActuacao > searchPlanosConcluidos( Utilizador u, String nome, String estabelecimento, String dataVisita )
|
|
|
|
|
{
|
|
|
|
|
List< PlanoActuacao > list = new ArrayList();
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
list = pdp.getPlanosSeguimento(u);
|
|
|
|
|
|
|
|
|
|
list = pdp.searchPlanosConcluidos( u, nome, estabelecimento, dataVisita );
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public List<PlanoActuacao> getPlanosConcluidos(Utilizador u)
|
|
|
|
|
{
|
|
|
|
|
ArrayList list = new ArrayList();
|
|
|
|
|
try
|
|
|
|
|
return searchPlanosConcluidos( u, null, null, null );
|
|
|
|
|
// List< PlanoActuacao > list = new ArrayList();
|
|
|
|
|
// try
|
|
|
|
|
// {
|
|
|
|
|
//// list = pdp.getPlanosConcluidos(u);
|
|
|
|
|
// list = pdp.searchPlanosConcluidos( u, null, null );
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// }
|
|
|
|
|
// return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String buttonFilterActual_action()
|
|
|
|
|
{
|
|
|
|
|
String nome = null;
|
|
|
|
|
if ( textFilterNameActual.getText() != null )
|
|
|
|
|
{
|
|
|
|
|
list = pdp.getPlanosConcluidos(u);
|
|
|
|
|
nome = (( String ) textFilterNameActual.getText()).trim();
|
|
|
|
|
if( nome.length() == 0 )
|
|
|
|
|
{
|
|
|
|
|
nome = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
|
|
|
|
|
String estabelecimento = null;
|
|
|
|
|
if ( textFilterEstabelecimentoActual.getText() != null )
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
estabelecimento = (( String ) textFilterEstabelecimentoActual.getText()).trim();
|
|
|
|
|
if( estabelecimento.length() == 0 )
|
|
|
|
|
{
|
|
|
|
|
estabelecimento = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
return list;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Date visitaDate = ( Date ) calFilterDateActual.getValue();
|
|
|
|
|
String visitaDateStr = null;
|
|
|
|
|
if ( visitaDate != null )
|
|
|
|
|
{
|
|
|
|
|
visitaDateStr = D_F.format( visitaDate );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getSessionBean1().setIsSearchingPlanosActuacao( Boolean.TRUE );
|
|
|
|
|
getSessionBean1().getPlanosActualDataProvider().setList(
|
|
|
|
|
searchPlanosActivos( getSessionBean1().getCurrentUser(), nome, estabelecimento, visitaDateStr ) );
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String buttonFilterSeg_action()
|
|
|
|
|
{
|
|
|
|
|
String nome = null;
|
|
|
|
|
if ( textFilterNameSeg.getText() != null )
|
|
|
|
|
{
|
|
|
|
|
nome = (( String ) textFilterNameSeg.getText()).trim();
|
|
|
|
|
if( nome.length() == 0 )
|
|
|
|
|
{
|
|
|
|
|
nome = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String estabelecimento = null;
|
|
|
|
|
if ( textFilterEstabelecimentoSeg.getText() != null )
|
|
|
|
|
{
|
|
|
|
|
estabelecimento = (( String ) textFilterEstabelecimentoSeg.getText()).trim();
|
|
|
|
|
if( estabelecimento.length() == 0 )
|
|
|
|
|
{
|
|
|
|
|
estabelecimento = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Date visitaDate = ( Date ) calFilterDateSeg.getValue();
|
|
|
|
|
String visitaDateStr = null;
|
|
|
|
|
if ( visitaDate != null )
|
|
|
|
|
{
|
|
|
|
|
visitaDateStr = D_F.format( visitaDate );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getSessionBean1().setIsSearchingPlanosActuacao( Boolean.TRUE );
|
|
|
|
|
getSessionBean1().getPlanosSeguimentoDataProvider().setList(
|
|
|
|
|
searchPlanosSeguimento( getSessionBean1().getCurrentUser(), nome, estabelecimento, visitaDateStr ) );
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public String buttonFilterConc_action()
|
|
|
|
|
{
|
|
|
|
|
String nome = null;
|
|
|
|
|
if ( textFilterNameConc.getText() != null )
|
|
|
|
|
{
|
|
|
|
|
nome = (( String ) textFilterNameConc.getText()).trim();
|
|
|
|
|
if( nome.length() == 0 )
|
|
|
|
|
{
|
|
|
|
|
nome = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
String estabelecimento = null;
|
|
|
|
|
if ( textFilterEstabelecimentoConc.getText() != null )
|
|
|
|
|
{
|
|
|
|
|
estabelecimento = (( String ) textFilterEstabelecimentoConc.getText()).trim();
|
|
|
|
|
if( estabelecimento.length() == 0 )
|
|
|
|
|
{
|
|
|
|
|
estabelecimento = null;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Date visitaDate = ( Date ) calFilterDateConc.getValue();
|
|
|
|
|
String visitaDateStr = null;
|
|
|
|
|
if ( visitaDate != null )
|
|
|
|
|
{
|
|
|
|
|
visitaDateStr = D_F.format( visitaDate );
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
getSessionBean1().setIsSearchingPlanosActuacao( Boolean.TRUE );
|
|
|
|
|
getSessionBean1().getPlanosConcluidosDataProvider().setList(
|
|
|
|
|
searchPlanosConcluidos( getSessionBean1().getCurrentUser(), nome, estabelecimento, visitaDateStr ) );
|
|
|
|
|
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|