Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package bean;
- import java.io.File;
- import java.sql.Connection;
- import java.sql.SQLException;
- import java.sql.Time;
- import java.util.ArrayList;
- import java.util.Calendar;
- import java.util.Date;
- import java.util.GregorianCalendar;
- import java.util.HashMap;
- import java.util.List;
- import java.util.Map;
- import javax.faces.application.FacesMessage;
- import javax.faces.bean.ManagedBean;
- import javax.faces.bean.SessionScoped;
- import javax.faces.context.FacesContext;
- import javax.servlet.ServletContext;
- import javax.servlet.http.HttpServletResponse;
- import javax.servlet.http.HttpSession;
- import model.AgendaAssunto;
- import model.AgendaAtendimento;
- import model.AgendaSituacao;
- import model.AgendaTipoContatos;
- import model.Cidade;
- import model.Destino;
- import model.Interno;
- import model.PostoTrabalhoBean;
- import net.sf.jasperreports.engine.JRException;
- import net.sf.jasperreports.engine.JasperExportManager;
- import net.sf.jasperreports.engine.JasperFillManager;
- import net.sf.jasperreports.engine.JasperPrint;
- import org.primefaces.event.SelectEvent;
- import org.primefaces.model.DefaultScheduleEvent;
- import org.primefaces.model.DefaultScheduleModel;
- import org.primefaces.model.ScheduleEvent;
- import org.primefaces.model.ScheduleModel;
- import dao.AgendaAtendimentoDAO;
- import dao.ConnectionFactory;
- import dao.InternoDAO;
- @ManagedBean(name = "agendaBean")
- @SessionScoped
- @SuppressWarnings("deprecation")
- public class AgendaAtendimentoBean {
- // private ScheduleModel lazyEventModel;
- private AgendaAtendimento agenda = new AgendaAtendimento();
- private AgendaAtendimento agendaSelecionada;
- private Interno interno;
- private List<Interno> internos;
- private List<AgendaAssunto> assuntos;
- private List<AgendaAssunto> assuntosVEP;
- private List<AgendaTipoContatos> tipoContatos;
- private List<AgendaSituacao> listSituacao;
- private List<Cidade> cidades;
- private String uf;
- private int idCidade, idUp, idDestino, ultimoDiaMes;
- private List<Destino> destinos;
- private List<Destino> filtroDestinos;
- private List<PostoTrabalhoBean> postos;
- private Destino destino;
- private Date dataHoraAgenda, dataInicial, dataFinal, selectedDate;
- private final Date dataAtual = new Date();
- private String nomeFuncionario, idFunc, matricula, postoTrabalho,
- statusAgendamento = "A";
- private int idPostoTrabalho;
- private InternoDAO internoDAO;
- private AgendaAtendimentoDAO agendaDAO;
- private ScheduleEvent event = new DefaultScheduleEvent();
- private ScheduleModel eventModel;
- private int mesSelecionado = 0, anoSelecionado = 0;
- private GregorianCalendar g = new GregorianCalendar();
- private List<AgendaAtendimento> listaAgenda;
- private List<AgendaAtendimento> listaAgendaSelecionada;
- private Date dataMinima;
- private String cargo, vocativo, formaTrat, nomeSol, cidadeDest, endDest;
- public AgendaAtendimentoBean() throws Exception {
- destino = new Destino();
- dataHoraAgenda = new Date();
- dataInicial = new Date();
- dataInicial.setMonth(dataInicial.getMonth() - 1);
- dataFinal = new Date();
- dataFinal.setDate(30);
- // dataAtual = new Date();
- ultimoDiaMes = g.getActualMaximum(Calendar.DAY_OF_MONTH);
- destino = new Destino();
- agendaDAO = new AgendaAtendimentoDAO();
- assuntos = agendaDAO.listarAgendaAssunto();
- assuntosVEP = agendaDAO.listarAgendaAssuntoVep();
- // tipoContatos = agendaDAO.listarAgendaTipoContatos();
- // listSituacao = agendaDAO.listarAgendaSituacao();
- // cidades = agendaDAO.listarCidade("DF");
- agendaSelecionada = new AgendaAtendimento();
- interno = new Interno();
- agenda = new AgendaAtendimento();
- selectedDate = g.getTime();
- mesSelecionado = g.get(Calendar.MONTH);
- anoSelecionado = g.get(Calendar.YEAR);
- dataMinima = new Date();
- dataMinima = getDataAtual();
- dataMinima.setDate(getDataAtual().getDate() + 2);
- listarAgendamentos();
- }
- public void limpar() {
- agenda = null;
- agendaSelecionada = null;
- interno = null;
- listaAgenda = null;
- listaAgendaSelecionada = null;
- agenda = new AgendaAtendimento();
- agendaSelecionada = new AgendaAtendimento();
- interno = new Interno();
- statusAgendamento = "A";
- listaAgenda = new ArrayList<AgendaAtendimento>();
- listaAgendaSelecionada = new ArrayList<AgendaAtendimento>();
- }
- public String addEvent() throws SQLException {
- // //System.out.println("OK...");
- FacesContext fc = FacesContext.getCurrentInstance();
- HttpSession session = (HttpSession) fc.getExternalContext().getSession(
- true);
- String retorno = "";
- try {
- int idFunc = Integer.parseInt(session.getAttribute("idFunc")
- .toString());
- int idUp = Integer
- .parseInt(session.getAttribute("idUp").toString());
- int idPosto = Integer.parseInt(session.getAttribute("idPosto")
- .toString());
- AgendaAtendimentoDAO agDao = new AgendaAtendimentoDAO();
- Time time = new Time(dataHoraAgenda.getTime());
- Date dataAgenda = event.getStartDate();
- Calendar c = Calendar.getInstance();
- c.setTime(dataAgenda);
- c.set(Calendar.HOUR, 0);
- c.set(Calendar.MINUTE, 0);
- c.set(Calendar.SECOND, 0);
- // c.set(Calendar.HOUR_OF_DAY, 0);
- agenda.setDataAgenda(c.getTime());
- agenda.setHoraAgenda(time);
- agenda.setIdFunc(idFunc);
- agenda.setIdFuncAutorizou(idFunc);
- agenda.setIdFuncionarioAgenda(idFunc);
- agenda.setIdInterno(interno.getIdInterno());
- agenda.setIdUp(idUp);
- agenda.setIdPostoTrabalho(idPosto);
- agenda.setIdVisitante(101);
- agenda.setIdAdvogado(301);
- agenda.setSetor(session.getAttribute("postoTrabalho").toString());
- agenda.setConfirmada("W");
- // se setar o status como "A" ou "I" não aparece no siapen local
- agenda.setStatus("");
- int salvo = 0;
- salvo = agDao.inserirAgenda(agenda);
- if (salvo == 1) {
- // atualizar tabela destino
- if (cargo.equals("") || nomeSol.equals("")
- || formaTrat.equals("") || vocativo.equals("")
- || cidadeDest.equals("") || endDest.equals("")) {
- agDao.atualizarDestino(agenda.getDestinoClass());
- }
- agenda = new AgendaAtendimento();
- event = new DefaultScheduleEvent();
- nomeFuncionario = session.getAttribute("nomeFuncionario")
- .toString();
- matricula = session.getAttribute("matr").toString();
- postoTrabalho = session.getAttribute("postoTrabalho")
- .toString();
- int ultimoId = agendaDAO.ultimoId();
- agenda = agendaDAO.getAgendaById(ultimoId, idFunc);
- retorno = "protocolo.xhtml?faces-redirect=true";
- listarAgendamentos();
- fc.addMessage(null, new FacesMessage(
- FacesMessage.SEVERITY_INFO, "Sucesso",
- "Agendamento realizado com sucesso."));
- } else
- retorno = "cadastrar.xhtml";
- fc.addMessage(
- null,
- new FacesMessage(FacesMessage.SEVERITY_ERROR, "Erro",
- "Não foi possivel realizar o agendamento. Tente novamente."));
- } catch (Exception e) {
- e.printStackTrace();
- }
- return retorno;
- // return "calendario.xhtml";
- }
- public String trocarPage() throws SQLException {
- if (cidades == null)
- cidades = agendaDAO.listarCidade("DF");
- return "cadastrar.xhtml?faces-redirect=true";
- }
- public void onEventSelect(SelectEvent selectEvent) {
- event = (ScheduleEvent) selectEvent.getObject();
- }
- public void listarAgendamentos() throws Exception {
- int y = 0;
- eventModel = new DefaultScheduleModel();
- criarAgendaVEP(eventModel);
- GregorianCalendar dataAtualC = new GregorianCalendar();
- /*
- * dataAtualC.set(Calendar.HOUR_OF_DAY,0);
- * dataAtualC.set(Calendar.MINUTE,0); dataAtualC.set(Calendar.SECOND,0);
- */
- dataAtualC.set(Calendar.DATE, dataAtualC.get(Calendar.DATE) + 2);
- listaAgenda = agendaDAO.listarAgendaCalendario(dataAtualC.getTime());
- for (int i = 0; i < 1000; i++) {
- int vagas = 50;
- DefaultScheduleEvent evento = new DefaultScheduleEvent();
- GregorianCalendar dataContC = new GregorianCalendar();
- /*
- * dataContC.set(Calendar.HOUR_OF_DAY,0);
- * dataContC.set(Calendar.MINUTE,0);
- * dataContC.set(Calendar.SECOND,0);
- */
- dataContC.set(Calendar.DATE, i + 1);
- if (listaAgenda.size() > 0
- && dataContC.get(Calendar.DATE) == listaAgenda.get(y)
- .getDataAgenda().getDate()) {
- vagas = 50 - (listaAgenda.get(y).getCount());
- y++;
- if (y >= listaAgenda.size())
- y = listaAgenda.size() - 1;
- }
- if (vagas > 0) {
- if (dataContC.compareTo(dataAtualC) > 0) {
- if (dataContC.get(Calendar.DAY_OF_WEEK) != 1
- && dataContC.get(Calendar.DAY_OF_WEEK) != 7) {
- evento.setTitle("AGENDAMENTO GERAL");
- evento.setAllDay(true);
- evento.setStartDate(dataContC.getTime());
- evento.setEndDate(dataContC.getTime());
- evento.setEditable(false);
- eventModel.addEvent(evento);
- }
- }
- }
- }
- }
- private void criarAgendaVEP(ScheduleModel eventModel) {
- Date dataAtual = new Date();
- dataAtual.setDate(dataAtual.getDate() + 2);
- for (int i = 0; i < 1000; i++) {
- DefaultScheduleEvent evento = new DefaultScheduleEvent();
- Date data = new Date();
- data.setDate(i + 1);
- // data.setMonth(mesSelecionado);
- if (data.compareTo(dataAtual) > 0) {
- if (data.getDay() != 0 && data.getDay() != 6) {
- evento.setTitle("AGENDAMENTO VEP");
- evento.setStyleClass("VEPEMA");
- evento.setAllDay(true);
- evento.setStartDate(data);
- evento.setEndDate(data);
- evento.setEditable(false);
- eventModel.addEvent(evento);
- }
- }
- }
- }
- public void buscarInterno() throws Exception {
- FacesContext fc = FacesContext.getCurrentInstance();
- HttpSession session = (HttpSession) fc.getExternalContext().getSession(
- true);
- if (!interno.getNomeInterno().equals("")
- || !interno.getRgi().equals("")) {
- interno.setNomeInterno(interno.getNomeInterno().toUpperCase());
- internoDAO = new InternoDAO();
- internos = new ArrayList<Interno>();
- internos = internoDAO.pesquisarNome(interno);
- nomeFuncionario = session.getAttribute("nomeFuncionario")
- .toString();
- matricula = session.getAttribute("matr").toString();
- postoTrabalho = session.getAttribute("postoTrabalho").toString();
- idFunc = session.getAttribute("idFunc").toString();
- }
- }
- public void escoltasAtivas() throws SQLException {
- // dataInicial.setMonth(dataInicial.getMonth()-1);
- listaAgenda = new ArrayList<AgendaAtendimento>();
- if (postos == null || destinos == null) {
- postos = agendaDAO.listarPosto();
- destinos = agendaDAO.listarDestino();
- }
- }
- public String buscarEscoltasAtivas() throws SQLException {
- FacesContext fc = FacesContext.getCurrentInstance();
- HttpSession session = (HttpSession) fc.getExternalContext().getSession(
- true);
- nomeFuncionario = session.getAttribute("nomeFuncionario").toString();
- matricula = session.getAttribute("matr").toString();
- postoTrabalho = session.getAttribute("postoTrabalho").toString();
- idFunc = session.getAttribute("idFunc").toString();
- agenda.setIdPostoTrabalho(idPostoTrabalho);
- agenda.setIdUp(idUp);
- agenda.setIdDestino(idDestino);
- // agenda.setStatus(statusAgendamento);
- agenda.setNomeInterno(agenda.getNomeInterno().toUpperCase());
- listaAgenda = agendaDAO.listarAgendamentoPorData(dataInicial,
- dataFinal, agenda);
- // System.out.println("listaAgenda.size: " + listaAgenda.size());
- return "";
- }
- public void buscarEscoltasAtivasCancelar() throws SQLException {
- FacesContext fc = FacesContext.getCurrentInstance();
- HttpSession session = (HttpSession) fc.getExternalContext().getSession(
- true);
- nomeFuncionario = session.getAttribute("nomeFuncionario").toString();
- matricula = session.getAttribute("matr").toString();
- postoTrabalho = session.getAttribute("postoTrabalho").toString();
- idFunc = session.getAttribute("idFunc").toString();
- interno.setNomeInterno(interno.getNomeInterno().toUpperCase());
- listaAgenda = agendaDAO.listarAgendamentoPorUsuario(
- Integer.parseInt(idFunc), dataInicial, dataFinal, interno,
- agenda.getIdAgendaAtendimento());
- }
- public void cancelarAgendamento() throws SQLException {
- agendaSelecionada.setMotivoSaida(agendaSelecionada.getMotivoSaida()
- .toUpperCase());
- int cancel = agendaDAO.cancelarAgenda(agendaSelecionada);
- buscarEscoltasAtivasCancelar();
- FacesContext fc = FacesContext.getCurrentInstance();
- if (cancel == 1) {
- fc.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_INFO,
- "Sucesso", "Agendamento cancelado com sucesso."));
- } else {
- fc.addMessage(null, new FacesMessage(FacesMessage.SEVERITY_ERROR,
- "Erro", "Erro ao cancelar o agendamento. Tente novamente."));
- }
- }
- public void gerarRelatorio() throws Exception {
- // System.out.println("size: " + listaAgendaSelecionada.size());
- String parametrosAdicionais = " agenda_atendimento.idagenda_atendimento=01";
- for (AgendaAtendimento ag : listaAgendaSelecionada) {
- parametrosAdicionais += " OR agenda_atendimento.idagenda_atendimento="
- + ag.getIdAgendaAtendimento();
- }
- FacesContext fc = FacesContext.getCurrentInstance();
- ServletContext sc = (ServletContext) fc.getExternalContext()
- .getContext();
- // String realpath = sc.getRealPath(File.separator+"SuaPasta");
- String pathRelatorios = sc.getRealPath("relatorios");
- pathRelatorios = pathRelatorios + File.separator;
- String pathImg = sc.getRealPath("relatorios");
- pathImg = pathImg + File.separator;
- Map<String, Object> parametros = new HashMap<>();
- parametros.put("PASTA_IMAGENS", pathImg);
- parametros.put("SUBREPORT_DIR", pathRelatorios);
- parametros.put("dataAgenda", listaAgendaSelecionada.get(0)
- .getDataAgenda());
- parametros.put("unidadePenal", 104);
- parametros.put("parametrosAdicionais", parametrosAdicionais);
- parametros.put("NOME_CHEFE_NUARQ", "NOME_CHEFE_NUARQ - rodrigo");
- Connection con = ConnectionFactory.getConnection();
- try {
- JasperPrint jasperPrint = JasperFillManager.fillReport(
- pathRelatorios
- + "agendamentoParaAudienciaCompletoPorId.jasper",
- parametros, con);
- HttpServletResponse response = (HttpServletResponse) fc
- .getExternalContext().getResponse();
- // response.setContentType("application/pdf");
- response.setHeader("Content-Type", "application/pdf");
- JasperExportManager.exportReportToPdfStream(jasperPrint,
- response.getOutputStream());
- } catch (JRException e) {
- e.printStackTrace();
- } finally {
- con.close();
- }
- }
- public String copiaAgenda() {
- agenda = agendaSelecionada;
- return "protocolo.xhtml?faces-redirect=true";
- }
- public void buscarCidade() throws SQLException {
- cidades = agendaDAO.listarCidade(uf);
- }
- public void buscarDestino() throws SQLException {
- if (destinos == null) {
- if (idCidade == 0)
- idCidade = 1;
- destinos = agendaDAO.listarDestinoByCidade(idCidade);
- }
- }
- public List<String> filtrarDestino(String query) throws Exception {
- filtroDestinos = new ArrayList<Destino>();
- // destino.setDestino(destino.getDestino().toUpperCase());
- agendaDAO = new AgendaAtendimentoDAO();
- System.out.println(query.toUpperCase());
- destinos = agendaDAO.filtrarDestino(query.toUpperCase(), idCidade);
- List<String> destStr = new ArrayList<String>();
- for (int i = 0; i < destinos.size(); i++) {
- destStr.add(destinos.get(i).getDestino());
- }
- return destStr;
- }
- public void getDestinoById() {
- System.out.println("getDestinoById");
- for (int i = 0; i < destinos.size(); i++) {
- if (destinos.get(i).getDestino().contains(destino.getDestino())) {
- System.out.println("achou: " + destinos.get(i).getIdDestino());
- destino.setIdDestino(destinos.get(i).getIdDestino());
- agenda.setIdDestino(destinos.get(i).getIdDestino());
- }
- }
- }
- /*
- * public List<Destino> filtrarDestino(String query) throws Exception{
- * filtroDestinos = new ArrayList<Destino>();
- * //destino.setDestino(destino.getDestino().toUpperCase()); agendaDAO = new
- * AgendaAtendimentoDAO(); System.out.println(query.toUpperCase());
- *
- * destinos = agendaDAO.filtrarDestino(query.toUpperCase(), idCidade);
- *
- * return destinos; }
- */
- public void buscarSolicitante() throws SQLException {
- getDestinoById();
- System.out.println("buscarSolicitante");
- // destino = agendaDAO.listarDestino(destino.getIdDestino());
- agenda.setDestinoClass(agendaDAO.listarDestino(destino.getIdDestino()));
- cargo = agenda.getDestinoClass().getCargoSolicitante();
- nomeSol = agenda.getDestinoClass().getResponsavel();
- formaTrat = agenda.getDestinoClass().getFormaDeTratamento();
- vocativo = agenda.getDestinoClass().getVocativoSolicitante();
- cidadeDest = agenda.getDestinoClass().getCidade();
- endDest = agenda.getDestinoClass().getEndereco();
- agenda.getDestinoClass()
- .setCidade(agenda.getDestinoClass().getCidade());
- }
- public ScheduleEvent getEvent() {
- return event;
- }
- public void setEvent(ScheduleEvent event) {
- this.event = event;
- }
- public ScheduleModel getEventModel() {
- return eventModel;
- }
- public void setEventModel(ScheduleModel eventModel) {
- this.eventModel = eventModel;
- }
- public Date getSelectedDate() {
- return selectedDate;
- }
- public void setSelectedDate(Date selectedDate) {
- this.selectedDate = selectedDate;
- }
- public int getMesSelecionado() {
- return mesSelecionado;
- }
- public void setMesSelecionado(int mesSelecionado) {
- this.mesSelecionado = mesSelecionado;
- }
- public int getAnoSelecionado() {
- return anoSelecionado;
- }
- public void setAnoSelecionado(int anoSelecionado) {
- this.anoSelecionado = anoSelecionado;
- }
- public AgendaAtendimento getAgenda() {
- return agenda;
- }
- public void setAgenda(AgendaAtendimento agenda) {
- this.agenda = agenda;
- }
- public AgendaAtendimento getAgendaSelecionada() {
- return agendaSelecionada;
- }
- public void setAgendaSelecionada(AgendaAtendimento agendaSelecionada) {
- this.agendaSelecionada = agendaSelecionada;
- }
- public GregorianCalendar getG() {
- return g;
- }
- public void setG(GregorianCalendar g) {
- this.g = g;
- }
- public Interno getInterno() {
- return interno;
- }
- public void setInterno(Interno interno) {
- this.interno = interno;
- }
- public InternoDAO getInternoDAO() {
- return internoDAO;
- }
- public void setInternoDAO(InternoDAO internoDAO) {
- this.internoDAO = internoDAO;
- }
- public List<Interno> getInternos() {
- return internos;
- }
- public void setInternos(List<Interno> internos) {
- this.internos = internos;
- }
- public List<AgendaAssunto> getAssuntos() {
- return assuntos;
- }
- public void setAssuntos(List<AgendaAssunto> assuntos) {
- this.assuntos = assuntos;
- }
- public AgendaAtendimentoDAO getAgendaDAO() {
- return agendaDAO;
- }
- public void setAgendaDAO(AgendaAtendimentoDAO agendaDAO) {
- this.agendaDAO = agendaDAO;
- }
- public List<AgendaTipoContatos> getTipoContatos() {
- return tipoContatos;
- }
- public void setTipoContatos(List<AgendaTipoContatos> tipoContatos) {
- this.tipoContatos = tipoContatos;
- }
- public List<AgendaSituacao> getListSituacao() {
- return listSituacao;
- }
- public void setListSituacao(List<AgendaSituacao> listSituacao) {
- this.listSituacao = listSituacao;
- }
- public List<Cidade> getCidades() {
- return cidades;
- }
- public void setCidades(List<Cidade> cidades) {
- this.cidades = cidades;
- }
- public String getUf() {
- return uf;
- }
- public void setUf(String uf) {
- this.uf = uf;
- }
- public List<Destino> getDestinos() {
- return destinos;
- }
- public void setDestinos(List<Destino> destinos) {
- this.destinos = destinos;
- }
- public int getIdCidade() {
- return idCidade;
- }
- public void setIdCidade(int idCidade) {
- this.idCidade = idCidade;
- }
- public Destino getDestino() {
- return destino;
- }
- public void setDestino(Destino destino) {
- this.destino = destino;
- }
- public Date getDataHoraAgenda() {
- return dataHoraAgenda;
- }
- public void setDataHoraAgenda(Date dataHoraAgenda) {
- this.dataHoraAgenda = dataHoraAgenda;
- }
- public List<AgendaAssunto> getAssuntosVEP() {
- return assuntosVEP;
- }
- public void setAssuntosVEP(List<AgendaAssunto> assuntosVEP) {
- this.assuntosVEP = assuntosVEP;
- }
- public String getNomeFuncionario() {
- return nomeFuncionario;
- }
- public void setNomeFuncionario(String nomeFuncionario) {
- this.nomeFuncionario = nomeFuncionario;
- }
- public String getIdFunc() {
- return idFunc;
- }
- public void setIdFunc(String idFunc) {
- this.idFunc = idFunc;
- }
- public String getPostoTrabalho() {
- return postoTrabalho;
- }
- public void setPostoTrabalho(String postoTrabalho) {
- this.postoTrabalho = postoTrabalho;
- }
- public String getMatricula() {
- return matricula;
- }
- public void setMatricula(String matricula) {
- this.matricula = matricula;
- }
- public List<PostoTrabalhoBean> getPostos() {
- return postos;
- }
- public void setPostos(List<PostoTrabalhoBean> postos) {
- this.postos = postos;
- }
- public Date getDataInicial() {
- return dataInicial;
- }
- public void setDataInicial(Date dataInicial) {
- this.dataInicial = dataInicial;
- }
- public Date getDataFinal() {
- return dataFinal;
- }
- public void setDataFinal(Date dataFinal) {
- this.dataFinal = dataFinal;
- }
- public int getIdUp() {
- return idUp;
- }
- public void setIdUp(int idUp) {
- this.idUp = idUp;
- }
- public int getIdDestino() {
- return idDestino;
- }
- public void setIdDestino(int idDestino) {
- this.idDestino = idDestino;
- }
- public List<AgendaAtendimento> getListaAgenda() {
- return listaAgenda;
- }
- public void setListaAgenda(List<AgendaAtendimento> listaAgenda) {
- this.listaAgenda = listaAgenda;
- }
- public int getIdPostoTrabalho() {
- return idPostoTrabalho;
- }
- public void setIdPostoTrabalho(int idPostoTrabalho) {
- this.idPostoTrabalho = idPostoTrabalho;
- }
- public String getStatusAgendamento() {
- return statusAgendamento;
- }
- public void setStatusAgendamento(String statusAgendamento) {
- this.statusAgendamento = statusAgendamento;
- }
- public List<AgendaAtendimento> getListaAgendaSelecionada() {
- return listaAgendaSelecionada;
- }
- public void setListaAgendaSelecionada(
- List<AgendaAtendimento> listaAgendaSelecionada) {
- this.listaAgendaSelecionada = listaAgendaSelecionada;
- }
- public int getUltimoDiaMes() {
- return ultimoDiaMes;
- }
- public void setUltimoDiaMes(int ultimoDiaMes) {
- this.ultimoDiaMes = ultimoDiaMes;
- }
- public Date getDataAtual() {
- return dataAtual;
- }
- public List<Destino> getFiltroDestinos() {
- return filtroDestinos;
- }
- public void setFiltroDestinos(List<Destino> filtroDestinos) {
- this.filtroDestinos = filtroDestinos;
- }
- public Date getDataMinima() {
- return dataMinima;
- }
- public void setDataMinima(Date dataMinima) {
- this.dataMinima = dataMinima;
- }
- public String getCargo() {
- return cargo;
- }
- public void setCargo(String cargo) {
- this.cargo = cargo;
- }
- public String getVocativo() {
- return vocativo;
- }
- public void setVocativo(String vocativo) {
- this.vocativo = vocativo;
- }
- public String getFormaTrat() {
- return formaTrat;
- }
- public void setFormaTrat(String formaTrat) {
- this.formaTrat = formaTrat;
- }
- public String getNomeSol() {
- return nomeSol;
- }
- public void setNomeSol(String nomeSol) {
- this.nomeSol = nomeSol;
- }
- public String getCidadeDest() {
- return cidadeDest;
- }
- public void setCidadeDest(String cidadeDest) {
- this.cidadeDest = cidadeDest;
- }
- public String getEndDest() {
- return endDest;
- }
- public void setEndDest(String endDest) {
- this.endDest = endDest;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement