public void onClick$resultado(Event event) { border.getCenter().getChildren().clear(); Window winResultado = (Window) CtrlMatricula.getInstance().abrirRelatorioResultados(); winResultado.setWidth("100%"); winResultado.setHeight("100%"); winResultado.setParent(border.getCenter()); }
public void onClick$alocarProfessor(Event event) { border.getCenter().getChildren().clear(); Window winAlocarProfessor = (Window) CtrlLetivo.getInstance().abrirEventosAlocarProfessor(2); winAlocarProfessor.setWidth("100%"); winAlocarProfessor.setHeight("100%"); winAlocarProfessor.setParent(border.getCenter()); }
public void onClick$calendario(Event event) { border.getCenter().getChildren().clear(); Window winCalendario = (Window) CtrlLetivo.getInstance().abrirEventosCalendario(); winCalendario.setWidth("100%"); winCalendario.setHeight("100%"); winCalendario.setParent(border.getCenter()); }
public void onClick$turma(Event event) { border.getCenter().getChildren().clear(); Window winTurma = (Window) CtrlLetivo.getInstance().abrirEventosTurma(1); winTurma.setWidth("100%"); winTurma.setHeight("100%"); winTurma.setParent(border.getCenter()); }
public void onClick$sala(Event event) { border.getCenter().getChildren().clear(); Window winDisciplina = (Window) CtrlLetivo.getInstance().abrirEventosSala(); winDisciplina.setWidth("100%"); winDisciplina.setHeight("100%"); winDisciplina.setParent(border.getCenter()); }
public void openProcedimientos() { String pages = ""; String anio = this.anio + ""; pages = "/pages/openProcedimientos.zul"; Map parametros = new HashMap(); parametros.put("codigo_empresa", codigo_empresa); parametros.put("codigo_sucursal", codigo_sucursal); parametros.put("anio", anio); parametros.put("contratos", ""); parametros.put("ocultar_filtro_procedimiento", "ocultar_filtro_procedimiento"); parametros.put("seleccionados", procedimientos_seleccionados); OpenProcedimientosAction componente = (OpenProcedimientosAction) Executions.createComponents(pages, this, parametros); final Window ventana = (Window) componente; ventana.setWidth("990px"); ventana.setHeight("400px"); ventana.setClosable(true); ventana.setMaximizable(true); ventana.setTitle("CONSULTAR PROCEDIMIENTOS HABILITADOS"); ventana.setMode("modal"); componente.setSeleccionar_componente(this); }
public void onClick$boletim(Event event) { border.getCenter().getChildren().clear(); Window winBoletim; if (user.getPrivilegio() == 4) { winBoletim = (Window) CtrlMatricula.getInstance().abrirRelatorioBoletim(aluno); } else { winBoletim = (Window) CtrlMatricula.getInstance().abrirRelatorioBoletim(); } winBoletim.setWidth("100%"); winBoletim.setHeight("100%"); winBoletim.setParent(border.getCenter()); }
public void onClick$avaliacao(Event event) { border.getCenter().getChildren().clear(); Window winAvaliacao; if (user.getPrivilegio() == 3) { winAvaliacao = (Window) CtrlAula.getInstance().abrirEventosAvaliacao(prof); } else { winAvaliacao = (Window) CtrlAula.getInstance().abrirEventosAvaliacao(); } winAvaliacao.setWidth("100%"); winAvaliacao.setHeight("100%"); winAvaliacao.setParent(border.getCenter()); }
public void onClick$chamada(Event event) { border.getCenter().getChildren().clear(); Window winChamada; if (user.getPrivilegio() == 3) { winChamada = (Window) CtrlAula.getInstance().abrirEventosChamada(prof); } else { winChamada = (Window) CtrlAula.getInstance().abrirEventosChamada(); } winChamada.setWidth("100%"); winChamada.setHeight("100%"); winChamada.setParent(border.getCenter()); }
public void onClick$professor(Event event) { Window winProfessor; if (user.getPrivilegio() == 3) { Professor p = (Professor) user.getPessoa(); CtrlPessoa.getInstance().abrirEditarProfessor(p); } else { border.getCenter().getChildren().clear(); winProfessor = (Window) CtrlPessoa.getInstance().abrirEventosProfessor(); winProfessor.setWidth("100%"); winProfessor.setHeight("100%"); winProfessor.setParent(border.getCenter()); } }
public void onClick$cadastrarAluno(Event event) { Window winCadastrarAluno; if (user.getPrivilegio() == 4) { Aluno a = (Aluno) user.getPessoa(); CtrlPessoa.getInstance().abrirEditarAluno(a, a.getCurso()); } else { border.getCenter().getChildren().clear(); winCadastrarAluno = (Window) CtrlPessoa.getInstance().abrirEventosAluno(); winCadastrarAluno.setWidth("100%"); winCadastrarAluno.setHeight("100%"); winCadastrarAluno.setParent(border.getCenter()); } }
public void onClick$matricularAluno(Event event) { Window winMatricularAluno; border.getCenter().getChildren().clear(); if (user.getPrivilegio() == 4) { winMatricularAluno = (Window) CtrlMatricula.getInstance().abrirEventosMatricula(aluno); } else { winMatricularAluno = (Window) CtrlMatricula.getInstance().abrirEventosMatricula(); } winMatricularAluno.setWidth("100%"); winMatricularAluno.setHeight("100%"); winMatricularAluno.setParent(border.getCenter()); }
public void onClick$visualizarTurmas(Event event) { border.getCenter().getChildren().clear(); Window winVisualizarTurmas; if (user.getPrivilegio() == 3) { winVisualizarTurmas = (Window) CtrlLetivo.getInstance().abrirVisualizarTurmas(prof); } else { winVisualizarTurmas = (Window) CtrlLetivo.getInstance().abrirVisualizarTurmas(); } winVisualizarTurmas.setWidth("100%"); winVisualizarTurmas.setHeight("100%"); winVisualizarTurmas.setParent(border.getCenter()); }
private Component createDialog(Component content, String title) { Window dialog = new Window(); dialog.appendChild(content); dialog.setTitle(title); dialog.setClosable(true); dialog.setSizable(true); dialog.setWidth("50%"); dialog.setHeight("50%"); dialog.setBorder(true); dialog.setParent(view); dialog.setMode(Window.MODAL); return dialog; }