示例#1
0
        protected void UCCCalendario_IndexChanged()
        {
            try
            {
                UCCCursoCurriculo.PermiteEditar = false;

                UCCCursoCurriculo.Valor = new int[2] {
                    -1, -1
                };

                if (UCCCalendario.Valor > 0)
                {
                    UCCCursoCurriculo.CarregarPorEscolaCalendarioSituacaoCurso(-1, -1, UCCCalendario.Valor, 1);

                    UCCCursoCurriculo.SetarFoco();
                    UCCCursoCurriculo.PermiteEditar = true;
                }

                UCCCursoCurriculo_IndexChanged();
            }
            catch (Exception ex)
            {
                ApplicationWEB._GravaErro(ex);
                lblMessage.Text = UtilBO.GetErroMessage("Erro ao tentar carregar os dados do calendario.", UtilBO.TipoMensagem.Erro);
            }
        }
示例#2
0
        private void UCCUAEscola_IndexChangedUnidadeEscola()
        {
            try
            {
                UCCCursoCurriculo.Valor         = new[] { -1, -1 };
                UCCCursoCurriculo.PermiteEditar = false;

                if (UCCUAEscola.Esc_ID > 0 && UCCUAEscola.Uni_ID > 0)
                {
                    UCCCursoCurriculo.CarregarVigentesPorEscola(UCCUAEscola.Esc_ID, UCCUAEscola.Uni_ID);
                    UCCCursoCurriculo.SetarFoco();
                    UCCCursoCurriculo.PermiteEditar = true;
                }

                UCCCursoCurriculo_IndexChanged();
            }
            catch (Exception ex)
            {
                ApplicationWEB._GravaErro(ex);
                lblMensagem.Text = UtilBO.GetErroMessage("Erro ao tentar carregar os dados.", UtilBO.TipoMensagem.Erro);
                updMensagem.Update();
            }
            finally
            {
                updFiltros.Update();
            }
        }
示例#3
0
        /// <summary>
        /// Verifica alteracao do index do combo calendario e trata o combo períodocurrículo
        /// </summary>
        public void UCCCalendario_IndexChanged()
        {
            try
            {
                UCCPeriodoCalendario.Valor         = new int[] { -1, -1 };
                UCCPeriodoCalendario.PermiteEditar = false;

                UCCCursoCurriculo.Valor         = new[] { -1, -1 };
                UCCCursoCurriculo.PermiteEditar = false;

                if (UCCCalendario.Valor > 0)
                {
                    UCCPeriodoCalendario.CarregarPorCalendario(UCCCalendario.Valor);
                    UCCPeriodoCalendario.SetarFoco();
                    UCCPeriodoCalendario.PermiteEditar = true;

                    UCCCursoCurriculo.CarregarPorEscolaCalendarioSituacaoCurso(UCComboUAEscola.Esc_ID, UCComboUAEscola.Uni_ID, UCCCalendario.Valor, 0);
                    UCCCursoCurriculo.SetarFoco();
                    UCCCursoCurriculo.PermiteEditar = true;
                }
                if (UCCPeriodoCalendario.PermiteEditar)
                {
                    UCComboCurriculoPeriodo__OnSelectedIndexChange();
                }
            }
            catch (Exception ex)
            {
                ApplicationWEB._GravaErro(ex);
                lblMessage.Text = UtilBO.GetErroMessage("Erro ao tentar carregar os dados.", UtilBO.TipoMensagem.Erro);
            }
        }
