Пример #1
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));
    }
Пример #2
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));
    }
Пример #3
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);
    }
Пример #4
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));
    }
Пример #5
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));
    }
Пример #6
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));
    }
Пример #7
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);
    }
Пример #8
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");
 }
Пример #9
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();
 }
Пример #10
0
 protected void btnAceptarEscribir_Click(object sender, EventArgs e)
 {
     if (!sgwNucleo.Funciones.VerificarRequerido(txtEscribir.Text))
     {
         sgwNucleo.Pagina.MostrarEstado("Debe ingresar el motivo del rechazo.", 1);
         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);
     FCargoDocente.ID_TIPOS_ESTADOS_CARGOS = 3;
     FCargoDocente.FECHA_REVISION_DOC      = DateTime.Now;
     FCargoDocente.OBSERVACIONES           = txtEscribir.Text;
     FGestor.GuardarObjeto(FCargoDocente);
     sgwNucleo.Pagina.CerrarPopup(popEscribir);
     actualizarVinculaciones();
 }
Пример #11
0
 protected void btnAceptarEscribir_Click(object sender, EventArgs e)
 {
     if (!sgwNucleo.Funciones.VerificarRequerido(txtEscribir.Text))
     {
         sgwNucleo.Pagina.MostrarEstado("Debe ingresar el motivo del rechazo.", 1);
         pnlVinculacionCargo.Visible = false;
         pnlEscribir.Visible         = true;
         return;
     }
     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 = 3;
     FCargoDocente.FECHA_REVISION_DOC      = DateTime.Now;
     FCargoDocente.OBSERVACIONES           = txtEscribir.Text;
     FGestor.GuardarObjeto(FCargoDocente);
     pnlVinculacionCargo.Visible = true;
     pnlEscribir.Visible         = false;
     Response.Redirect("default.aspx");
 }
Пример #12
0
    protected void btnAceptarEvaluaciones_Click(object sender, EventArgs e)
    {
        // Requeridos
        string FEstado = "";

        if ((pnlOtraInstitucion.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtOtraInstitucion.Text)))
        {
            FEstado = "la institución";
        }
        else

        if (!sgwNucleo.Funciones.VerificarRequerido(edtExperienciasEvaluacionLugar.Text))
        {
            FEstado = "el lugar";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtExperienciasEvaluacionFecha.Text))
        {
            FEstado = "la fecha";
        }
        else
        if ((pnlExperienciasEvaluacionOtroTipoEvaluacion.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtExperienciasEvaluacionOtroTipoEvaluacion.Text)))
        {
            FEstado = "el tipo de evaluación";
        }


        if (FEstado != "")
        {
            sgwNucleo.Pagina.MostrarEstado("Debe completar " + FEstado + ".", 1);
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Evaluacion FEvaluacion             = new Evaluacion();

        if (Session["OperacionDetalle"].ToString() == "M")
        {
            FGestor.ObtenerObjeto(FEvaluacion, int.Parse(grdEvaluaciones.GetRowValues(grdEvaluaciones.FocusedRowIndex, "ID_EVALUACIONES").ToString()));
        }
        FEvaluacion.ID_DOCENTES = int.Parse(Session["ID_DOCENTES"].ToString());
        FEvaluacion.GuardarFecha("FECHA", edtExperienciasEvaluacionFecha.Text);
        FEvaluacion.LUGAR = edtExperienciasEvaluacionLugar.Text;
        if (pnlExperienciasEvaluacionOtroTipoEvaluacion.Visible)
        {
            FEvaluacion.OTRO_TIPO_EVALUACION  = edtExperienciasEvaluacionOtroTipoEvaluacion.Text;
            FEvaluacion.ID_TIPOS_EVALUACIONES = int.Parse(cmbExperienciasEvaluacionTiposEvaluacion.SelectedValue.ToString());
        }
        else
        {
            FEvaluacion.ID_TIPOS_EVALUACIONES = int.Parse(cmbExperienciasEvaluacionTiposEvaluacion.SelectedValue);
        }


        FEvaluacion.ID_INSTITUCIONES = int.Parse(cmbInstitucion.SelectedValue.ToString());
        if (cmbInstitucion.SelectedValue == "-1")
        {
            FEvaluacion.INSTITUCION_UNIV = false;
            FEvaluacion.ID_INSTITUCIONES = 0;
            FEvaluacion.OTRA_INSTITUCION = edtOtraInstitucion.Text;
        }
        else
        {
            FEvaluacion.INSTITUCION_UNIV = true;
            FEvaluacion.ID_INSTITUCIONES = int.Parse(cmbInstitucion.SelectedValue);
            FEvaluacion.OTRA_INSTITUCION = "";
        }



        FGestor.GuardarObjeto(FEvaluacion);
        actualizarDatosEvaluaciones();
        sgwNucleo.Pagina.CerrarPopup(popEvaluaciones);
    }
