Пример #1
0
    protected void actualizarVinculaciones()
    {
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        string  FCondicion = "ID_USUARIOS = " + Session["UsuarioID"].ToString();
        Docente FDocente   = (Docente)FGestor.ObtenerObjeto(typeof(Docente), FCondicion);

        if (FDocente != null)
        {
            string FSQL = "SELECT CD.* FROM SIS_INSTRUCTIVOS.Q_CARGOS_DOCENTES CD WHERE CD.ID_ESTADOS_PRESENTACIONES IN (1,3) AND CD.ID_DOCENTES = " + FDocente.ID +
                          " AND (CD.ELIMINADO <> 'S' OR CD.ELIMINADO IS NULL) AND (CD.ID_PRESENTACIONES_CARRERAS IN (SELECT PC.ID_PRESENTACIONES_CARRERAS FROM SIS_INSTRUCTIVOS." +
                          "Q_PRESENTACIONES_CARRERAS PC WHERE PC.ID_PRESENTACIONES_CARRERAS = CD.ID_PRESENTACIONES_CARRERAS AND PC.COMPLETADA = 'S') OR CD.ID_NIVELES_EDUCATIVOS = 2)";
            if (!chkMostrarAprobadas.Checked)
            {
                lblPendientes.Text = " y que están pendientes de revisión, o fueron revisadas recientemente.";
                FSQL += " AND (CD.ID_TIPOS_ESTADOS_CARGOS = 1 OR (SYSDATE - FECHA_REVISION_DOC) < 8) ";
                grdCargos.SettingsText.EmptyDataRow         = "No hay vinculaciones en docencia pendientes de revisión.";
                grdVinculacionesO.SettingsText.EmptyDataRow = "No hay otras vinculaciones pendientes de revisión.";
            }
            else
            {
                lblPendientes.Text = "";
                grdCargos.SettingsText.EmptyDataRow         = "No hay vinculaciones en docencia vigentes.";
                grdVinculacionesO.SettingsText.EmptyDataRow = "No hay otras vinculaciones vigentes.";
            }
            grdCargos.DataSource = FGestor.LeerSQL(FSQL);
            grdCargos.DataBind();
        }
    }
Пример #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        sgwNucleo.Usuarios.VerificarUsuarioAutenticado();
        Page.Form.Attributes.Add("enctype", "multipart/form-data");
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        DataSet datos;

        if (!Page.IsPostBack)
        {
            // listadesplegable instituciones
            datos = FGestor.LeerSQL("SELECT ID_INSTITUCIONES, INSTITUCION FROM SIS_UNIVERSIDADES.Q_INSTITUCIONES WHERE ID_ESTADOS_INSTITUCIONES = 1");
            Funciones.CompletarListaDesplegable(cmbCargoNoAcademicoInstitucion, datos, true, false);
            Funciones.CompletarListaDesplegable(cmbCargoNoAcademicoInstitucionP, datos, true, false);
            Funciones.CompletarListaDesplegable(cmbCargosHospitalariosInstitucion, datos, true, false);

            datos = FGestor.LeerSQL("SELECT ID_DISCIPLINAS, DISCIPLINA FROM SIS_CONEAU.Q_DISCIPLINAS");
            sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosNoAcademicosDisciplina, datos, false, false);
            sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosNoAcademicosDisciplinaP, datos, false, false);
            datos = FGestor.LeerSQL("SELECT ID_TIPOS_DURACIONES_DED, TIPO_DURACION_DED FROM SIS_DOCENTES.Q_TIPOS_DURACIONES_DED");
            sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosNoAcademicosSemanasAnual, datos, false, false);
            sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosNoAcademicosSemanasAnualP, datos, false, false);

            Docente FDocente = new Docente();
            FGestor.ObtenerObjeto(FDocente, int.Parse(Session["ID_DOCENTES"].ToString()));
            chkDesempenioNoAcademico.Checked = FDocente.DESEMPENIO_NO_ACADEMICO;
        }
        actualizarDatosCargosHospitalarios();
        actualizarDatosCargoNoAcademico();
        actualizarDatosCargoNoAcademicoP();
    }
