@ -3,7 +3,6 @@
*
*
* Created on Aug 29 , 2008 , 2 : 57 : 16 PM
* Created on Aug 29 , 2008 , 2 : 57 : 16 PM
* /
* /
package planosactuacao ;
package planosactuacao ;
import com.evolute.utils.date.DateUtils ;
import com.evolute.utils.date.DateUtils ;
@ -53,56 +52,64 @@ public class ListaPlanos extends AbstractPageBean
* This method is automatically generated , so any user - specified code inserted
* This method is automatically generated , so any user - specified code inserted
* here is subject to being replaced . < / p >
* here is subject to being replaced . < / p >
* /
* /
private void _init ( ) throws Exception {
private void _init ( ) throws Exception
{
}
}
private Table table1 = new Table ( ) ;
private Table table1 = new Table ( ) ;
public Table getTable1 ( ) {
public Table getTable1 ( )
{
return table1 ;
return table1 ;
}
}
public void setTable1 ( Table t ) {
public void setTable1 ( Table t )
{
this . table1 = t ;
this . table1 = t ;
}
}
private TableRowGroup tableRowGroup1 = new TableRowGroup ( ) ;
private TableRowGroup tableRowGroup1 = new TableRowGroup ( ) ;
public TableRowGroup getTableRowGroup1 ( ) {
public TableRowGroup getTableRowGroup1 ( )
{
return tableRowGroup1 ;
return tableRowGroup1 ;
}
}
public void setTableRowGroup1 ( TableRowGroup trg ) {
public void setTableRowGroup1 ( TableRowGroup trg )
{
this . tableRowGroup1 = trg ;
this . tableRowGroup1 = trg ;
}
}
private TableRowGroup tableRowGroup2 = new TableRowGroup ( ) ;
private TableRowGroup tableRowGroup2 = new TableRowGroup ( ) ;
public TableRowGroup getTableRowGroup2 ( ) {
public TableRowGroup getTableRowGroup2 ( )
{
return tableRowGroup2 ;
return tableRowGroup2 ;
}
}
public void setTableRowGroup2 ( TableRowGroup trg ) {
public void setTableRowGroup2 ( TableRowGroup trg )
{
this . tableRowGroup2 = trg ;
this . tableRowGroup2 = trg ;
}
}
private TableRowGroup tableRowGroup3 = new TableRowGroup ( ) ;
private TableRowGroup tableRowGroup3 = new TableRowGroup ( ) ;
public TableRowGroup getTableRowGroup3 ( ) {
public TableRowGroup getTableRowGroup3 ( )
{
return tableRowGroup3 ;
return tableRowGroup3 ;
}
}
public void setTableRowGroup3 ( TableRowGroup trg ) {
public void setTableRowGroup3 ( TableRowGroup trg )
{
this . tableRowGroup3 = trg ;
this . tableRowGroup3 = trg ;
}
}
private HtmlPanelGrid gridActual = new HtmlPanelGrid ( ) ;
private HtmlPanelGrid gridActual = new HtmlPanelGrid ( ) ;
public HtmlPanelGrid getGridActual ( ) {
public HtmlPanelGrid getGridActual ( )
{
return gridActual ;
return gridActual ;
}
}
public void setGridActual ( HtmlPanelGrid hpg ) {
public void setGridActual ( HtmlPanelGrid hpg )
{
this . gridActual = hpg ;
this . gridActual = hpg ;
}
}
private TableColumn tableColumn55 = new TableColumn ( ) ;
private TableColumn tableColumn55 = new TableColumn ( ) ;
public TableColumn getTableColumn55 ( )
public TableColumn getTableColumn55 ( )
@ -114,18 +121,17 @@ public class ListaPlanos extends AbstractPageBean
{
{
this . tableColumn55 = c ;
this . tableColumn55 = c ;
}
}
private Button buttonDesactivar = new Button ( ) ;
private Button buttonDesactivar = new Button ( ) ;
public Button getButtonDesactivar ( ) {
public Button getButtonDesactivar ( )
{
return buttonDesactivar ;
return buttonDesactivar ;
}
}
public void setButtonDesactivar ( Button b ) {
public void setButtonDesactivar ( Button b )
{
this . buttonDesactivar = b ;
this . buttonDesactivar = b ;
}
}
private TableColumn tableColumn56 = new TableColumn ( ) ;
private TableColumn tableColumn56 = new TableColumn ( ) ;
public TableColumn getTableColumn56 ( )
public TableColumn getTableColumn56 ( )
@ -137,199 +143,223 @@ public class ListaPlanos extends AbstractPageBean
{
{
this . tableColumn56 = c ;
this . tableColumn56 = c ;
}
}
private Button buttonDesactivarSeguimento = new Button ( ) ;
private Button buttonDesactivarSeguimento = new Button ( ) ;
public Button getButtonDesactivarSeguimento ( ) {
public Button getButtonDesactivarSeguimento ( )
{
return buttonDesactivarSeguimento ;
return buttonDesactivarSeguimento ;
}
}
public void setButtonDesactivarSeguimento ( Button b ) {
public void setButtonDesactivarSeguimento ( Button b )
{
this . buttonDesactivarSeguimento = b ;
this . buttonDesactivarSeguimento = b ;
}
}
private HtmlPanelGrid gridPanelFilterActual = new HtmlPanelGrid ( ) ;
private HtmlPanelGrid gridPanelFilterActual = new HtmlPanelGrid ( ) ;
public HtmlPanelGrid getGridPanelFilterActual ( )
public HtmlPanelGrid getGridPanelFilterActual ( )
{
{
return this . gridPanelFilterActual ;
return this . gridPanelFilterActual ;
}
}
public void setGridPanelFilterActual ( HtmlPanelGrid pg )
public void setGridPanelFilterActual ( HtmlPanelGrid pg )
{
{
this . gridPanelFilterActual = pg ;
this . gridPanelFilterActual = pg ;
}
}
private PanelGroup groupPanelFilterActual = new PanelGroup ( ) ;
private PanelGroup groupPanelFilterActual = new PanelGroup ( ) ;
public PanelGroup getGroupPanelFilterActual ( )
public PanelGroup getGroupPanelFilterActual ( )
{
{
return this . groupPanelFilterActual ;
return this . groupPanelFilterActual ;
}
}
public void setGroupPanelFilterActual ( PanelGroup pg )
public void setGroupPanelFilterActual ( PanelGroup pg )
{
{
this . groupPanelFilterActual = pg ;
this . groupPanelFilterActual = pg ;
}
}
private TextField textFilterNameActual = new TextField ( ) ;
private TextField textFilterNameActual = new TextField ( ) ;
public TextField getTextFilterNameActual ( )
public TextField getTextFilterNameActual ( )
{
{
return this . textFilterNameActual ;
return this . textFilterNameActual ;
}
}
public void setTextFilterNameActual ( TextField tf )
public void setTextFilterNameActual ( TextField tf )
{
{
this . textFilterNameActual = tf ;
this . textFilterNameActual = tf ;
}
}
private TextField textFilterEstabelecimentoActual = new TextField ( ) ;
private TextField textFilterEstabelecimentoActual = new TextField ( ) ;
public TextField getTextFilterEstabelecimentoActual ( ) {
public TextField getTextFilterEstabelecimentoActual ( )
{
return textFilterEstabelecimentoActual ;
return textFilterEstabelecimentoActual ;
}
}
public void setTextFilterEstabelecimentoActual ( TextField textFilterEstabelecimentoActual ) {
public void setTextFilterEstabelecimentoActual ( TextField textFilterEstabelecimentoActual )
{
this . textFilterEstabelecimentoActual = textFilterEstabelecimentoActual ;
this . textFilterEstabelecimentoActual = textFilterEstabelecimentoActual ;
}
}
private com . sun . webui . jsf . component . Calendar calFilterDateActual = new com . sun . webui . jsf . component . Calendar ( ) ;
private com . sun . webui . jsf . component . Calendar calFilterDateActual = new com . sun . webui . jsf . component . Calendar ( ) ;
public com . sun . webui . jsf . component . Calendar getCalFilterDateActual ( ) {
public com . sun . webui . jsf . component . Calendar getCalFilterDateActual ( )
{
return calFilterDateActual ;
return calFilterDateActual ;
}
}
public void setCalFilterDateActual ( com . sun . webui . jsf . component . Calendar calFilterDateActual ) {
public void setCalFilterDateActual ( com . sun . webui . jsf . component . Calendar calFilterDateActual )
{
this . calFilterDateActual = calFilterDateActual ;
this . calFilterDateActual = calFilterDateActual ;
}
}
private Button buttonFilterActual = new Button ( ) ;
private Button buttonFilterActual = new Button ( ) ;
public Button getButtonFilterActual ( )
public Button getButtonFilterActual ( )
{
{
return this . buttonFilterActual ;
return this . buttonFilterActual ;
}
}
public void setButtonFilterActual ( Button b )
public void setButtonFilterActual ( Button b )
{
{
this . buttonFilterActual = b ;
this . buttonFilterActual = b ;
}
}
private HtmlPanelGrid gridPanelFilterSeg = new HtmlPanelGrid ( ) ;
private HtmlPanelGrid gridPanelFilterSeg = new HtmlPanelGrid ( ) ;
public HtmlPanelGrid getGridPanelFilterSeg ( )
public HtmlPanelGrid getGridPanelFilterSeg ( )
{
{
return this . gridPanelFilterSeg ;
return this . gridPanelFilterSeg ;
}
}
public void setGridPanelFilterSeg ( HtmlPanelGrid pg )
public void setGridPanelFilterSeg ( HtmlPanelGrid pg )
{
{
this . gridPanelFilterSeg = pg ;
this . gridPanelFilterSeg = pg ;
}
}
private PanelGroup groupPanelFilterSeg = new PanelGroup ( ) ;
private PanelGroup groupPanelFilterSeg = new PanelGroup ( ) ;
public PanelGroup getGroupPanelFilterSeg ( )
public PanelGroup getGroupPanelFilterSeg ( )
{
{
return this . groupPanelFilterSeg ;
return this . groupPanelFilterSeg ;
}
}
public void setGroupPanelFilterSeg ( PanelGroup pg )
public void setGroupPanelFilterSeg ( PanelGroup pg )
{
{
this . groupPanelFilterSeg = pg ;
this . groupPanelFilterSeg = pg ;
}
}
private TextField textFilterNameSeg = new TextField ( ) ;
private TextField textFilterNameSeg = new TextField ( ) ;
public TextField getTextFilterNameSeg ( )
public TextField getTextFilterNameSeg ( )
{
{
return this . textFilterNameSeg ;
return this . textFilterNameSeg ;
}
}
public void setTextFilterNameSeg ( TextField tf )
public void setTextFilterNameSeg ( TextField tf )
{
{
this . textFilterNameSeg = tf ;
this . textFilterNameSeg = tf ;
}
}
private TextField textFilterEstabelecimentoSeg = new TextField ( ) ;
private TextField textFilterEstabelecimentoSeg = new TextField ( ) ;
public TextField getTextFilterEstabelecimentoSeg ( ) {
public TextField getTextFilterEstabelecimentoSeg ( )
{
return textFilterEstabelecimentoSeg ;
return textFilterEstabelecimentoSeg ;
}
}
public void setTextFilterEstabelecimentoSeg ( TextField textFilterEstabelecimentoSeg ) {
public void setTextFilterEstabelecimentoSeg ( TextField textFilterEstabelecimentoSeg )
{
this . textFilterEstabelecimentoSeg = textFilterEstabelecimentoSeg ;
this . textFilterEstabelecimentoSeg = textFilterEstabelecimentoSeg ;
}
}
private com . sun . webui . jsf . component . Calendar calFilterDateSeg = new com . sun . webui . jsf . component . Calendar ( ) ;
private com . sun . webui . jsf . component . Calendar calFilterDateSeg = new com . sun . webui . jsf . component . Calendar ( ) ;
public com . sun . webui . jsf . component . Calendar getCalFilterDateSeg ( ) {
public com . sun . webui . jsf . component . Calendar getCalFilterDateSeg ( )
{
return calFilterDateSeg ;
return calFilterDateSeg ;
}
}
public void setCalFilterDateSeg ( com . sun . webui . jsf . component . Calendar calFilterDateSeg ) {
public void setCalFilterDateSeg ( com . sun . webui . jsf . component . Calendar calFilterDateSeg )
{
this . calFilterDateSeg = calFilterDateSeg ;
this . calFilterDateSeg = calFilterDateSeg ;
}
}
private Button buttonFilterSeg = new Button ( ) ;
private Button buttonFilterSeg = new Button ( ) ;
public Button getButtonFilterSeg ( )
public Button getButtonFilterSeg ( )
{
{
return this . buttonFilterSeg ;
return this . buttonFilterSeg ;
}
}
public void setButtonFilterSeg ( Button b )
public void setButtonFilterSeg ( Button b )
{
{
this . buttonFilterSeg = b ;
this . buttonFilterSeg = b ;
}
}
private HtmlPanelGrid gridPanelFilterConc = new HtmlPanelGrid ( ) ;
private HtmlPanelGrid gridPanelFilterConc = new HtmlPanelGrid ( ) ;
public HtmlPanelGrid getGridPanelFilterConc ( )
public HtmlPanelGrid getGridPanelFilterConc ( )
{
{
return this . gridPanelFilterConc ;
return this . gridPanelFilterConc ;
}
}
public void setGridPanelFilterConc ( HtmlPanelGrid pg )
public void setGridPanelFilterConc ( HtmlPanelGrid pg )
{
{
this . gridPanelFilterConc = pg ;
this . gridPanelFilterConc = pg ;
}
}
private PanelGroup groupPanelFilterConc = new PanelGroup ( ) ;
private PanelGroup groupPanelFilterConc = new PanelGroup ( ) ;
public PanelGroup getGroupPanelFilterConc ( )
public PanelGroup getGroupPanelFilterConc ( )
{
{
return this . groupPanelFilterConc ;
return this . groupPanelFilterConc ;
}
}
public void setGroupPanelFilterConc ( PanelGroup pg )
public void setGroupPanelFilterConc ( PanelGroup pg )
{
{
this . groupPanelFilterConc = pg ;
this . groupPanelFilterConc = pg ;
}
}
private TextField textFilterNameConc = new TextField ( ) ;
private TextField textFilterNameConc = new TextField ( ) ;
public TextField getTextFilterNameConc ( )
public TextField getTextFilterNameConc ( )
{
{
return this . textFilterNameConc ;
return this . textFilterNameConc ;
}
}
public void setTextFilterNameConc ( TextField tf )
public void setTextFilterNameConc ( TextField tf )
{
{
this . textFilterNameConc = tf ;
this . textFilterNameConc = tf ;
}
}
private TextField textFilterEstabelecimentoConc = new TextField ( ) ;
private TextField textFilterEstabelecimentoConc = new TextField ( ) ;
public TextField getTextFilterEstabelecimentoConc ( ) {
public TextField getTextFilterEstabelecimentoConc ( )
{
return textFilterEstabelecimentoConc ;
return textFilterEstabelecimentoConc ;
}
}
public void setTextFilterEstabelecimentoConc ( TextField textFilterEstabelecimentoConc ) {
public void setTextFilterEstabelecimentoConc ( TextField textFilterEstabelecimentoConc )
{
this . textFilterEstabelecimentoConc = textFilterEstabelecimentoConc ;
this . textFilterEstabelecimentoConc = textFilterEstabelecimentoConc ;
}
}
private com . sun . webui . jsf . component . Calendar calFilterDateConc = new com . sun . webui . jsf . component . Calendar ( ) ;
private com . sun . webui . jsf . component . Calendar calFilterDateConc = new com . sun . webui . jsf . component . Calendar ( ) ;
public com . sun . webui . jsf . component . Calendar getCalFilterDateConc ( ) {
public com . sun . webui . jsf . component . Calendar getCalFilterDateConc ( )
{
return calFilterDateConc ;
return calFilterDateConc ;
}
}
public void setCalFilterDateConc ( com . sun . webui . jsf . component . Calendar calFilterDateConc ) {
public void setCalFilterDateConc ( com . sun . webui . jsf . component . Calendar calFilterDateConc )
{
this . calFilterDateConc = calFilterDateConc ;
this . calFilterDateConc = calFilterDateConc ;
}
}
private Button buttonFilterConc = new Button ( ) ;
private Button buttonFilterConc = new Button ( ) ;
public Button getButtonFilterConc ( )
public Button getButtonFilterConc ( )
{
{
return this . buttonFilterConc ;
return this . buttonFilterConc ;
}
}
public void setButtonFilterConc ( Button b )
public void setButtonFilterConc ( Button b )
{
{
this . buttonFilterConc = b ;
this . buttonFilterConc = b ;
}
}
private static final DateFormat D_F = new SimpleDateFormat ( "yyyy-MM-dd" ) ;
private static final DateFormat D_F = new SimpleDateFormat ( "yyyy-MM-dd" ) ;
// </editor-fold>
// </editor-fold>
/ * *
/ * *
* < p > Construct a new Page bean instance . < / p >
* < p > Construct a new Page bean instance . < / p >
* /
* /
public ListaPlanos ( ) {
public ListaPlanos ( )
{
}
}
/ * *
/ * *
@ -345,7 +375,8 @@ public class ListaPlanos extends AbstractPageBean
* property values that were saved for this view when it was rendered . < / p >
* property values that were saved for this view when it was rendered . < / p >
* /
* /
@Override
@Override
public void init ( ) {
public void init ( )
{
// Perform initializations inherited from our superclass
// Perform initializations inherited from our superclass
super . init ( ) ;
super . init ( ) ;
// Perform application initialization that must complete
// Perform application initialization that must complete
@ -355,9 +386,12 @@ public class ListaPlanos extends AbstractPageBean
// <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
// <editor-fold defaultstate="collapsed" desc="Managed Component Initialization">
// Initialize automatically managed components
// Initialize automatically managed components
// *Note* - this logic should NOT be modified
// *Note* - this logic should NOT be modified
try {
try
{
_init ( ) ;
_init ( ) ;
} catch ( Exception e ) {
}
catch ( Exception e )
{
ErrorLogger . logException ( e ) ;
ErrorLogger . logException ( e ) ;
log ( "ListaPlanos Initialization Failure" , e ) ;
log ( "ListaPlanos Initialization Failure" , e ) ;
throw e instanceof FacesException ? ( FacesException ) e : new FacesException ( e ) ;
throw e instanceof FacesException ? ( FacesException ) e : new FacesException ( e ) ;
@ -377,7 +411,8 @@ public class ListaPlanos extends AbstractPageBean
* resources that will be required in your event handlers . < / p >
* resources that will be required in your event handlers . < / p >
* /
* /
@Override
@Override
public void preprocess ( ) {
public void preprocess ( )
{
}
}
/ * *
/ * *
@ -399,6 +434,8 @@ public class ListaPlanos extends AbstractPageBean
FacesContext fc = getFacesContext ( ) ;
FacesContext fc = getFacesContext ( ) ;
String estab_gestor = JSFUtils . getRequestParameter ( fc , "estab_gestor" ) ;
String estab_gestor = JSFUtils . getRequestParameter ( fc , "estab_gestor" ) ;
boolean renderOrNot = false ;
if ( u ! = null )
if ( u ! = null )
{
{
if ( u . getTipo ( ) ! = null & & u . getTipo ( ) . intValue ( ) = = Global . GESTOR )
if ( u . getTipo ( ) ! = null & & u . getTipo ( ) . intValue ( ) = = Global . GESTOR )
@ -408,7 +445,8 @@ public class ListaPlanos extends AbstractPageBean
Integer estabelecimento_gestor = new Integer ( Integer . parseInt ( estab_gestor ) ) ;
Integer estabelecimento_gestor = new Integer ( Integer . parseInt ( estab_gestor ) ) ;
System . out . println ( "ESTABELECIMENTO GESTOR : " + estabelecimento_gestor . intValue ( ) ) ;
System . out . println ( "ESTABELECIMENTO GESTOR : " + estabelecimento_gestor . intValue ( ) ) ;
u . setEstabelecimento_gestor ( estabelecimento_gestor ) ;
u . setEstabelecimento_gestor ( estabelecimento_gestor ) ;
} catch ( Exception ex2 )
}
catch ( Exception ex2 )
{
{
ErrorLogger . logException ( ex2 ) ;
ErrorLogger . logException ( ex2 ) ;
}
}
@ -430,13 +468,11 @@ public class ListaPlanos extends AbstractPageBean
}
}
//Column para desactivar plano - mostra se o utilizador for DIRECTOR SIPRP
//Column para desactivar plano - mostra se o utilizador for DIRECTOR SIPRP
int uType = u . getTipo ( ) . intValue ( ) ;
if ( u . getTipo ( ) ! = null )
boolean renderOrNot = uType = = Global . DIRECTOR_SIPRP | | uType = = Global . TECNICO_HS ;
{
tableColumn55 . setRendered ( renderOrNot ) ;
int uType = u . getTipo ( ) ;
buttonDesactivar . setRendered ( renderOrNot ) ;
renderOrNot = uType = = Global . DIRECTOR_SIPRP | | uType = = Global . TECNICO_HS ;
}
tableColumn56 . setRendered ( renderOrNot ) ;
buttonDesactivarSeguimento . setRendered ( renderOrNot ) ;
initialize ( ) ;
initialize ( ) ;
}
}
@ -445,6 +481,10 @@ public class ListaPlanos extends AbstractPageBean
getSessionBean1 ( ) . setMsg ( "Utilizador inválido." ) ;
getSessionBean1 ( ) . setMsg ( "Utilizador inválido." ) ;
}
}
tableColumn55 . setRendered ( renderOrNot ) ;
buttonDesactivar . setRendered ( renderOrNot ) ;
tableColumn56 . setRendered ( renderOrNot ) ;
buttonDesactivarSeguimento . setRendered ( renderOrNot ) ;
}
}
/ * *
/ * *
@ -456,7 +496,8 @@ public class ListaPlanos extends AbstractPageBean
* acquired during execution of an event handler ) . < / p >
* acquired during execution of an event handler ) . < / p >
* /
* /
@Override
@Override
public void destroy ( ) {
public void destroy ( )
{
}
}
/ * *
/ * *
@ -464,7 +505,8 @@ public class ListaPlanos extends AbstractPageBean
*
*
* @return reference to the scoped data bean
* @return reference to the scoped data bean
* /
* /
protected RequestBean1 getRequestBean1 ( ) {
protected RequestBean1 getRequestBean1 ( )
{
return ( RequestBean1 ) getBean ( "RequestBean1" ) ;
return ( RequestBean1 ) getBean ( "RequestBean1" ) ;
}
}
@ -473,7 +515,8 @@ public class ListaPlanos extends AbstractPageBean
*
*
* @return reference to the scoped data bean
* @return reference to the scoped data bean
* /
* /
protected ApplicationBean1 getApplicationBean1 ( ) {
protected ApplicationBean1 getApplicationBean1 ( )
{
return ( ApplicationBean1 ) getBean ( "ApplicationBean1" ) ;
return ( ApplicationBean1 ) getBean ( "ApplicationBean1" ) ;
}
}
@ -482,11 +525,13 @@ public class ListaPlanos extends AbstractPageBean
*
*
* @return reference to the scoped data bean
* @return reference to the scoped data bean
* /
* /
protected SessionBean1 getSessionBean1 ( ) {
protected SessionBean1 getSessionBean1 ( )
{
return ( SessionBean1 ) getBean ( "SessionBean1" ) ;
return ( SessionBean1 ) getBean ( "SessionBean1" ) ;
}
}
public String hyperlink1_action ( ) {
public String hyperlink1_action ( )
{
// TODO: Process the action. Return value is a navigation
// TODO: Process the action. Return value is a navigation
// case name where null will return to the same page.
// case name where null will return to the same page.
return "editar_plano" ;
return "editar_plano" ;
@ -530,8 +575,8 @@ public class ListaPlanos extends AbstractPageBean
}
}
}
}
public String goEditarPlano_action ( )
public String goEditarPlano_action ( ) {
{
// TODO: Process the action. Return value is a navigation
// TODO: Process the action. Return value is a navigation
// case name where null will return to the same page.
// case name where null will return to the same page.
PlanoActuacao p = getTableActivosRowData ( ) ;
PlanoActuacao p = getTableActivosRowData ( ) ;
@ -544,13 +589,15 @@ public class ListaPlanos extends AbstractPageBean
return "editar_plano" ;
return "editar_plano" ;
}
}
public String goVerPlanoFromSeguimento_action ( ) {
public String goVerPlanoFromSeguimento_action ( )
{
PlanoActuacao p = getTableSeguimentoRowData ( ) ;
PlanoActuacao p = getTableSeguimentoRowData ( ) ;
getSessionBean1 ( ) . setPlanoActuacao ( p ) ;
getSessionBean1 ( ) . setPlanoActuacao ( p ) ;
return "ver_plano" ;
return "ver_plano" ;
}
}
public String goVerPlanoFromConcluidos_action ( ) {
public String goVerPlanoFromConcluidos_action ( )
{
PlanoActuacao p = getTableConcluidosRowData ( ) ;
PlanoActuacao p = getTableConcluidosRowData ( ) ;
getSessionBean1 ( ) . setPlanoActuacao ( p ) ;
getSessionBean1 ( ) . setPlanoActuacao ( p ) ;
return "ver_plano" ;
return "ver_plano" ;
@ -584,7 +631,6 @@ public class ListaPlanos extends AbstractPageBean
return null ;
return null ;
}
}
//*** IMPRIMIR PLANO COM RISCOS PATRIMONIAIS ***//
//*** IMPRIMIR PLANO COM RISCOS PATRIMONIAIS ***//
public String goImprimirPlanoPatrimoniais_action ( )
public String goImprimirPlanoPatrimoniais_action ( )
{
{
@ -613,8 +659,6 @@ public class ListaPlanos extends AbstractPageBean
return null ;
return null ;
}
}
private void createPdf ( Integer pID )
private void createPdf ( Integer pID )
{
{
createPdf ( pID , false ) ;
createPdf ( pID , false ) ;
@ -662,16 +706,15 @@ public class ListaPlanos extends AbstractPageBean
System . out . println ( "SHOW PDF done." ) ;
System . out . println ( "SHOW PDF done." ) ;
}
}
private void initialize ( )
private void initialize ( )
{
{
Utilizador u = getSessionBean1 ( ) . getCurrentUser ( ) ;
Utilizador u = getSessionBean1 ( ) . getCurrentUser ( ) ;
Integer estabelecimento_id = null ;
// Integer estabelecimento_id = null;
if ( u . getTipo ( ) . intValue ( ) ! = Global . TECNICO_HS )
// if ( u.getTipo().intValue() != Global.TECNICO_HS )
{
// {
estabelecimento_id = u . getEstabelecimento_id ( ) ;
// estabelecimento_id = u.getEstabelecimento_id();
}
// }
System . out . println ( "INITIALIZE:" ) ;
System . out . println ( "INITIALIZE:" ) ;
@ -701,7 +744,6 @@ public class ListaPlanos extends AbstractPageBean
return DateUtils . getTimePassed ( start , end ) ;
return DateUtils . getTimePassed ( start , end ) ;
}
}
private PlanoActuacao getTableActivosRowData ( )
private PlanoActuacao getTableActivosRowData ( )
{
{
RowKey rk = tableRowGroup1 . getRowKey ( ) ;
RowKey rk = tableRowGroup1 . getRowKey ( ) ;
@ -735,11 +777,8 @@ public class ListaPlanos extends AbstractPageBean
private void checkPlanosDelayed ( )
private void checkPlanosDelayed ( )
{
{
}
}
// private void showPlano(PlanoActuacao p)
// private void showPlano(PlanoActuacao p)
// {
// {
// System.out.println("PLANO : " + p.getData_visita_str() + " | " + p.getFase_nome() + " | " + p.getNome_estabelecimento());
// System.out.println("PLANO : " + p.getData_visita_str() + " | " + p.getFase_nome() + " | " + p.getNome_estabelecimento());
@ -791,15 +830,12 @@ public class ListaPlanos extends AbstractPageBean
// System.out.println(" " + p.getDescricao());
// System.out.println(" " + p.getDescricao());
// }
// }
// }
// }
public List < PlanoActuacao > searchPlanosActivos ( Utilizador u , String nome , String estabelecimento , String dataVisita )
public List < PlanoActuacao > searchPlanosActivos ( Utilizador u , String nome , String estabelecimento , String dataVisita )
{
{
List < PlanoActuacao > list = new ArrayList < PlanoActuacao > ( ) ;
List < PlanoActuacao > list = new ArrayList < PlanoActuacao > ( ) ;
try
try
{
{
if ( u . getTipo ( ) . intValue ( ) ! = Global . DIRECTOR_SIPRP
if ( u . getTipo ( ) . intValue ( ) ! = Global . DIRECTOR_SIPRP & & u . getTipo ( ) . intValue ( ) ! = Global . GESTOR & & u . getTipo ( ) . intValue ( ) ! = Global . DIRECTOR_GERAL_RH )
& & u . getTipo ( ) . intValue ( ) ! = Global . GESTOR
& & u . getTipo ( ) . intValue ( ) ! = Global . DIRECTOR_GERAL_RH )
{
{
PlanosDataProvider pdp = PlanosDataProvider . getInstance ( ) ;
PlanosDataProvider pdp = PlanosDataProvider . getInstance ( ) ;
list = pdp . searchPlanosActivos ( u , nome , estabelecimento , dataVisita ) ;
list = pdp . searchPlanosActivos ( u , nome , estabelecimento , dataVisita ) ;
@ -895,8 +931,6 @@ public class ListaPlanos extends AbstractPageBean
// return list;
// return list;
}
}
public String buttonFilterActual_action ( )
public String buttonFilterActual_action ( )
{
{
String nome = null ;
String nome = null ;
@ -969,7 +1003,6 @@ public class ListaPlanos extends AbstractPageBean
return null ;
return null ;
}
}
public String buttonFilterConc_action ( )
public String buttonFilterConc_action ( )
{
{
String nome = null ;
String nome = null ;
@ -1005,6 +1038,5 @@ public class ListaPlanos extends AbstractPageBean
return null ;
return null ;
}
}
}
}