Пример #13
0
    // Botones Popup Cargos Docentes Pasado
    protected void btnGuardarCargoDocentePasado_Click(object sender, EventArgs e)
    {
        // Requeridos
        string FEstado = "";

        if ((pnlCargoPasadoOtraInstitucion.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtCargoPasadoOtraInstitucion.Text)))
        {
            FEstado = "la institución";
        }
        else
        if ((pnlCargoPasadoOtraUA.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtCargoPasadoOtraUA.Text)))
        {
            FEstado = "la unidad académica";
        }
        else
        if ((pnlCargoPasadoOtroCargo.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtCargosDocentesPasadoOtroCargo.Text)))
        {
            FEstado = "el tipo de cargo";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtCargosDocentesPasadoFechaInicio.Text))
        {
            FEstado = "la fecha de inicio";
        }
        else
        if ((pnlCargosDocentesPasadoOtraDisciplina.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtCargosDocentesPasadoOtraDisciplina.Text)))
        {
            FEstado = "la disciplina";
        }
        else
        if ((pnlCargosDocentesPasadoOtraSubdisciplina.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtCargosDocentesPasadoOtraSubdisciplina.Text)))
        {
            FEstado = "la subdisciplina";
        }

        if (FEstado != "")
        {
            sgwNucleo.Pagina.MostrarEstado("Debe completar " + FEstado + ".", 1);
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CargoDocente FCargoDocente         = new CargoDocente();

        if (Session["OperacionDetalle"].ToString() == "1")
        {
            FCargoDocente.ID_DOCENTES = int.Parse(Session["ID_DOCENTES"].ToString());
        }
        else
        {
            FGestor.ObtenerObjeto(FCargoDocente, grdCargosDocentesPasado);
        }
        if (cmbCargosDocentesPasadoInstitucion.SelectedValue != "-1")
        {
            FCargoDocente.INSTITUCION_UNIV = true;
            FCargoDocente.ID_INSTITUCIONES = int.Parse(cmbCargosDocentesPasadoInstitucion.SelectedValue);
            FCargoDocente.OTRA_INSTITUCION = "";
        }
        else
        {
            FCargoDocente.INSTITUCION_UNIV = false;
            FCargoDocente.ID_INSTITUCIONES = 0;
            FCargoDocente.OTRA_INSTITUCION = edtCargoPasadoOtraInstitucion.Text;
        }
        if (cmbCargosDocentesPasadoUA.SelectedValue != "-1")
        {
            FCargoDocente.UA_UNIV = true;
            FCargoDocente.ID_UNIDADES_ACADEMICAS = int.Parse(cmbCargosDocentesPasadoUA.SelectedValue);
            FCargoDocente.OTRA_UNIDAD_ACADEMICA  = "";
        }
        else
        {
            FCargoDocente.UA_UNIV = false;
            FCargoDocente.ID_UNIDADES_ACADEMICAS = 0;
            FCargoDocente.OTRA_UNIDAD_ACADEMICA  = edtCargoPasadoOtraUA.Text;
        }
        FCargoDocente.ID_TIPOS_CARGOS = int.Parse(cmbCargosDocentesPasadoCargo.SelectedValue);
        if (cmbCargosDocentesPasadoCargo.SelectedValue == "1000")
        {
            FCargoDocente.OTRO_TIPO_CARGO = edtCargosDocentesPasadoOtroCargo.Text;
        }
        else
        {
            FCargoDocente.OTRO_TIPO_CARGO = "";
        }
        FCargoDocente.ID_TIPOS_DESIGNACIONES = int.Parse(cmbCargosDocentesPasadoDesignacion.SelectedValue);
        FCargoDocente.ID_SUBDISCIPLINAS      = int.Parse(cmbCargosDocentesPasadoSubdisciplina.SelectedValue);
        if (pnlCargosDocentesPasadoOtraDisciplina.Visible)
        {
            FCargoDocente.OTRA_DISCIPLINA = edtCargosDocentesPasadoOtraDisciplina.Text;
        }
        else
        {
            FCargoDocente.OTRA_DISCIPLINA = "";
        }
        if (pnlCargosDocentesPasadoOtraSubdisciplina.Visible)
        {
            FCargoDocente.OTRA_SUBDISCIPLINA = edtCargosDocentesPasadoOtraSubdisciplina.Text;
        }
        else
        {
            FCargoDocente.OTRA_SUBDISCIPLINA = "";
        }
        FCargoDocente.DEDICACION_SEMANAL      = int.Parse(edtCargosDocentesPasadoDedicacionSemanal.Text);
        FCargoDocente.ID_TIPOS_DURACIONES_DED = int.Parse(cmbCargosDocentesPasadoSemanasAnual.Text);
        FCargoDocente.GuardarFecha("FECHA_INICIO", edtCargosDocentesPasadoFechaInicio.Text);
        FCargoDocente.GuardarFecha("FECHA_FINALIZACION", edtCargosDocentesPasadoFechaFinalizacion.Text);
        FGestor.GuardarObjeto(FCargoDocente, true);
        actualizarDatosCargosActuales();
        actualizarDatosCargosPasados();
        sgwNucleo.Pagina.CerrarPopup(popCargosDocentesPasado);
    }