Пример #3
0
 protected void btnRevisar_Click(object sender, EventArgs e)
 {
     if (grdCargos.FocusedRowIndex < 0)
     {
         return;
     }
     sgwMulticapa.Objetos.CONEAU.Instructivos.CargoDocente FCargoDocente = new sgwMulticapa.Objetos.CONEAU.Instructivos.CargoDocente();
     sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
     FGestor.ObtenerObjeto(FCargoDocente, grdCargos);
     txtInstitucion.Text     = grdCargos.GetRowValues(grdCargos.FocusedRowIndex, "INSTITUCION").ToString();
     txtUnidadAcademica.Text = grdCargos.GetRowValues(grdCargos.FocusedRowIndex, "UNIDAD_ACADEMICA").ToString() + " (" +
                               grdCargos.GetRowValues(grdCargos.FocusedRowIndex, "LOCALIZACION").ToString() + ")";
     txtTipoCargo.Text           = grdCargos.GetRowValues(grdCargos.FocusedRowIndex, "TIPO_CARGO").ToString();
     txtDesignacion.Text         = grdCargos.GetRowValues(grdCargos.FocusedRowIndex, "TIPO_DESIGNACION").ToString();
     txtDedicacion1.Text         = FCargoDocente.DED_DOCENCIA.ToString();
     txtDedicacion2.Text         = FCargoDocente.DED_INVESTIGACION.ToString();
     txtDedicacion3.Text         = FCargoDocente.DED_EXTENSION.ToString();
     txtDedicacion4.Text         = FCargoDocente.DED_TESIS.ToString();
     txtDedicacion5.Text         = FCargoDocente.DED_TUTORIAS.ToString();
     txtDedicacion6.Text         = FCargoDocente.DED_OTRAS.ToString();
     ddlModalidad1.SelectedValue = FCargoDocente.ID_TIPOS_DUR_DED_1.ToString();
     ddlModalidad2.SelectedValue = FCargoDocente.ID_TIPOS_DUR_DED_2.ToString();
     ddlModalidad3.SelectedValue = FCargoDocente.ID_TIPOS_DUR_DED_3.ToString();
     ddlModalidad4.SelectedValue = FCargoDocente.ID_TIPOS_DUR_DED_4.ToString();
     ddlModalidad5.SelectedValue = FCargoDocente.ID_TIPOS_DUR_DED_5.ToString();
     ddlModalidad6.SelectedValue = FCargoDocente.ID_TIPOS_DUR_DED_6.ToString();
     CalcularDedicaciones();
     actualizarActividades();
     popCargosDocentes.ShowOnPageLoad = true;
 }
Пример #4
0
    protected void actualizarDatos()
    {
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Docente FDocente = new Docente();

        FGestor.ObtenerObjeto(FDocente, int.Parse(Session["ID_DOCENTES"].ToString()));

        DataSet FData = FGestor.LeerSQL("SELECT ID_DISCIPLINAS FROM SIS_CONEAU.SUBDISCIPLINAS " +
                                        "WHERE ID_SUBDISCIPLINAS = " + FDocente.ID_SUBDISCIPLINAS.ToString());

        if (FData.Tables[0].Rows.Count < 1)
        {
            cmbDisciplinas.SelectedIndex = 0;
        }
        else
        {
            cmbDisciplinas.SelectedValue = FData.Tables[0].Rows[0].ItemArray[0].ToString();
        }
        cmbDisciplina_SelectedIndexChanged(null, null);
        cmbAreaDesempenioSubdisciplina.SelectedValue = FDocente.ID_SUBDISCIPLINAS.ToString();
        cmbSubdisciplina_SelectedIndexChanged(null, null);
        if (pnlAreaDesempenioOtraDisciplina.Visible)
        {
            edtOtraDisciplina.Text = FDocente.OTRA_DISCIPLINA;
        }
        if (pnlAreaDesempenioOtraSubdisciplina.Visible)
        {
            edtOtraSubdisciplina.Text = FDocente.OTRA_SUBDISCIPLINA;
        }
        edtAreaDesempenioEspecializacion.Text = FDocente.ESPECIALIDAD;
    }
Пример #5
0
    // Botones General
    protected bool guardar()
    {
        string FEstado = "";

        if ((pnlAreaDesempenioOtraDisciplina.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtOtraDisciplina.Text)))
        {
            FEstado = "la disciplina";
        }
        else
        if ((pnlAreaDesempenioOtraSubdisciplina.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtOtraSubdisciplina.Text)))
        {
            FEstado = "la subdisciplina";
        }
        if (FEstado != "")
        {
            sgwNucleo.Pagina.MostrarEstado("Debe completar " + FEstado + ".", 1);
            return(false);
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Docente FDocente = new Docente();

        FGestor.ObtenerObjeto(FDocente, int.Parse(Session["ID_DOCENTES"].ToString()));
        FDocente.ID_SUBDISCIPLINAS = int.Parse(cmbAreaDesempenioSubdisciplina.SelectedValue);
        if (pnlAreaDesempenioOtraDisciplina.Visible)
        {
            FDocente.OTRA_DISCIPLINA = edtOtraDisciplina.Text;
        }
        if (pnlAreaDesempenioOtraSubdisciplina.Visible)
        {
            FDocente.OTRA_SUBDISCIPLINA = edtOtraSubdisciplina.Text;
        }
        FDocente.ESPECIALIDAD = edtAreaDesempenioEspecializacion.Text;
        return(FGestor.GuardarObjeto(FDocente));
    }
