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; }
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"); }
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"); }
protected void leerDatosVinculacion() { if ((Request["id"] == null) || (Request["tipo"] == null)) { Response.Redirect("default.aspx"); return; } pnlVinculacionCargo.Visible = Request["tipo"].ToString() == "1"; pnlVinculacionOtro.Visible = !pnlVinculacionCargo.Visible; sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); // Vinculación a un cargo docente if (pnlVinculacionCargo.Visible) { sgwMulticapa.Objetos.CONEAU.Instructivos.CargoDocente FCargoDocente = new sgwMulticapa.Objetos.CONEAU.Instructivos.CargoDocente(); FGestor.ObtenerObjeto(FCargoDocente, int.Parse(Request["id"].ToString())); if (FCargoDocente.ID_DOCENTES != int.Parse(Session["ID_DOCENTES"].ToString())) { Response.Redirect("default.aspx"); return; } if (FCargoDocente.ID_TIPOS_ESTADOS_CARGOS != 1) { Response.Redirect("default.aspx"); return; } DataSet FData = FGestor.LeerSQL("SELECT P.ID_ESTADOS_PRESENTACIONES FROM SIS_INSTRUCTIVOS.PRESENTACIONES P, SIS_INSTRUCTIVOS.PRESENTACIONES_UA PUA " + " WHERE P.ID_PRESENTACIONES = PUA.ID_PRESENTACIONES AND PUA.ID_PRESENTACIONES_UA = " + FCargoDocente.ID_PRESENTACIONES_UA); if (FData.Tables[0].Rows[0].ItemArray[0].ToString() == "2") { Response.Redirect("default.aspx"); return; } FData = FGestor.LeerSQL("SELECT * FROM SIS_INSTRUCTIVOS.Q_CARGOS_DOCENTES WHERE ID_CARGOS_DOCENTES = " + Request["id"].ToString()); txtInstitucion.Text = FData.Tables[0].Rows[0]["INSTITUCION"].ToString(); txtUnidadAcademica.Text = FData.Tables[0].Rows[0]["UNIDAD_ACADEMICA"].ToString() + " (" + FData.Tables[0].Rows[0]["LOCALIZACION"].ToString() + ")"; txtTipoCargo.Text = FData.Tables[0].Rows[0]["TIPO_CARGO"].ToString(); txtDesignacion.Text = FData.Tables[0].Rows[0]["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(); txtDedicacion7.Text = FCargoDocente.DED_VINCULACION.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(); ddlModalidad7.SelectedValue = FCargoDocente.ID_TIPOS_DUR_DED_7.ToString(); CalcularDedicaciones(); actualizarActividades(); pnlCargoGrado.Visible = FData.Tables[0].Rows[0]["ID_NIVELES_EDUCATIVOS"].ToString() == "2"; pnlCargoPosgrado.Visible = !pnlCargoGrado.Visible; pnlCargoPosgrado2.Visible = !pnlCargoGrado.Visible; pnlActividadesCurriculares.Visible = pnlCargoGrado.Visible; if (pnlCargoPosgrado.Visible) { if (FCargoDocente.PLANTEL_DOCENTE) { txtPertenencia.Text = "Plantel docente"; } else { txtPertenencia.Text = "Cuerpo de tutores"; } if (FCargoDocente.VINCULO_ESTABLE) { txtTipoVinculo.Text = "Estable"; } else { txtTipoVinculo.Text = "Invitado"; } txtCargoCarrera.Text = FData.Tables[0].Rows[0]["CARRERAS"].ToString(); chkCargoDirector.Checked = FCargoDocente.DIRECTOR; txtActividades.Text = FCargoDocente.DED_DESCRIPCION; txtFechaDesignacion.Text = FCargoDocente.LeerFecha("FECHA_DESIGNACION"); } esGrado = pnlCargoGrado.Visible; } // Otras vinculaciones else { DataSet FData = FGestor.LeerSQL("SELECT * FROM SIS_INSTRUCTIVOS.Q_OTRAS_VINCULACIONES WHERE ID_CLAVE = '" + Request["id"].ToString() + "' AND ID_DOCENTES = " + Session["ID_DOCENTES"].ToString()); if (FData.Tables[0].Rows.Count == 0) { Response.Redirect("default.aspx"); return; } txtOtroInstitucion.Text = FData.Tables[0].Rows[0]["INSTITUCION"].ToString(); txtOtroTipo.Text = FData.Tables[0].Rows[0]["TIPO_VINCULACION"].ToString(); txtOtroVinculado.Text = FData.Tables[0].Rows[0]["DENOMINACION"].ToString(); } }
protected void btnRevisar_Click(object sender, EventArgs e) { if (grdCargos.FocusedRowIndex < 0) { return; } if (pnlNoAnda.Visible) { sgwNucleo.Pagina.MostrarEstado("No puede continuar debido a que no encontramos su currículum CVar.", 1); return; } if (!tieneTituloMaximo()) { sgwNucleo.Pagina.MostrarEstado("Para continuar debe ingresar su formación (título obtenido).", 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); 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(); txtDedicacion7.Text = FCargoDocente.DED_VINCULACION.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(); ddlModalidad7.SelectedValue = FCargoDocente.ID_TIPOS_DUR_DED_7.ToString(); CalcularDedicaciones(); actualizarActividades(); pnlCargoGrado.Visible = grdCargos.GetRowValues(grdCargos.FocusedRowIndex, "ID_NIVELES_EDUCATIVOS").ToString() == "2"; pnlCargoPosgrado.Visible = !pnlCargoGrado.Visible; pnlCargoPosgrado2.Visible = !pnlCargoGrado.Visible; pnlActividadesCurriculares.Visible = pnlCargoGrado.Visible; if (pnlCargoPosgrado.Visible) { if (FCargoDocente.PLANTEL_DOCENTE) { txtPertenencia.Text = "Plantel docente"; } else { txtPertenencia.Text = "Cuerpo de tutores"; } if (FCargoDocente.VINCULO_ESTABLE) { txtTipoVinculo.Text = "Estable"; } else { txtTipoVinculo.Text = "Invitado"; } txtCargoCarrera.Text = grdCargos.GetRowValues(grdCargos.FocusedRowIndex, "CARRERAS").ToString(); chkCargoDirector.Checked = FCargoDocente.DIRECTOR; txtActividades.Text = FCargoDocente.DED_DESCRIPCION; txtFechaDesignacion.Text = FCargoDocente.LeerFecha("FECHA_DESIGNACION"); } esGrado = pnlCargoGrado.Visible; popCargosDocentes.ShowOnPageLoad = true; }