Пример #14
0
    // Botones Popup Carrera formacion docente
    protected void btnGuardarCarreraFormacionDocente_Click(object sender, EventArgs e)
    {
        // Requeridos
        string FEstado = "";

        if (!sgwNucleo.Funciones.VerificarRequerido(edtCarrerasFormacionDocenteTitulo.Text))
        {
            FEstado = "la denominación del título";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequeridoInt(edtCarrerasFormacionDocenteAnioObtencion.Text))
        {
            FEstado = "el año de obtención";
        }
        else
        if ((pnlCarrerasFormacionDocenteOtraInst.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtCarrerasFormacionDocenteOtraInst.Text)))
        {
            FEstado = "la institución";
        }
        else
        if ((pnlCarrerasFormacionDocenteOtraUA.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtCarrerasFormacionDocenteOtraUA.Text)))
        {
            FEstado = "la unidad académica";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequeridoInt(edtCarrerasFormacionDocenteDuracion.Text))
        {
            FEstado = "la duración de la carrera";
        }
        if (FEstado != "")
        {
            sgwNucleo.Pagina.MostrarEstado("Debe completar " + FEstado + ".", 1);
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor         = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CarreraDocente             FCarreraDocente = new CarreraDocente();

        if (Session["OperacionDetalle"].ToString() == "1")
        {
            FCarreraDocente.ID_DOCENTES = int.Parse(Session["ID_DOCENTES"].ToString());
        }
        else
        {
            FGestor.ObtenerObjeto(FCarreraDocente, grdCarreraFormacionDocenteABM);
        }
        FCarreraDocente.ANIO_OBTENCION   = int.Parse(edtCarrerasFormacionDocenteAnioObtencion.Text);
        FCarreraDocente.TITULO           = edtCarrerasFormacionDocenteTitulo.Text;
        FCarreraDocente.DURACION_CARRERA = int.Parse(edtCarrerasFormacionDocenteDuracion.Text);
        if (cmbCarrerasFormacionDocenteInstituciones.SelectedValue == "-1")
        {
            FCarreraDocente.INSTITUCION_UNIV = false;
            FCarreraDocente.ID_INSTITUCIONES = 0;
            FCarreraDocente.OTRA_INSTITUCION = edtCarrerasFormacionDocenteOtraInst.Text;
        }
        else
        {
            FCarreraDocente.INSTITUCION_UNIV = true;
            FCarreraDocente.ID_INSTITUCIONES = int.Parse(cmbCarrerasFormacionDocenteInstituciones.SelectedValue);
            FCarreraDocente.OTRA_INSTITUCION = "";
        }
        if (cmbCarrerasFormacionDocenteUA.SelectedValue == "-1")
        {
            FCarreraDocente.UA_UNIV = false;
            FCarreraDocente.ID_UNIDADES_ACADEMICAS = 0;
            FCarreraDocente.OTRA_UNIDAD_ACADEMICA  = edtCarrerasFormacionDocenteOtraUA.Text;
        }
        else
        {
            FCarreraDocente.UA_UNIV = true;
            FCarreraDocente.ID_UNIDADES_ACADEMICAS = int.Parse(cmbCarrerasFormacionDocenteUA.SelectedValue);
            FCarreraDocente.OTRA_UNIDAD_ACADEMICA  = "";
        }
        FGestor.GuardarObjeto(FCarreraDocente);
        actualizarDatosCarreraDocente();
        sgwNucleo.Pagina.CerrarPopup(popCarrerasFormacionDocente);
    }
