|
|
|
|
@ -16,8 +16,16 @@ import db.entidades.Utilizador;
|
|
|
|
|
import db.providers.PlanosDataProvider;
|
|
|
|
|
import global.Global;
|
|
|
|
|
import java.util.ArrayList;
|
|
|
|
|
import java.util.Calendar;
|
|
|
|
|
import java.util.Date;
|
|
|
|
|
import java.util.Iterator;
|
|
|
|
|
import java.util.List;
|
|
|
|
|
import javax.faces.FacesException;
|
|
|
|
|
import javax.faces.context.FacesContext;
|
|
|
|
|
import siprp.database.cayenne.objects.HsRelatorio;
|
|
|
|
|
import siprp.database.cayenne.objects.HsRelatorioMedida;
|
|
|
|
|
import siprp.database.cayenne.objects.HsRelatorioRisco;
|
|
|
|
|
import siprp.database.cayenne.providers.PlanoActuacaoDAO;
|
|
|
|
|
import tabledataproviders.PlanosActualDataProvider;
|
|
|
|
|
import utils.JSFUtils;
|
|
|
|
|
|
|
|
|
|
@ -78,6 +86,7 @@ public class ListaPlanos extends AbstractPageBean {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// </editor-fold>
|
|
|
|
|
PlanosDataProvider pdp = new PlanosDataProvider();
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* <p>Construct a new Page bean instance.</p>
|
|
|
|
|
@ -236,210 +245,260 @@ public class ListaPlanos extends AbstractPageBean {
|
|
|
|
|
return null;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
private void initialize()
|
|
|
|
|
{
|
|
|
|
|
PlanosDataProvider pdp = new PlanosDataProvider();
|
|
|
|
|
Utilizador u = getSessionBean1().getCurrentUser();
|
|
|
|
|
|
|
|
|
|
//Planos Activos
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
ArrayList listActivos = pdp.getPlanosActivos(u);
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
PlanoActuacao pa = (PlanoActuacao) listActivos.get(0);
|
|
|
|
|
if(pa.getId().intValue() == 1)
|
|
|
|
|
{
|
|
|
|
|
pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
pa.setLoja_nome("Setubal");
|
|
|
|
|
pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
pa.setTecnico_hs_nome("Ana");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pa = (PlanoActuacao) listActivos.get(1);
|
|
|
|
|
if(pa.getId().intValue() == 2)
|
|
|
|
|
{
|
|
|
|
|
pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
pa.setLoja_nome("Cascais");
|
|
|
|
|
pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
pa.setTecnico_hs_nome("Sónia");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pa = (PlanoActuacao) listActivos.get(2);
|
|
|
|
|
if(pa.getId().intValue() == 3)
|
|
|
|
|
{
|
|
|
|
|
pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
pa.setLoja_nome("Sintra");
|
|
|
|
|
pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
pa.setTecnico_hs_nome("Pedro");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex1)
|
|
|
|
|
{
|
|
|
|
|
ex1.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
getSessionBean1().getPlanosActualDataProvider().setList(listActivos);
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
Integer estabelecimento_id = null;
|
|
|
|
|
if(u.getTipo().intValue() != Global.TECNICO_HS)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
estabelecimento_id = u.getEstabelecimento_id();
|
|
|
|
|
}
|
|
|
|
|
PlanoActuacaoDAO pa = new PlanoActuacaoDAO();
|
|
|
|
|
|
|
|
|
|
List<Date> list = new ArrayList();
|
|
|
|
|
Calendar calendar = Calendar.getInstance();
|
|
|
|
|
calendar.set(Calendar.DAY_OF_MONTH, 27);
|
|
|
|
|
calendar.set(Calendar.MONTH, 9);
|
|
|
|
|
calendar.set(Calendar.YEAR, 2008);
|
|
|
|
|
java.util.Date date = new java.util.Date(calendar.getTimeInMillis());
|
|
|
|
|
|
|
|
|
|
//Planos Seguimento
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
ArrayList listSeguimento = pdp.getPlanosSeguimento(u);
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
PlanoActuacao pa = (PlanoActuacao) listSeguimento.get(0);
|
|
|
|
|
if(pa.getId().intValue() == 1)
|
|
|
|
|
{
|
|
|
|
|
pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
pa.setLoja_nome("Setubal");
|
|
|
|
|
pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
pa.setTecnico_hs_nome("Ana");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pa = (PlanoActuacao) listSeguimento.get(1);
|
|
|
|
|
if(pa.getId().intValue() == 2)
|
|
|
|
|
{
|
|
|
|
|
pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
pa.setLoja_nome("Cascais");
|
|
|
|
|
pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
pa.setTecnico_hs_nome("Sónia");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pa = (PlanoActuacao) listSeguimento.get(2);
|
|
|
|
|
if(pa.getId().intValue() == 3)
|
|
|
|
|
{
|
|
|
|
|
pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
pa.setLoja_nome("Sintra");
|
|
|
|
|
pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
pa.setTecnico_hs_nome("Pedro");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex1)
|
|
|
|
|
{
|
|
|
|
|
ex1.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
getSessionBean1().getPlanosSeguimentoDataProvider().setList(listSeguimento);
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
// list.add(date);
|
|
|
|
|
// List<HsRelatorio> listPlanos = pa.getRelatoriosNotIn(list);
|
|
|
|
|
// System.out.println("PLANOS = " + listPlanos.size());
|
|
|
|
|
// Iterator iter = listPlanos.iterator();
|
|
|
|
|
// while(iter.hasNext())
|
|
|
|
|
// {
|
|
|
|
|
// HsRelatorio relatorio = (HsRelatorio) iter.next();
|
|
|
|
|
//
|
|
|
|
|
// List<HsRelatorioRisco> relatorio_riscoList = relatorio.getHsRelatorioRiscoArray();
|
|
|
|
|
// HsRelatorioRisco rr = null;
|
|
|
|
|
// HsRelatorioMedida rm = null;
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// //next is to get estabelecimento from relatorio
|
|
|
|
|
//
|
|
|
|
|
//// MarcacoesEstabelecimento me = relatorio.getToHsMarcacoesEstabelecimento();
|
|
|
|
|
//// Estabelecimentos es = me.getToEstabelecimentos();
|
|
|
|
|
//// Integer id = es.getId(); // estabelecimento id ??
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
PlanosActuacao planos = new PlanosActuacao();
|
|
|
|
|
|
|
|
|
|
//Planos Concluidos
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
ArrayList listConcluidos = pdp.getPlanosConcluidos(u);
|
|
|
|
|
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
PlanoActuacao pa = (PlanoActuacao) listConcluidos.get(0);
|
|
|
|
|
if(pa.getId().intValue() == 1)
|
|
|
|
|
{
|
|
|
|
|
pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
pa.setLoja_nome("Setubal");
|
|
|
|
|
pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
pa.setTecnico_hs_nome("Ana");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pa = (PlanoActuacao) listConcluidos.get(1);
|
|
|
|
|
if(pa.getId().intValue() == 2)
|
|
|
|
|
{
|
|
|
|
|
pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
pa.setLoja_nome("Cascais");
|
|
|
|
|
pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
pa.setTecnico_hs_nome("Sónia");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pa = (PlanoActuacao) listConcluidos.get(2);
|
|
|
|
|
if(pa.getId().intValue() == 3)
|
|
|
|
|
{
|
|
|
|
|
pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
pa.setLoja_nome("Sintra");
|
|
|
|
|
pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
pa.setTecnico_hs_nome("Pedro");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex1)
|
|
|
|
|
{
|
|
|
|
|
ex1.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
getSessionBean1().getPlanosConcluidosDataProvider().setList(listConcluidos);
|
|
|
|
|
}
|
|
|
|
|
catch(Exception ex)
|
|
|
|
|
{
|
|
|
|
|
ex.printStackTrace();
|
|
|
|
|
}
|
|
|
|
|
List listPlanosActivos = planos.getPlanosActivos(u);
|
|
|
|
|
getSessionBean1().getPlanosActualDataProvider().setList(listPlanosActivos);
|
|
|
|
|
|
|
|
|
|
List listPlanosSeguimento = planos.getPlanosSeguimento(u);
|
|
|
|
|
getSessionBean1().getPlanosSeguimentoDataProvider().setList(listPlanosSeguimento);
|
|
|
|
|
|
|
|
|
|
//Dummy : to remove later
|
|
|
|
|
// ArrayList listActivos = new ArrayList();
|
|
|
|
|
// PlanoActuacao pa = new PlanoActuacao();
|
|
|
|
|
List listPlanosConcluidos = planos.getPlanosConcluidos();
|
|
|
|
|
getSessionBean1().getPlanosConcluidosDataProvider().setList(listPlanosConcluidos);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// private void initialize1()
|
|
|
|
|
// {
|
|
|
|
|
//
|
|
|
|
|
// Utilizador u = getSessionBean1().getCurrentUser();
|
|
|
|
|
//
|
|
|
|
|
// Calendar cal = Calendar.getInstance();
|
|
|
|
|
// //Planos Activos
|
|
|
|
|
// try
|
|
|
|
|
// {
|
|
|
|
|
// ArrayList listActivos = pdp.getPlanosActivos(u);
|
|
|
|
|
//
|
|
|
|
|
// try
|
|
|
|
|
// {
|
|
|
|
|
// PlanoActuacao pa = (PlanoActuacao) listActivos.get(0);
|
|
|
|
|
// if(pa.getId().intValue() == 1)
|
|
|
|
|
// {
|
|
|
|
|
// pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
// pa.setLoja_nome("Setubal");
|
|
|
|
|
// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
// pa.setTecnico_hs_nome("Ana");
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// cal.set( cal.YEAR, 2008 );
|
|
|
|
|
// cal.set( cal.MONTH, cal.SEPTEMBER );
|
|
|
|
|
// cal.set( cal.DATE, 3 );
|
|
|
|
|
//
|
|
|
|
|
// pa = (PlanoActuacao) listActivos.get(1);
|
|
|
|
|
// if(pa.getId().intValue() == 2)
|
|
|
|
|
// {
|
|
|
|
|
// pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
// pa.setLoja_nome("Cascais");
|
|
|
|
|
// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
// pa.setTecnico_hs_nome("Sónia");
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// cal.set( cal.HOUR_OF_DAY, 0 );
|
|
|
|
|
// cal.set( cal.MINUTE, 0 );
|
|
|
|
|
// cal.set( cal.SECOND, 0 );
|
|
|
|
|
// cal.set( cal.MILLISECOND, 0 );
|
|
|
|
|
//
|
|
|
|
|
// java.sql.Date dataVisita =
|
|
|
|
|
// new java.sql.Date( cal.getTime().getTime() );
|
|
|
|
|
// pa = (PlanoActuacao) listActivos.get(2);
|
|
|
|
|
// if(pa.getId().intValue() == 3)
|
|
|
|
|
// {
|
|
|
|
|
// pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
// pa.setLoja_nome("Sintra");
|
|
|
|
|
// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
// pa.setTecnico_hs_nome("Pedro");
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex1)
|
|
|
|
|
// {
|
|
|
|
|
// ex1.printStackTrace();
|
|
|
|
|
// }
|
|
|
|
|
// getSessionBean1().getPlanosActualDataProvider().setList(listActivos);
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// pa.setData_visita(dataVisita);
|
|
|
|
|
// pa.setEstabelecimento_id(new Integer(12));
|
|
|
|
|
// pa.setFase(2);
|
|
|
|
|
// pa.setFase_nome("SIPRP (Emissão)");
|
|
|
|
|
// pa.setLoja_nome("Setubal");
|
|
|
|
|
// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
// pa.setTecnico_hs_nome("Ana");
|
|
|
|
|
// listActivos.add(pa);
|
|
|
|
|
// //Planos Seguimento
|
|
|
|
|
// try
|
|
|
|
|
// {
|
|
|
|
|
// ArrayList listSeguimento = pdp.getPlanosSeguimento(u);
|
|
|
|
|
//
|
|
|
|
|
// try
|
|
|
|
|
// {
|
|
|
|
|
// PlanoActuacao pa = (PlanoActuacao) listSeguimento.get(0);
|
|
|
|
|
// if(pa.getId().intValue() == 1)
|
|
|
|
|
// {
|
|
|
|
|
// pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
// pa.setLoja_nome("Setubal");
|
|
|
|
|
// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
// pa.setTecnico_hs_nome("Ana");
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// pa = new PlanoActuacao();
|
|
|
|
|
//
|
|
|
|
|
// pa = (PlanoActuacao) listSeguimento.get(1);
|
|
|
|
|
// if(pa.getId().intValue() == 2)
|
|
|
|
|
// {
|
|
|
|
|
// pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
// pa.setLoja_nome("Cascais");
|
|
|
|
|
// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
// pa.setTecnico_hs_nome("Sónia");
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// pa = (PlanoActuacao) listSeguimento.get(2);
|
|
|
|
|
// if(pa.getId().intValue() == 3)
|
|
|
|
|
// {
|
|
|
|
|
// pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
// pa.setLoja_nome("Sintra");
|
|
|
|
|
// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
// pa.setTecnico_hs_nome("Pedro");
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex1)
|
|
|
|
|
// {
|
|
|
|
|
// ex1.printStackTrace();
|
|
|
|
|
// }
|
|
|
|
|
// getSessionBean1().getPlanosSeguimentoDataProvider().setList(listSeguimento);
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
//
|
|
|
|
|
// cal.set( cal.YEAR, 2008 );
|
|
|
|
|
// cal.set( cal.MONTH, cal.OCTOBER );
|
|
|
|
|
// cal.set( cal.DATE, 12 );
|
|
|
|
|
// //Planos Concluidos
|
|
|
|
|
// try
|
|
|
|
|
// {
|
|
|
|
|
// ArrayList listConcluidos = pdp.getPlanosConcluidos(u);
|
|
|
|
|
//
|
|
|
|
|
// try
|
|
|
|
|
// {
|
|
|
|
|
// PlanoActuacao pa = (PlanoActuacao) listConcluidos.get(0);
|
|
|
|
|
// if(pa.getId().intValue() == 1)
|
|
|
|
|
// {
|
|
|
|
|
// pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
// pa.setLoja_nome("Setubal");
|
|
|
|
|
// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
// pa.setTecnico_hs_nome("Ana");
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// cal.set( cal.HOUR_OF_DAY, 0 );
|
|
|
|
|
// cal.set( cal.MINUTE, 0 );
|
|
|
|
|
// cal.set( cal.SECOND, 0 );
|
|
|
|
|
// cal.set( cal.MILLISECOND, 0 );
|
|
|
|
|
//
|
|
|
|
|
// pa = (PlanoActuacao) listConcluidos.get(1);
|
|
|
|
|
// if(pa.getId().intValue() == 2)
|
|
|
|
|
// {
|
|
|
|
|
// pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
// pa.setLoja_nome("Cascais");
|
|
|
|
|
// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
// pa.setTecnico_hs_nome("Sónia");
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// dataVisita =
|
|
|
|
|
// new java.sql.Date( cal.getTime().getTime() );
|
|
|
|
|
//
|
|
|
|
|
// pa = (PlanoActuacao) listConcluidos.get(2);
|
|
|
|
|
// if(pa.getId().intValue() == 3)
|
|
|
|
|
// {
|
|
|
|
|
// pa.setFase_nome(Global.FASES_TEXTO[pa.getFase().intValue() - 1]);
|
|
|
|
|
// pa.setLoja_nome("Sintra");
|
|
|
|
|
// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
// pa.setTecnico_hs_nome("Pedro");
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex1)
|
|
|
|
|
// {
|
|
|
|
|
// ex1.printStackTrace();
|
|
|
|
|
// }
|
|
|
|
|
// getSessionBean1().getPlanosConcluidosDataProvider().setList(listConcluidos);
|
|
|
|
|
// }
|
|
|
|
|
// catch(Exception ex)
|
|
|
|
|
// {
|
|
|
|
|
// ex.printStackTrace();
|
|
|
|
|
// }
|
|
|
|
|
//
|
|
|
|
|
// pa.setData_visita(dataVisita);
|
|
|
|
|
// pa.setEstabelecimento_id(new Integer(12));
|
|
|
|
|
// pa.setFase(2);
|
|
|
|
|
// pa.setFase_nome("DNS (Parecer)");
|
|
|
|
|
// pa.setLoja_nome("Cascais");
|
|
|
|
|
// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
// pa.setTecnico_hs_nome("Sónia");
|
|
|
|
|
// listActivos.add(pa);
|
|
|
|
|
//End Dummy
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
// //Dummy : to remove later
|
|
|
|
|
//// ArrayList listActivos = new ArrayList();
|
|
|
|
|
//// PlanoActuacao pa = new PlanoActuacao();
|
|
|
|
|
////
|
|
|
|
|
//// Calendar cal = Calendar.getInstance();
|
|
|
|
|
////
|
|
|
|
|
//// cal.set( cal.YEAR, 2008 );
|
|
|
|
|
//// cal.set( cal.MONTH, cal.SEPTEMBER );
|
|
|
|
|
//// cal.set( cal.DATE, 3 );
|
|
|
|
|
////
|
|
|
|
|
//// cal.set( cal.HOUR_OF_DAY, 0 );
|
|
|
|
|
//// cal.set( cal.MINUTE, 0 );
|
|
|
|
|
//// cal.set( cal.SECOND, 0 );
|
|
|
|
|
//// cal.set( cal.MILLISECOND, 0 );
|
|
|
|
|
////
|
|
|
|
|
//// java.sql.Date dataVisita =
|
|
|
|
|
//// new java.sql.Date( cal.getTime().getTime() );
|
|
|
|
|
////
|
|
|
|
|
//// pa.setData_visita(dataVisita);
|
|
|
|
|
//// pa.setEstabelecimento_id(new Integer(12));
|
|
|
|
|
//// pa.setFase(2);
|
|
|
|
|
//// pa.setFase_nome("SIPRP (Emissão)");
|
|
|
|
|
//// pa.setLoja_nome("Setubal");
|
|
|
|
|
//// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
//// pa.setTecnico_hs_nome("Ana");
|
|
|
|
|
//// listActivos.add(pa);
|
|
|
|
|
////
|
|
|
|
|
//// pa = new PlanoActuacao();
|
|
|
|
|
////
|
|
|
|
|
//// cal.set( cal.YEAR, 2008 );
|
|
|
|
|
//// cal.set( cal.MONTH, cal.OCTOBER );
|
|
|
|
|
//// cal.set( cal.DATE, 12 );
|
|
|
|
|
////
|
|
|
|
|
//// cal.set( cal.HOUR_OF_DAY, 0 );
|
|
|
|
|
//// cal.set( cal.MINUTE, 0 );
|
|
|
|
|
//// cal.set( cal.SECOND, 0 );
|
|
|
|
|
//// cal.set( cal.MILLISECOND, 0 );
|
|
|
|
|
////
|
|
|
|
|
//// dataVisita =
|
|
|
|
|
//// new java.sql.Date( cal.getTime().getTime() );
|
|
|
|
|
////
|
|
|
|
|
//// pa.setData_visita(dataVisita);
|
|
|
|
|
//// pa.setEstabelecimento_id(new Integer(12));
|
|
|
|
|
//// pa.setFase(2);
|
|
|
|
|
//// pa.setFase_nome("DNS (Parecer)");
|
|
|
|
|
//// pa.setLoja_nome("Cascais");
|
|
|
|
|
//// pa.setTecnico_hs_id(new Integer(7));
|
|
|
|
|
//// pa.setTecnico_hs_nome("Sónia");
|
|
|
|
|
//// listActivos.add(pa);
|
|
|
|
|
// //End Dummy
|
|
|
|
|
// }
|
|
|
|
|
|
|
|
|
|
private PlanoActuacao getTableActivosRowData()
|
|
|
|
|
{
|
|
|
|
|
|