Пример #6
0
    protected void btnModificarCargosHospitalarios_Click(object sender, EventArgs e)
    {
        if (grdCargosHospitalarios.FocusedRowIndex < 0)
        {
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CargoHospitalario          FCargosHospitalarios = new CargoHospitalario();

        FGestor.ObtenerObjeto(FCargosHospitalarios, grdCargosHospitalarios);
        Session["OperacionDetalle"] = "M";

        edtActividadesHospitalariasServicio.Text     = FCargosHospitalarios.AMBITO_HOSPITALARIO;
        edtActividadesHospitalariasCargoFuncion.Text = FCargosHospitalarios.CARGO;
        edtCargosHospitalariosFechaInicio.Text       = FCargosHospitalarios.LeerFecha("FECHA_INICIO");
        edtCargosHospitalariosFechaFinalizacion.Text = FCargosHospitalarios.LeerFecha("FECHA_FINALIZACION");

        if (FCargosHospitalarios.INSTITUCION_UNIV)
        {
            cmbCargosHospitalariosInstitucion.SelectedValue = FCargosHospitalarios.ID_INSTITUCIONES.ToString();
            edtCargosHospitalariosInstitucionOtra.Text      = "";
        }
        else
        {
            cmbCargosHospitalariosInstitucion.SelectedValue = "-1";
            edtCargosHospitalariosInstitucionOtra.Text      = FCargosHospitalarios.OTRA_INSTITUCION;
        }
        cmbCargosHospitalariosInstitucion_SelectedIndexChanged(sender, e);
        popCargosHospitalarios.ShowOnPageLoad = true;
    }
Пример #7
0
    protected void btnModificarGestionAcademica_Click(object sender, EventArgs e)
    {
        if (grdGestionAcademicaABM.FocusedRowIndex < 0)
        {
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CargoGestion FCargoGestion         = new CargoGestion();

        FGestor.ObtenerObjeto(FCargoGestion, grdGestionAcademicaABM);
        Session["OperacionDetalle"]                   = "M";
        edtGestionAcademicaCargoFuncion.Text          = FCargoGestion.CARGO;
        cmbGestionAcademicaSemanasAnual.SelectedValue = FCargoGestion.ID_TIPOS_DURACIONES_DED.ToString();
        edtGestionAcademicaHsRelojSemanales.Text      = FCargoGestion.DEDICACION_SEMANAL.ToString();
        edtGestionAcademicaFechaInicio.Text           = FCargoGestion.LeerFecha("FECHA_INICIO");
        edtGestionAcademicaFechaFinalizacion.Text     = FCargoGestion.LeerFecha("FECHA_FINALIZACION");;
        if (FCargoGestion.INSTITUCION_UNIV)
        {
            cmbGestionAcademicaInstitucion.SelectedValue = FCargoGestion.ID_INSTITUCIONES.ToString();
            edtGestionAcademicaOtraInstitucion.Text      = "";
        }
        else
        {
            cmbGestionAcademicaInstitucion.SelectedValue = "-1";
            edtGestionAcademicaOtraInstitucion.Text      = FCargoGestion.OTRA_INSTITUCION;
        }
        cmbGestionAcademicaInstitucion_SelectedIndexChanged(sender, e);
        popGestionAcademica.ShowOnPageLoad = true;
    }
Пример #8
0
    // Botones General
    protected bool guardar()
    {
        string FEstado = "";

        if ((!sgwNucleo.Funciones.VerificarRequeridoInt(edtTesinasTPActuales.Text)) ||
            (!sgwNucleo.Funciones.VerificarRequeridoInt(edtTesinasTPConcluidas.Text)) ||
            (!sgwNucleo.Funciones.VerificarRequeridoInt(edtTesisDoctoralesActuales.Text)) ||
            (!sgwNucleo.Funciones.VerificarRequeridoInt(edtTesisDoctoralesConcluidas.Text)) ||
            (!sgwNucleo.Funciones.VerificarRequeridoInt(edtTesisMaestriaActuales.Text)) ||
            (!sgwNucleo.Funciones.VerificarRequeridoInt(edtTesisMaestriaConcluidas.Text)))
        {
            FEstado = "todos los valores requeridos o dejar los campos en cero (0)";
        }
        if (FEstado != "")
        {
            sgwNucleo.Pagina.MostrarEstado("Debe completar " + FEstado + ".", 1);
            return(false);
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Docente FDocente = new Docente();

        FGestor.ObtenerObjeto(FDocente, int.Parse(Session["ID_DOCENTES"].ToString()));
        FDocente.TESINAS_TP_ACTUALES     = int.Parse(edtTesinasTPActuales.Text);
        FDocente.TESINAS_TP_CONCLUIDAS   = int.Parse(edtTesinasTPConcluidas.Text);
        FDocente.TESIS_DOCTS_ACTUALES    = int.Parse(edtTesisDoctoralesActuales.Text);
        FDocente.TESIS_DOCTS_CONCLUIDAS  = int.Parse(edtTesisDoctoralesConcluidas.Text);
        FDocente.TESIS_MASTER_ACTUALES   = int.Parse(edtTesisMaestriaActuales.Text);
        FDocente.TESIS_MASTER_CONCLUIDAS = int.Parse(edtTesisMaestriaConcluidas.Text);
        FDocente.EXPERIENCIA_DISTANCIA   = edtExperienciaEducacionDistancia.Text;
        return(FGestor.GuardarObjeto(FDocente));
    }
Пример #9
0
    protected void btnGuardarCargoActualCursoPosgrado_Click(object sender, EventArgs e)
    {
        // Requeridos
        string FEstado = "";

        if ((pnlCargoActualCursoPosgradoOtraCarrera.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtCargoActualCursoPosgradoOtraCarrera.Text)))
        {
            FEstado = "la carrera";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtCargoActualCursoPosgradoActividadCurricular.Text))
        {
            FEstado = "la(s) actividad(es) curricular(es)";
        }
        else
        if ((pnlCargoActualOtroCargo.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtCargosDocentesActualOtroCargo.Text)))
        {
            FEstado = "el tipo de cargo";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequeridoInt(edtCargoActualCursoPosgradoAnioInicio.Text))
        {
            FEstado = "el año de inicio";
        }
        if (FEstado != "")
        {
            sgwNucleo.Pagina.MostrarEstado("Debe completar " + FEstado + ".", 1);
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor         = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CargoActCurric             FCargoActCurric = new CargoActCurric();

        if (Session["OperacionDetalle3"].ToString() == "1")
        {
            FCargoActCurric.ID_CARGOS_DOCENTES = int.Parse(Session["ID_CARGOS_DOCENTES"].ToString());
        }
        else
        {
            FGestor.ObtenerObjeto(FCargoActCurric, grdCursosPosgrado);
        }
        FCargoActCurric.ID_TIPOS_CARRERAS = int.Parse(cmbCargoActualCursoPosgradoTipo.SelectedValue);
        if (cmbCargoActualCursoPosgradoCarrera.SelectedValue != "-1")
        {
            FCargoActCurric.CARRERA_UNIV = true;
            FCargoActCurric.ID_CARRERAS  = int.Parse(cmbCargoActualCursoPosgradoCarrera.SelectedValue);
            FCargoActCurric.OTRA_CARRERA = "";
        }
        else
        {
            FCargoActCurric.CARRERA_UNIV = false;
            FCargoActCurric.ID_CARRERAS  = 0;
            FCargoActCurric.OTRA_CARRERA = edtCargoActualCursoPosgradoOtraCarrera.Text;
        }
        FCargoActCurric.ACTIVIDAD_CURRICULAR = edtCargoActualCursoPosgradoActividadCurricular.Text;
        FCargoActCurric.ANIO_INICIO          = int.Parse(edtCargoActualCursoPosgradoAnioInicio.Text);
        FCargoActCurric.PLAN_ESTUDIOS        = int.Parse(edtCargoActualCursoPosgradoPlanEstudios.Text);
        FGestor.GuardarObjeto(FCargoActCurric);
        actualizarDatosCargosCarrerasPosgrado();
        sgwNucleo.Pagina.CerrarPopup(popCargoActualCursoPosgrado);
    }
Пример #10
0
    protected void btnModificarTituloPosgrado_Click(object sender, EventArgs e)
    {
        if (grdTitulosPosgradoABM.FocusedRowIndex < 0)
        {
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Titulo FTitulo = new Titulo();

        FGestor.ObtenerObjeto(FTitulo, grdTitulosPosgradoABM);
        Session["OperacionDetalle"]          = "2";
        cmbTitulosPosgradoPais.SelectedValue = FTitulo.ID_PAISES.ToString();
        cmbTitulosPosgradoPais_SelectedIndexChanged(sender, e);
        edtTitulosPosgradoAnioObtencion.Text            = FTitulo.ANIO_OBTENCION.ToString();
        edtTitulosPosgradoOtraInstitucionOtorgante.Text = FTitulo.OTRA_INSTITUCION;
        edtTitulosPosgradoTituloObtenido.Text           = FTitulo.TITULO;
        cmbTitulosPosgradoTipo.SelectedValue            = FTitulo.ID_TIPOS_TITULOS.ToString();
        if (FTitulo.ID_PAISES == 13)
        {
            if (FTitulo.ID_INSTITUCIONES.ToString() != "0")
            {
                cmbTitulosPosgradoInstitucionOtorgante.SelectedValue = FTitulo.ID_INSTITUCIONES.ToString();
            }
        }

        popTitulosPosgrado.ShowOnPageLoad = true;
    }
Пример #11
0
    protected void btnModificarEvaluaciones_Click(object sender, EventArgs e)
    {
        if (grdEvaluaciones.FocusedRowIndex < 0)
        {
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Evaluacion FEvaluacion             = new Evaluacion();

        FGestor.ObtenerObjeto(FEvaluacion, grdEvaluaciones);
        Session["OperacionDetalle"] = "M";


        edtExperienciasEvaluacionLugar.Text = FEvaluacion.LUGAR;
        edtExperienciasEvaluacionFecha.Text = FEvaluacion.LeerFecha("FECHA");

        edtExperienciasEvaluacionOtroTipoEvaluacion.Text       = FEvaluacion.OTRO_TIPO_EVALUACION;
        cmbExperienciasEvaluacionTiposEvaluacion.SelectedValue = FEvaluacion.ID_TIPOS_EVALUACIONES.ToString();
        cmbExperienciasEvaluacionTiposEvaluacion_SelectedIndexChanged(null, null);
        if (FEvaluacion.INSTITUCION_UNIV)
        {
            cmbInstitucion.SelectedValue = FEvaluacion.ID_INSTITUCIONES.ToString();
            edtOtraInstitucion.Text      = "";
        }
        else
        {
            cmbInstitucion.SelectedValue = "-1";
            edtOtraInstitucion.Text      = FEvaluacion.OTRA_INSTITUCION;
        }
        cmbInstitucion_SelectedIndexChanged(null, null);
        popEvaluaciones.ShowOnPageLoad = true;
    }
Пример #12
0
    protected void btnModificarEvaluaciones_Click(object sender, EventArgs e)
    {
        if (grdEvaluaciones.FocusedRowIndex < 0)
        {
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Reunion FReunion = new Reunion();

        FGestor.ObtenerObjeto(FReunion, grdEvaluaciones);
        Session["OperacionDetalle"] = "M";

        edtReunionesCientificasTitulo.Text = FReunion.REUNION;
        edtReunionesCientificasEvento.Text = FReunion.EVENTO;
        edtReunionesCientificasLugar.Text  = FReunion.LUGAR;
        edtReunionesCientificasFecha.Text  = FReunion.LeerFecha("FECHA");
        edtReunionesCientificasOtroTipoParticipacion.Text       = FReunion.OTRO_TIPO_REUNION;
        cmbReunionesCientificasTiposParticipacion.SelectedValue = FReunion.ID_TIPOS_REUNIONES.ToString();
        cmbReunionesCientificasTiposParticipacion_SelectedIndexChanged(null, null);



        //if (FReunion.INSTITUCION_UNIV)
        //{
        //    cmbReunionesCientificasTiposParticipacion.SelectedValue = FReunion.ID_INSTITUCIONES.ToString();
        //    edtReunionesCientificasOtroTipoParticipacion.Text = "";
        //}
        //else
        //{
        //    cmbReunionesCientificasTiposParticipacion.SelectedValue = "-1";
        //    edtReunionesCientificasOtroTipoParticipacion.Text = FReunion.OTRA_INSTITUCION;
        //}

        popEvaluaciones.ShowOnPageLoad = true;
    }
Пример #13
0
    protected void btnModificarOtroTitulo_Click(object sender, EventArgs e)
    {
        if (grdOtrosTitulosABM.FocusedRowIndex < 0)
        {
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Titulo FTitulo = new Titulo();

        FGestor.ObtenerObjeto(FTitulo, grdOtrosTitulosABM);
        Session["OperacionDetalle"]       = "2";
        cmbOtrosTitulosPais.SelectedValue = FTitulo.ID_PAISES.ToString();
        cmbOtrosTitulosPais_SelectedIndexChanged(sender, e);
        edtOtrosTitulosAnioObtencion.Text   = FTitulo.ANIO_OBTENCION.ToString();
        edtOtrosTitulosOtraInstitucion.Text = FTitulo.OTRA_INSTITUCION;
        edtOtrosTitulosTituloObtenido.Text  = FTitulo.TITULO;
        if (FTitulo.ID_PAISES == 13)
        {
            if (FTitulo.ID_INSTITUCIONES.ToString() == "0")
            {
                cmbOtrosTitulosInstitucion.SelectedValue = "-1";
                cmbOtrosTitulosInstitucion_SelectedIndexChanged(sender, e);
            }
            else
            {
                cmbOtrosTitulosInstitucion.SelectedValue = FTitulo.ID_INSTITUCIONES.ToString();
            }
        }
        popOtrosTitulos.ShowOnPageLoad = true;
    }
Пример #14
0
    protected void btnModificarCursosPosgrado_Click(object sender, EventArgs e)
    {
        if (grdCursosPosgrado.FocusedRowIndex < 0)
        {
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor         = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CargoActCurric             FCargoActCurric = new CargoActCurric();

        FGestor.ObtenerObjeto(FCargoActCurric, grdCursosPosgrado);
        Session["OperacionDetalle3"] = "2";
        if (FCargoActCurric.CARRERA_UNIV)
        {
            cmbCargoActualCursoPosgradoCarrera.SelectedValue = FCargoActCurric.ID_CARRERAS.ToString();
            edtCargoActualCursoPosgradoOtraCarrera.Text      = "";
        }
        else
        {
            cmbCargoActualCursoPosgradoCarrera.SelectedValue = "-1";
            edtCargoActualCursoPosgradoOtraCarrera.Text      = FCargoActCurric.OTRA_CARRERA;
        }
        cmbCargoActualCursoPosgradoCarrera_SelectedIndexChanged(sender, e);
        edtCargoActualCursoPosgradoActividadCurricular.Text = FCargoActCurric.ACTIVIDAD_CURRICULAR;
        cmbCargoActualCursoPosgradoTipo.SelectedValue       = FCargoActCurric.ID_TIPOS_CARRERAS.ToString();
        edtCargoActualCursoPosgradoAnioInicio.Text          = FCargoActCurric.ANIO_INICIO.ToString();
        edtCargoActualCursoPosgradoPlanEstudios.Text        = FCargoActCurric.PLAN_ESTUDIOS.ToString();
        popCargoActualCursoPosgrado.ShowOnPageLoad          = true;
    }
Пример #15
0
    protected void actualizarDatos()
    {
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Docente FDocente = new Docente();

        FGestor.ObtenerObjeto(FDocente, int.Parse(Session["ID_DOCENTES"].ToString()));
        edtDocentesOtraInformacion.Text = FDocente.OTRA_INFORMACION;
    }
Пример #16
0
    // Botones General
    protected bool guardar()
    {
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Docente FDocente = new Docente();

        FGestor.ObtenerObjeto(FDocente, int.Parse(Session["ID_DOCENTES"].ToString()));
        FDocente.DESEMPENIO_NO_ACADEMICO = chkDesempenioNoAcademico.Checked;
        return(FGestor.GuardarObjeto(FDocente));
    }
Пример #17
0
 protected void btnCancelarCargo_Click(object sender, EventArgs e)
 {
     sgwMulticapa.Objetos.CONEAU.Instructivos.CargoDocente FCargoDocente = new sgwMulticapa.Objetos.CONEAU.Instructivos.CargoDocente();
     sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
     FGestor.ObtenerObjeto(FCargoDocente, grdCargos);
     txtEscribir.Text           = FCargoDocente.OBSERVACIONES;
     popEscribir.ShowOnPageLoad = true;
     sgwNucleo.Pagina.CerrarPopup(popCargosDocentes);
 }
Пример #18
0
 protected void btnCancelarCargo_Click(object sender, EventArgs e)
 {
     sgwMulticapa.Objetos.CONEAU.Instructivos.CargoDocente FCargoDocente = new sgwMulticapa.Objetos.CONEAU.Instructivos.CargoDocente();
     sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
     FGestor.ObtenerObjeto(FCargoDocente, int.Parse(Request["id"].ToString()));
     txtEscribir.Text            = FCargoDocente.OBSERVACIONES;
     pnlVinculacionCargo.Visible = false;
     pnlEscribir.Visible         = true;
 }
Пример #19
0
    protected bool guardar()
    {
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Docente FDocente = new Docente();

        FGestor.ObtenerObjeto(FDocente, int.Parse(Session["ID_DOCENTES"].ToString()));
        FDocente.CARRERA_DOCENTE = chkCarreraDocente.Checked;
        return(FGestor.GuardarObjeto(FDocente));
    }
Пример #20
0
    // Botones General
    protected bool guardar()
    {
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Docente FDocente = new Docente();

        FGestor.ObtenerObjeto(FDocente, int.Parse(Session["ID_DOCENTES"].ToString()));
        FDocente.OTRA_INFORMACION = edtDocentesOtraInformacion.Text;
        return(FGestor.GuardarObjeto(FDocente));
    }
Пример #21
0
 protected void btnAceptarCargo_Click(object sender, EventArgs e)
 {
     sgwMulticapa.Objetos.CONEAU.Instructivos.CargoDocente FCargoDocente = new sgwMulticapa.Objetos.CONEAU.Instructivos.CargoDocente();
     sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
     FGestor.ObtenerObjeto(FCargoDocente, int.Parse(Request["id"].ToString()));
     FCargoDocente.ID_TIPOS_ESTADOS_CARGOS = 2;
     FCargoDocente.FECHA_REVISION_DOC      = DateTime.Now;
     FCargoDocente.OBSERVACIONES           = "";
     FGestor.GuardarObjeto(FCargoDocente);
     Response.Redirect("default.aspx");
 }
Пример #22
0
    // Botones Popup Titulos Posgrado
    protected void btnGuardarTituloPosgrado_Click(object sender, EventArgs e)
    {
        // Requeridos
        string FEstado = "";

        if (!sgwNucleo.Funciones.VerificarRequerido(edtTitulosPosgradoTituloObtenido.Text))
        {
            FEstado = "la denominación del título";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequeridoInt(edtTitulosPosgradoAnioObtencion.Text))
        {
            FEstado = "el año de obtención";
        }
        else
        if ((pnlTitulosPosgradoOtraInstitucionOtorgante.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtTitulosPosgradoOtraInstitucionOtorgante.Text)))
        {
            FEstado = "la institución otorgante";
        }
        if (FEstado != "")
        {
            sgwNucleo.Pagina.MostrarEstado("Debe completar " + FEstado + ".", 1);
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Titulo FTitulo = new Titulo();

        if (Session["OperacionDetalle"].ToString() == "1")
        {
            FTitulo.ID_DOCENTES = int.Parse(Session["ID_DOCENTES"].ToString());
        }
        else
        {
            FGestor.ObtenerObjeto(FTitulo, grdTitulosPosgradoABM);
        }
        FTitulo.ID_TIPOS_TITULOS = int.Parse(cmbTitulosPosgradoTipo.SelectedValue);
        FTitulo.ID_PAISES        = int.Parse(cmbTitulosPosgradoPais.SelectedValue);
        FTitulo.ANIO_OBTENCION   = int.Parse(edtTitulosPosgradoAnioObtencion.Text);
        FTitulo.TITULO           = edtTitulosPosgradoTituloObtenido.Text;
        if (FTitulo.ID_PAISES == 13)
        {
            FTitulo.ID_INSTITUCIONES = int.Parse(cmbTitulosPosgradoInstitucionOtorgante.SelectedValue);
            FTitulo.OTRA_INSTITUCION = "";
        }
        else
        {
            FTitulo.ID_INSTITUCIONES = 0;
            FTitulo.OTRA_INSTITUCION = edtTitulosPosgradoOtraInstitucionOtorgante.Text;
        }
        FGestor.GuardarObjeto(FTitulo);
        actualizarDatosTitulosPosgrado();
        actualizarTituloMaximo();
        sgwNucleo.Pagina.CerrarPopup(popTitulosPosgrado);
    }
Пример #23
0
 protected void btnAceptarCargo_Click(object sender, EventArgs e)
 {
     sgwMulticapa.Objetos.CONEAU.Instructivos.CargoDocente FCargoDocente = new sgwMulticapa.Objetos.CONEAU.Instructivos.CargoDocente();
     sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
     FGestor.ObtenerObjeto(FCargoDocente, grdCargos);
     FCargoDocente.ID_TIPOS_ESTADOS_CARGOS = 2;
     FCargoDocente.FECHA_REVISION_DOC      = DateTime.Now;
     FCargoDocente.OBSERVACIONES           = "";
     FGestor.GuardarObjeto(FCargoDocente);
     sgwNucleo.Pagina.CerrarPopup(popCargosDocentes);
     actualizarVinculaciones();
 }
Пример #24
0
    protected void actualizarVinculacionesOtras()
    {
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        string  FCondicion = "ID_USUARIOS = " + Session["UsuarioID"].ToString();
        Docente FDocente   = (Docente)FGestor.ObtenerObjeto(typeof(Docente), FCondicion);

        if (FDocente != null)
        {
            grdVinculacionesO.DataSource = FGestor.LeerSQL("SELECT * FROM SIS_INSTRUCTIVOS.Q_OTRAS_VINCULACIONES_HIST WHERE ID_INSTITUCIONES <> 1 AND ID_DOCENTES = " + FDocente.ID);
            grdVinculacionesO.DataBind();
        }
    }
Пример #25
0
    //protected void verificarCurriculumCvar()
    //{
    //    btnAprobar.Visible = true;
    //    btnAprobarVin.Visible = true;
    //    btnRechazarVin.Visible = true;
    //    pnlNoAnda.Visible = false;
    //    try
    //    {
    //        WebProxy wp;
    //        if (sgwNucleo.Funciones.EjecucionDesdeIDE())
    //        {
    //            wp = new WebProxy("10.0.0.1:8080", true);
    //            wp.Credentials = new NetworkCredential("AdminAD", "USRobotic");
    //        }
    //        else
    //        {
    //            wp = new WebProxy("172.16.0.1:8080", true);
    //            wp.Credentials = new NetworkCredential("adminweb", "Coneau1391CONEAUGlobal");
    //        }

    //        string FURL = "http://168.83.4.6:8080/services/curriculum/datosPersonales/identificacion/" + Session["CUIT"].ToString().Replace("-", "");
    //        HttpWebRequest wrua = (HttpWebRequest)WebRequest.Create(FURL);
    //        wrua.UserAgent = "Mozilla/5.0";
    //        wrua.Accept = "application/xml, application/xhtml+xml, */*; q=0.5 ";
    //        wrua.Method = "GET";
    //        wrua.ContentType = "text/xml";
    //        wrua.Proxy = wp;
    //        HttpWebResponse respua = (HttpWebResponse)wrua.GetResponse();
    //        StreamReader respuaReader = new StreamReader(respua.GetResponseStream());
    //        string mensaje = respuaReader.ReadToEnd();
    //        if (mensaje.Contains("No se encontro curriculum con")){
    //            lblCUIT.Text = Session["CUIT"].ToString();
    //            pnlNoAnda.Visible = true;
    //        }
    //        else {
    //            pnlNoAnda.Visible = false;
    //        }

    //    }
    //    catch
    //    {
    //        lblCUIT.Text = Session["CUIT"].ToString();
    //        pnlNoAnda.Visible = true;
    //    }

    //}

    //protected void btnAbrirFicha_Click(object sender, EventArgs e)
    //{
    //    if (Session["CVAR"].ToString() == "S")
    //        Response.Redirect("http://cvar.sicytar.mincyt.gob.ar/auth/");
    //    else
    //        Response.Redirect("abm-p1.aspx");
    //}

    //protected void btnCrearCVAR_Click(object sender, EventArgs e)
    //{
    //    Response.Redirect("http://cvar.sicytar.mincyt.gob.ar/auth/newreg.jsp");
    //}



    //protected void btnImportarFicha_Click(object sender, EventArgs e)
    //{
    //    Response.Redirect("importar.aspx");
    //}

    protected void actualizarVinculaciones()
    {
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        string  FCondicion = "ID_USUARIOS = " + Session["UsuarioID"].ToString();
        Docente FDocente   = (Docente)FGestor.ObtenerObjeto(typeof(Docente), FCondicion);

        if (FDocente != null)
        {
            grdCargos.DataSource = FGestor.LeerSQL("SELECT * FROM SIS_INSTRUCTIVOS.Q_CARGOS_DOCENTES WHERE ID_ESTADOS_PRESENTACIONES IN (2,4) AND ID_DOCENTES = " + FDocente.ID);
            grdCargos.DataBind();
        }
    }
Пример #26
0
    protected void btnEliminarCargoNoAcademicoP_Click(object sender, EventArgs e)
    {
        if (grdCargosNoAcademicosABMP.FocusedRowIndex < 0)
        {
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor          = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CargoNoDocente             FCargoNoDocenteP = new CargoNoDocente();

        FGestor.ObtenerObjeto(FCargoNoDocenteP, grdCargosNoAcademicosABMP);
        FGestor.EliminarObjeto(FCargoNoDocenteP);
        actualizarDatosCargoNoAcademicoP();
    }
Пример #27
0
    protected void btnEliminarEvaluaciones_Click(object sender, EventArgs e)
    {
        if (grdEvaluaciones.FocusedRowIndex < 0)
        {
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Reunion FReunion = new Reunion();

        FGestor.ObtenerObjeto(FReunion, grdEvaluaciones);
        FGestor.EliminarObjeto(FReunion);
        actualizarDatosEvaluaciones();
    }
Пример #28
0
    protected void btnEliminarCargosHospitalarios_Click(object sender, EventArgs e)
    {
        if (grdCargosHospitalarios.FocusedRowIndex < 0)
        {
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CargoHospitalario          FCargosHospitalarios = new CargoHospitalario();

        FGestor.ObtenerObjeto(FCargosHospitalarios, grdCargosHospitalarios);
        FGestor.EliminarObjeto(FCargosHospitalarios);
        actualizarDatosCargosHospitalarios();
    }
Пример #29
0
    protected void btnEliminarCargoDocentePasado_Click(object sender, EventArgs e)
    {
        if (grdCargosDocentesPasado.FocusedRowIndex < 0)
        {
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CargoDocente FCargoDocente         = new CargoDocente();

        FGestor.ObtenerObjeto(FCargoDocente, grdCargosDocentesPasado);
        FGestor.EliminarObjeto(FCargoDocente);
        actualizarDatosCargosPasados();
    }
Пример #30
0
    protected void btnEliminarCursosPosgrado_Click(object sender, EventArgs e)
    {
        if (grdCursosPosgrado.FocusedRowIndex < 0)
        {
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor         = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CargoActCurric             FCargoActCurric = new CargoActCurric();

        FGestor.ObtenerObjeto(FCargoActCurric, grdCursosPosgrado);
        FGestor.EliminarObjeto(FCargoActCurric);
        actualizarDatosCargosCarrerasPosgrado();
    }