Пример #15
0
    // Botones Popup Cargos Desempeniados
    protected void btnAceptarCargoNoAcademicoP_Click(object sender, EventArgs e)
    {
        // Requeridos
        string FEstado = "";

        if ((pnlCargoNoAcademicoInstitucionP.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtOtraCargoNoAcademicoInstitucionP.Text)))
        {
            FEstado = "la institución";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtCargosNoAcademicosCargoFuncionP.Text))
        {
            FEstado = "el cargo";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequeridoInt(edtCargosNoAcademicosHsRelojSemanalesP.Text))
        {
            FEstado = "la dedicación semanal en horas reloj";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtCargosNoAcademicosFechaInicioP.Text))
        {
            FEstado = "la fecha de inicio";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtCargosNoAcademicosFuncionesP.Text))
        {
            FEstado = "las funciones";
        }
        else
        if ((int.Parse(edtCargosNoAcademicosHsRelojSemanalesP.Text) < 1) || (int.Parse(edtCargosNoAcademicosHsRelojSemanalesP.Text) > 60))
        {
            sgwNucleo.Pagina.MostrarEstado("La dedicación semanal ingresada no es válida.", 1);
            return;
        }
        if ((pnlCargosNoAcademicosOtraDisciplinaP.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtCargosNoAcademicosOtraDisciplinaP.Text)))
        {
            FEstado = "la disciplina";
        }
        else
        if ((pnlCargosNoAcademicosOtraSubdisciplinaP.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtCargosNoAcademicosOtraSubdisciplinaP.Text)))
        {
            FEstado = "la subdisciplina";
        }
        if (FEstado != "")
        {
            sgwNucleo.Pagina.MostrarEstado("Debe completar " + FEstado + ".", 1);
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor          = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CargoNoDocente             FCargoNoDocenteP = new CargoNoDocente();

        if (Session["OperacionDetalle"].ToString() == "M")
        {
            FGestor.ObtenerObjeto(FCargoNoDocenteP, int.Parse(grdCargosNoAcademicosABMP.GetRowValues(grdCargosNoAcademicosABMP.FocusedRowIndex, "ID_CARGOS_NO_DOCENTES").ToString()));
        }
        else
        {
            FCargoNoDocenteP.ID_DOCENTES = int.Parse(Session["ID_DOCENTES"].ToString());
        }
        FCargoNoDocenteP.ID_INSTITUCIONES = int.Parse(cmbCargoNoAcademicoInstitucionP.SelectedValue.ToString());
        FCargoNoDocenteP.GuardarFecha("FECHA_INICIO", edtCargosNoAcademicosFechaInicioP.Text);
        FCargoNoDocenteP.GuardarFecha("FECHA_FINALIZACION", edtCargosNoAcademicosFechaFinalizacionP.Text);
        FCargoNoDocenteP.CARGO = edtCargosNoAcademicosCargoFuncionP.Text;
        FCargoNoDocenteP.DEDICACION_SEMANAL      = int.Parse(edtCargosNoAcademicosHsRelojSemanalesP.Text);
        FCargoNoDocenteP.FUNCIONES               = edtCargosNoAcademicosFuncionesP.Text;
        FCargoNoDocenteP.ID_TIPOS_DURACIONES_DED = int.Parse(cmbCargosNoAcademicosSemanasAnualP.SelectedValue);
        FCargoNoDocenteP.ID_SUBDISCIPLINAS       = int.Parse(cmbCargosNoAcademicosSubdisciplinaP.SelectedValue);
        if (pnlCargosNoAcademicosOtraDisciplinaP.Visible)
        {
            FCargoNoDocenteP.OTRA_DISCIPLINA = edtCargosNoAcademicosOtraDisciplinaP.Text;
        }
        if (pnlCargosNoAcademicosOtraSubdisciplinaP.Visible)
        {
            FCargoNoDocenteP.OTRA_SUBDISCIPLINA = edtCargosNoAcademicosOtraSubdisciplinaP.Text;
        }
        if (cmbCargoNoAcademicoInstitucionP.SelectedValue == "-1")
        {
            FCargoNoDocenteP.INSTITUCION_UNIV = false;
            FCargoNoDocenteP.ID_INSTITUCIONES = 0;
            FCargoNoDocenteP.OTRA_INSTITUCION = edtOtraCargoNoAcademicoInstitucionP.Text;
        }
        else
        {
            FCargoNoDocenteP.INSTITUCION_UNIV = true;
            FCargoNoDocenteP.ID_INSTITUCIONES = int.Parse(cmbCargoNoAcademicoInstitucionP.SelectedValue);
            FCargoNoDocenteP.OTRA_INSTITUCION = "";
        }
        FGestor.GuardarObjeto(FCargoNoDocenteP);
        actualizarDatosCargoNoAcademico();
        actualizarDatosCargoNoAcademicoP();
        sgwNucleo.Pagina.CerrarPopup(popCargosNoAcademicosP);
    }