示例#4
0
        /// <summary>
        /// Verifica alteracao do index do combo calendario e trata o combo cursocurriculo
        /// </summary>
        public void UCCCalendario_IndexChanged()
        {
            try
            {
                UCCCursoCurriculo.Valor         = new[] { -1, -1 };
                UCCCursoCurriculo.PermiteEditar = false;

                if (UCCCalendario.Valor > 0)
                {
                    if (__SessionWEB.__UsuarioWEB.Grupo.vis_id != SysVisaoID.Individual)
                    {
                        if (IndexChanged_Turma != null)
                        {
                            IndexChanged_Turma();
                        }
                    }

                    UCCCursoCurriculo.CarregarPorEscolaCalendarioSituacaoCursoNivelEnsino(UCComboUAEscola.Esc_ID, UCComboUAEscola.Uni_ID, UCCCalendario.Valor, 0, VS_FiltroTipoNivelEnsino);

                    UCCCursoCurriculo.SetarFoco();
                    UCCCursoCurriculo.PermiteEditar = true;
                }

                if (IndexChanged_Calendario != null)
                {
                    IndexChanged_Calendario();
                }
                UCCCursoCurriculo_IndexChanged();
            }
            catch (Exception ex)
            {
                ApplicationWEB._GravaErro(ex);
                lblMessage.Text = UtilBO.GetErroMessage("Erro ao tentar carregar os dados.", UtilBO.TipoMensagem.Erro);
            }
        }
示例#5
0
        /// <summary>
        /// Verifica alteracao do index do combo calendario e trata o combo Curso curriculo.
        /// </summary>
        protected void UCComboCalendario_IndexChanged()
        {
            try
            {
                if (_VS_doc_id > 0)
                {
                    if (UCComboCalendario.Valor > 0)
                    {
                        UCComboCalendario.PermiteEditar = true;
                        ddlTurma.Enabled = true;
                        InicializaCamposCadastroVisaoIndividual(UCComboUAEscola.Esc_ID);
                    }
                    else
                    {
                        ddlTurma.SelectedIndex = 0;
                        ddlTurma.Enabled       = false;

                        UCCTurmaDisciplina1.Valor         = -1;
                        UCCTurmaDisciplina1.PermiteEditar = false;

                        UCCPeriodoCalendario.Valor         = new[] { -1, -1 };
                        UCCPeriodoCalendario.PermiteEditar = false;
                    }
                }
                else
                {
                    UCCCursoCurriculo.Valor         = new[] { -1, -1 };
                    UCCCursoCurriculo.PermiteEditar = false;

                    if (UCComboCalendario.Valor > 0 && UCComboUAEscola.Esc_ID > 0 && UCComboUAEscola.Uni_ID > 0)
                    {
                        // Permite carregar cursos ativos ou encerrados (turmas histórico).
                        UCCCursoCurriculo.CarregarPorEscolaCalendarioSituacaoCurso(UCComboUAEscola.Esc_ID, UCComboUAEscola.Uni_ID, UCComboCalendario.Valor, 0);

                        UCCCursoCurriculo.SetarFoco();
                        UCCCursoCurriculo.PermiteEditar = true;
                    }

                    UCCCursoCurriculo_IndexChanged();
                }
            }
            catch (Exception ex)
            {
                ApplicationWEB._GravaErro(ex);
                lblMessage.Text = UtilBO.GetErroMessage("Erro ao tentar carregar os dados.", UtilBO.TipoMensagem.Erro);
            }
        }
示例#6
0
        /// <summary>
        /// Verifica alteracao do index do combo calendario e trata o combo cursocurriculo
        /// </summary>
        public void UCCCalendario_IndexChanged()
        {
            try
            {
                UCCCursoCurriculo.Valor         = new[] { -1, -1 };
                UCCCursoCurriculo.PermiteEditar = false;

                if (UCCCalendario.Valor > 0)
                {
                    UCCCursoCurriculo.CarregarPorEscolaCalendarioSituacaoCursoNivelEnsino(UCComboUAEscola.Esc_ID, UCComboUAEscola.Uni_ID, UCCCalendario.Valor, 0, VS_FiltroTipoNivelEnsino);

                    UCCCursoCurriculo.SetarFoco();
                    UCCCursoCurriculo.PermiteEditar = true;
                }

                UCCCursoCurriculo_IndexChanged();
            }
            catch (Exception ex)
            {
                ApplicationWEB._GravaErro(ex);
                lblMessage.Text = UtilBO.GetErroMessage("Erro ao tentar carregar os dados.", UtilBO.TipoMensagem.Erro);
            }
        }