Пример #16
0
    // Botones Popup Actividades Hospitalarias
    protected void btnAceptarCargosHospitalarios_Click(object sender, EventArgs e)
    {
        // Requeridos
        string FEstado = "";


        if ((pnlCargosHospitalarios.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtCargosHospitalariosInstitucionOtra.Text)))
        {
            FEstado = "la institución";
        }
        else

        if (!sgwNucleo.Funciones.VerificarRequerido(edtActividadesHospitalariasServicio.Text))
        {
            FEstado = "el servicio";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtActividadesHospitalariasCargoFuncion.Text))
        {
            FEstado = "el cargo/función";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtCargosHospitalariosFechaInicio.Text))
        {
            FEstado = "la fecha de inicio";
        }
        if (FEstado != "")
        {
            sgwNucleo.Pagina.MostrarEstado("Debe completar " + FEstado + ".", 1);
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CargoHospitalario          FCargosHospitalarios = new CargoHospitalario();

        if (Session["OperacionDetalle"].ToString() == "M")
        {
            FGestor.ObtenerObjeto(FCargosHospitalarios, int.Parse(grdCargosHospitalarios.GetRowValues(grdCargosHospitalarios.FocusedRowIndex, "ID_CARGOS_HOSPITALARIOS").ToString()));
        }
        else
        {
            FCargosHospitalarios.ID_DOCENTES = int.Parse(Session["ID_DOCENTES"].ToString());
        }
        FCargosHospitalarios.GuardarFecha("FECHA_INICIO", edtCargosHospitalariosFechaInicio.Text);
        FCargosHospitalarios.GuardarFecha("FECHA_FINALIZACION", edtCargosHospitalariosFechaFinalizacion.Text);
        FCargosHospitalarios.AMBITO_HOSPITALARIO = edtActividadesHospitalariasServicio.Text;
        FCargosHospitalarios.CARGO = edtActividadesHospitalariasCargoFuncion.Text;
        if (cmbCargosHospitalariosInstitucion.SelectedValue == "-1")
        {
            FCargosHospitalarios.INSTITUCION_UNIV = false;
            FCargosHospitalarios.ID_INSTITUCIONES = 0;
            FCargosHospitalarios.OTRA_INSTITUCION = edtCargosHospitalariosInstitucionOtra.Text;
        }
        else
        {
            FCargosHospitalarios.INSTITUCION_UNIV = true;
            FCargosHospitalarios.ID_INSTITUCIONES = int.Parse(cmbCargosHospitalariosInstitucion.SelectedValue);
            FCargosHospitalarios.OTRA_INSTITUCION = "";
        }
        FGestor.GuardarObjeto(FCargosHospitalarios);
        actualizarDatosCargosHospitalarios();
        sgwNucleo.Pagina.CerrarPopup(popCargosHospitalarios);
    }
Пример #17
0
    // Botones General
    protected bool guardar()
    {
        string FEstado = "";

        if (!sgwNucleo.Funciones.VerificarRequerido(edtDocenteApellido.Text))
        {
            FEstado = "el apellido";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtDocenteNombre1.Text))
        {
            FEstado = "el primer nombre";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtDocenteFechaNacimiento.Text))
        {
            FEstado = "la fecha de nacimiento";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtDocenteDocumento.Text))
        {
            FEstado = "el número de documento";
        }
        else
        if ((pnlCUIT1.Visible) && ((!sgwNucleo.Funciones.VerificarRequerido(edtDocenteCuit.Text))))
        {
            FEstado = "el número de CUIT/CUIL";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtDocenteCalle.Text))
        {
            FEstado = "la calle";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtDocenteNumero.Text))
        {
            FEstado = "el número";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtDocenteCodigoPostal.Text))
        {
            FEstado = "el código postal";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtDocenteLocalidad.Text))
        {
            FEstado = "la localidad";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtDocenteTelefono.Text))
        {
            FEstado = "el teléfono";
        }
        else
        if (cmbDocentePais.SelectedValue == "13")
        {
            if ((cmbDepartamento.SelectedIndex < 0) || (int.Parse(cmbDepartamento.SelectedValue) < 0))
            {
                FEstado = "el departamento/partido";
            }
        }

        if ((pnlCUIT1.Visible) && (!sgwNucleo.Funciones.VerificarCUIT(edtDocenteCuit.Text)))
        {
            sgwNucleo.Pagina.MostrarEstado("El CUIT ingresado no es válido.", 1);
            return(false);
        }
        if (FEstado != "")
        {
            sgwNucleo.Pagina.MostrarEstado("Debe completar " + FEstado + ".", 1);
            return(false);
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        string FCondicion;

        if (Session["ID_DOCENTES"] != null)
        {
            FCondicion = "ID_DOCENTES = " + Session["ID_DOCENTES"].ToString();
        }
        else
        {
            FCondicion = "ID_USUARIOS = " + Session["UsuarioID"].ToString();
        }
        Docente FDocente = (Docente)FGestor.ObtenerObjeto(typeof(Docente), FCondicion);

        if (FDocente == null)
        {
            FDocente             = new Docente();
            FDocente.ID_USUARIOS = int.Parse(Session["UsuarioID"].ToString());
        }
        FDocente.APELLIDO       = edtDocenteApellido.Text.Trim();
        FDocente.PRIMER_NOMBRE  = edtDocenteNombre1.Text.Trim();
        FDocente.SEGUNDO_NOMBRE = edtDocenteNombre2.Text.Trim();
        FDocente.SEXO           = cmbDocenteSexo.SelectedValue;
        FDocente.GuardarFecha("FECHA_NACIMIENTO", edtDocenteFechaNacimiento.Text);
        FDocente.ID_TIPOS_DOCUMENTO = int.Parse(cmbTipoDocumento.SelectedValue);
        FDocente.NUMERO_DOCUMENTO   = edtDocenteDocumento.Text;
        FDocente.CUIT          = edtDocenteCuit.Text;
        FDocente.CALLE         = edtDocenteCalle.Text;
        FDocente.NUMERO        = edtDocenteNumero.Text;
        FDocente.PISO          = edtDocentePiso.Text;
        FDocente.DEPARTAMENTO  = edtDocenteDepartamento.Text;
        FDocente.LOCALIDAD     = edtDocenteLocalidad.Text;
        FDocente.CODIGO_POSTAL = edtDocenteCodigoPostal.Text;
        FDocente.ID_PAISES     = int.Parse(cmbDocentePais.SelectedValue);
        Session["ID_PAISES"]   = cmbDocentePais.SelectedValue;
        FGestor.EscribirSQL("UPDATE SIS_MAINFRAME.USUARIOS SET SEXO = '" + FDocente.SEXO +
                            "' WHERE ID_USUARIOS = " + Session["UsuarioID"].ToString());
        if (cmbDocentePais.SelectedValue == "13")
        {
            FDocente.ID_ESTADOS       = int.Parse(cmbDocenteProvincia.SelectedValue);
            FDocente.ID_DEPARTAMENTOS = int.Parse(cmbDepartamento.SelectedValue);
        }
        FDocente.TELEFONO = edtDocenteTelefono.Text;
        return(FGestor.GuardarObjeto(FDocente));
    }
Пример #18
0
    protected void btnAceptarEvaluaciones_Click(object sender, EventArgs e)
    {
        // Requeridos
        string FEstado = "";



        if (!sgwNucleo.Funciones.VerificarRequerido(edtReunionesCientificasTitulo.Text))
        {
            FEstado = "el título";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtReunionesCientificasEvento.Text))
        {
            FEstado = "el evento";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtReunionesCientificasLugar.Text))
        {
            FEstado = "el lugar";
        }

        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtReunionesCientificasFecha.Text))
        {
            FEstado = "la fecha";
        }
        else
        if ((pnlReunionesCientificasOtroTipoParticipacion.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtReunionesCientificasOtroTipoParticipacion.Text)))
        {
            FEstado = "el tipo de participación";
        }


        if (FEstado != "")
        {
            sgwNucleo.Pagina.MostrarEstado("Debe completar " + FEstado + ".", 1);
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        Reunion FReunion = new Reunion();

        if (Session["OperacionDetalle"].ToString() == "M")
        {
            FGestor.ObtenerObjeto(FReunion, int.Parse(grdEvaluaciones.GetRowValues(grdEvaluaciones.FocusedRowIndex, "ID_REUNIONES").ToString()));
        }


        FReunion.ID_DOCENTES = int.Parse(Session["ID_DOCENTES"].ToString());
        FReunion.GuardarFecha("FECHA", edtReunionesCientificasFecha.Text);
        FReunion.REUNION = edtReunionesCientificasTitulo.Text;
        FReunion.EVENTO  = edtReunionesCientificasEvento.Text;
        FReunion.LUGAR   = edtReunionesCientificasLugar.Text;
        if (pnlReunionesCientificasOtroTipoParticipacion.Visible)
        {
            FReunion.OTRO_TIPO_REUNION  = edtReunionesCientificasOtroTipoParticipacion.Text;
            FReunion.ID_TIPOS_REUNIONES = int.Parse(cmbReunionesCientificasTiposParticipacion.SelectedValue.ToString());
        }
        else
        {
            FReunion.ID_TIPOS_REUNIONES = int.Parse(cmbReunionesCientificasTiposParticipacion.SelectedValue);
        }

        FGestor.GuardarObjeto(FReunion);
        actualizarDatosEvaluaciones();
        sgwNucleo.Pagina.CerrarPopup(popEvaluaciones);
    }
Пример #19
0
    // Botones Popup Gestion Academica
    protected void btnAceptarGestionAcademica_Click(object sender, EventArgs e)
    {
        // Requeridos
        string FEstado = "";

        if ((pnlGestionAcademicaOtraInstitucion.Visible) && (!sgwNucleo.Funciones.VerificarRequerido(edtGestionAcademicaOtraInstitucion.Text)))
        {
            FEstado = "la institución";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtGestionAcademicaCargoFuncion.Text))
        {
            FEstado = "el cargo";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequeridoInt(edtGestionAcademicaHsRelojSemanales.Text))
        {
            FEstado = "la dedicación semanal en horas reloj";
        }
        else
        if (!sgwNucleo.Funciones.VerificarRequerido(edtGestionAcademicaFechaInicio.Text))
        {
            FEstado = "la fecha de inicio";
        }
        if (FEstado != "")
        {
            sgwNucleo.Pagina.MostrarEstado("Debe completar " + FEstado + ".", 1);
            return;
        }
        sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal();
        CargoGestion FCargoGestion         = new CargoGestion();

        if (Session["OperacionDetalle"].ToString() == "M")
        {
            FGestor.ObtenerObjeto(FCargoGestion, int.Parse(grdGestionAcademicaABM.GetRowValues(grdGestionAcademicaABM.FocusedRowIndex, "ID_CARGOS_GESTION").ToString()));
        }
        else
        {
            FCargoGestion.ID_DOCENTES = int.Parse(Session["ID_DOCENTES"].ToString());
        }
        FCargoGestion.ID_INSTITUCIONES = int.Parse(cmbGestionAcademicaInstitucion.SelectedValue.ToString());
        FCargoGestion.GuardarFecha("FECHA_INICIO", edtGestionAcademicaFechaInicio.Text);
        FCargoGestion.GuardarFecha("FECHA_FINALIZACION", edtGestionAcademicaFechaFinalizacion.Text);
        FCargoGestion.CARGO = edtGestionAcademicaCargoFuncion.Text;
        FCargoGestion.ID_TIPOS_DURACIONES_DED = int.Parse(cmbGestionAcademicaSemanasAnual.SelectedValue);
        FCargoGestion.DEDICACION_SEMANAL      = int.Parse(edtGestionAcademicaHsRelojSemanales.Text);
        if (cmbGestionAcademicaInstitucion.SelectedValue == "-1")
        {
            FCargoGestion.INSTITUCION_UNIV = false;
            FCargoGestion.ID_INSTITUCIONES = 0;
            FCargoGestion.OTRA_INSTITUCION = edtGestionAcademicaOtraInstitucion.Text;
        }
        else
        {
            FCargoGestion.INSTITUCION_UNIV = true;
            FCargoGestion.ID_INSTITUCIONES = int.Parse(cmbGestionAcademicaInstitucion.SelectedValue);
            FCargoGestion.OTRA_INSTITUCION = "";
        }
        FGestor.GuardarObjeto(FCargoGestion);
        actualizarDatos();
        sgwNucleo.Pagina.CerrarPopup(popGestionAcademica);
    }