protected void Page_Load(object sender, EventArgs e) { sgwNucleo.Usuarios.VerificarUsuarioAutenticado(); sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet FDatos; if (!Page.IsPostBack) { FDatos = FGestor.LeerSQL("SELECT ID_TIPOS_TITULOS, TIPO_TITULO FROM SIS_UNIVERSIDADES.TIPOS_TITULOS WHERE ID_TIPOS_TITULOS BETWEEN 4 AND 6"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbTitulosPosgradoTipo, FDatos, false, false); FDatos = FGestor.LeerSQL("SELECT ID_INSTITUCIONES, INSTITUCION FROM SIS_UNIVERSIDADES.INSTITUCIONES WHERE ID_ESTADOS_INSTITUCIONES = 1 ORDER BY INSTITUCION"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbTitulosGradoInstitucionOtorgante, FDatos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbTitulosPosgradoInstitucionOtorgante, FDatos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbOtrosTitulosInstitucion, FDatos, true, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCarrerasFormacionDocenteInstituciones, FDatos, true, false); FDatos = FGestor.LeerSQL("SELECT ID_PAISES, PAIS FROM SIS_CONEAU.PAISES"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbTitulosGradoPais, FDatos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbTitulosPosgradoPais, FDatos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbOtrosTitulosPais, FDatos, false, false); actualizarDatos(); } actualizarDatosTitulosGrado(); actualizarDatosTitulosPosgrado(); actualizarDatosOtrosTitulos(); actualizarDatosCarreraDocente(); actualizarTituloMaximo(); }
protected void Page_Load(object sender, EventArgs e) { sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); sgwNucleo.Usuarios.VerificarUsuarioAutenticado(); if (!Page.IsPostBack) { DataSet FData = FGestor.LeerSQL("SELECT CVAR, CUIT, ID_PAISES, APELLIDO, ID_DOCENTES FROM SIS_DOCENTES.DOCENTES WHERE ID_USUARIOS = " + Session["UsuarioID"]); Session["ID_DOCENTES"] = FData.Tables[0].Rows[0].ItemArray[4].ToString(); if (FData.Tables[0].Rows[0].ItemArray[0].ToString() == "S") { ddlOrigen.SelectedIndex = 0; Session["ORIGENCV"] = 0; } else { ddlOrigen.SelectedIndex = 1; Session["ORIGENCV"] = 1; } pnlColaborador.Visible = FData.Tables[0].Rows[0].ItemArray[0].ToString() == "N"; Session["APELLIDO"] = FData.Tables[0].Rows[0].ItemArray[3].ToString(); txtCUIT.Text = FData.Tables[0].Rows[0].ItemArray[1].ToString(); pnlCUIT.Visible = false;//FData.Tables[0].Rows[0].ItemArray[2].ToString() == "13"; FData = FGestor.LeerSQL("SELECT U.CORREO_ELECTRONICO FROM SIS_DOCENTES.DOCENTES D, SIS_MAINFRAME.USUARIOS U WHERE U.ID_USUARIOS = D.ID_USUARIOS_COLABORADOR " + "AND D.ID_USUARIOS = " + Session["UsuarioID"]); if (FData.Tables[0].Rows.Count == 1) { txtColaborador.Text = FData.Tables[0].Rows[0].ItemArray[0].ToString(); } else { txtColaborador.Text = ""; } } }
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(); }
protected void cmbCargosDocentesActualUA_SelectedIndexChanged(object sender, EventArgs e) { pnlCargoActualOtraUA.Visible = cmbCargosDocentesActualUA.SelectedValue == "-1"; sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet FDatos = FGestor.LeerSQL("SELECT ID_CARRERAS, CARRERA FROM SIS_UNIVERSIDADES.Q_CARRERAS " + "WHERE ACTIVO = 'S' AND ID_TIPOS_CARRERAS = 3 AND ID_UNIDADES_ACADEMICAS = " + cmbCargosDocentesActualUA.SelectedValue); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargoActualCursoGradoCarrera, FDatos, true, false); FDatos = FGestor.LeerSQL("SELECT ID_CARRERAS, CARRERA FROM SIS_UNIVERSIDADES.Q_CARRERAS " + "WHERE ACTIVO = 'S' AND ID_TIPOS_CARRERAS BETWEEN 4 AND 6 AND ID_UNIDADES_ACADEMICAS = " + cmbCargosDocentesActualUA.SelectedValue); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargoActualCursoPosgradoCarrera, FDatos, true, false); }
protected void Page_Load(object sender, EventArgs e) { if ((Request["id"] == null) || (Request["tipo"] == null) || (Request["usuario"] == null) || (Request["token"] == null)) { Response.Redirect("default.aspx"); return; } sgwMulticapa.Gestor.Gestor FGestor = new sgwMulticapa.Gestor.Gestor(); DataSet FData = FGestor.LeerSQL("SELECT ID_USUARIOS, NOMBRE_FORMAL, CAMBIAR_PASSWORD, USUARIO, CORREO_ELECTRONICO FROM SIS_MAINFRAME.Q_USUARIOS_DOCENTES WHERE " + "ACTIVO = 'S' AND HABILITADO = 'S' AND USUARIO = '" + Request.Params["usuario"].ToString() + "'"); // Verificar que el usuario exista if ((FData == null) || (FData.Tables[0].Rows.Count != 1)) { sgwNucleo.Pagina.MostrarEstado("Error en el pedido de autenticación. Si el problema persiste, contáctese con el soporte técnico.", 1); return; } // Verificar que el hash del token sea válido string FHash = sgwNucleo.Usuarios.MD5Hash((int.Parse(FData.Tables[0].Rows[0].ItemArray[0].ToString()) * 20).ToString()); if (FHash.ToLower() != Request.Params["token"].ToString().ToLower()) { sgwNucleo.Pagina.MostrarEstado("Error en el token de autenticación. Si el problema persiste, contáctese con el soporte técnico.", 1); return; } Session["UsuarioID"] = FData.Tables[0].Rows[0].ItemArray[0].ToString(); Session["UsuarioDescripcion"] = FData.Tables[0].Rows[0].ItemArray[1].ToString(); Session["UsuarioCorreo"] = FData.Tables[0].Rows[0].ItemArray[4].ToString(); Session["Usuario"] = FData.Tables[0].Rows[0].ItemArray[3].ToString(); sgwNucleo.Usuarios.IniciarSesion(); Response.Redirect("revisar-vinculacion.aspx?id=" + Request["id"].ToString() + "&tipo=" + Request["tipo"].ToString()); }
protected void Page_Load(object sender, EventArgs e) { sgwNucleo.Usuarios.VerificarUsuarioAutenticado(); actualizarDatosTitulosGrado(); actualizarDatosTitulosDoctorados(); actualizarDatosTitulosMaestrias(); actualizarDatosTitulosEspecializaciones(); actualizarDatosOtrosTitulos(); actualizarTituloMaximo(); cvarActualizarTituloMaximo(Session["CUIT"].ToString()); if ((Session["ID_ESTADOS_PRESENTACIONES"].ToString() != null) && (Session["ID_ESTADOS_PRESENTACIONES"].ToString() != "2")) { if (Session["ID_PRESENTACIONES"] != "") { sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet FData = FGestor.LeerSQL("SELECT ID_TIPOS_TITULOS FROM SIS_DOCENTES.DOCENTES WHERE ID_DOCENTES = " + Session["ID_DOCENTES"].ToString()); string ID = FData.Tables[0].Rows[0].ItemArray[0].ToString(); if (ID != "") { FGestor.EscribirSQL("UPDATE SIS_INSTRUCTIVOS.DOCENTES_PRES_TITULOS SET ID_TIPOS_TITULOS = " + ID + " WHERE ID_PRESENTACIONES = " + Session["ID_PRESENTACIONES"].ToString() + " AND ID_DOCENTES = " + Session["ID_DOCENTES"].ToString()); } } } }
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; }
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(); } }
protected void lnkPuntos_Click(object sender, EventArgs e) { int Indice = int.Parse(((Control)sender).ID.Substring(8)); if (Indice > 1) { if ((!sgwNucleo.Pagina.SoloLectura()) && (!sgwNucleo.Usuarios.UsuarioGrupo("Colaboradores de docentes universitarios"))) { sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet FDatos = FGestor.LeerSQL("SELECT * FROM SIS_DOCENTES.DOCENTES D WHERE D.ID_USUARIOS = " + Session["UsuarioID"].ToString()); if (FDatos.Tables[0].Rows.Count < 1) { sgwNucleo.Pagina.MostrarEstado("Debe guardar los datos personales antes de continuar.", 1); return; } } } string FRuta = ".."; string FParams = ""; if (sgwNucleo.Pagina.SoloLectura()) { FParams = "?SoloLectura=1"; } if (Session["CVAR"].ToString() == "S") { Response.Redirect(FRuta + "/cvar/abm-p" + Indice + ".aspx" + FParams); } else { Response.Redirect(FRuta + "/coneau/abm-p" + Indice + ".aspx" + FParams); } }
protected void actualizarActividades() { sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); string FCondicion = "ID_CARGOS_DOCENTES = " + Request["id"].ToString(); grdActividades.DataSource = FGestor.LeerSQL("SELECT * FROM SIS_INSTRUCTIVOS.Q_DOC_CARGOS_ACT WHERE " + FCondicion); grdActividades.DataBind(); }
protected void actualizarVinculaciones() { sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); string FCondicion = "CVAR = 'N' AND ID_USUARIOS_COLABORADOR = " + Session["UsuarioID"].ToString(); grdCurriculums.DataSource = FGestor.LeerSQL("SELECT * FROM SIS_DOCENTES.Q_DOCENTES WHERE " + FCondicion); grdCurriculums.DataBind(); }
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 tipos título posgrado datos = FGestor.LeerSQL("SELECT ID_INSTITUCIONES, INSTITUCION FROM SIS_UNIVERSIDADES.Q_INSTITUCIONES WHERE ID_ESTADOS_INSTITUCIONES = 1"); Funciones.CompletarListaDesplegable(cmbGestionAcademicaInstitucion, datos, true, false); datos = FGestor.LeerSQL("SELECT ID_TIPOS_DURACIONES_DED, TIPO_DURACION_DED FROM SIS_DOCENTES.Q_TIPOS_DURACIONES_DED"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbGestionAcademicaSemanasAnual, datos, false, false); } actualizarDatos(); }
protected void Page_Load(object sender, EventArgs e) { sgwNucleo.Usuarios.VerificarUsuarioAutenticado(); sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); if (!Page.IsPostBack) { // Listado de Países DataSet datos = FGestor.LeerSQL("SELECT ID_PAISES, PAIS FROM SIS_CONEAU.PAISES ORDER BY PAIS"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbDocentePais, datos, false, false); datos = FGestor.LeerSQL("SELECT ID_TIPOS_DOCUMENTO, TIPO_DOCUMENTO FROM SIS_CONEAU.TIPOS_DOCUMENTO"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbTipoDocumento, datos, false, false); cmbDocenteSexo.Items.Add(new ListItem("Masculino", "M")); cmbDocenteSexo.Items.Add(new ListItem("Femenino", "F")); cmbDocenteSexo.Items.Add(new ListItem("Otro", "O")); actualizarDatos(); } }
protected void Page_Load(object sender, EventArgs e) { sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); sgwNucleo.Usuarios.VerificarUsuarioAutenticado(); if (!Page.IsPostBack) { DataSet FData = FGestor.LeerSQL("SELECT SEXO FROM SIS_MAINFRAME.USUARIOS WHERE ID_USUARIOS = " + Session["UsuarioID"]); //if (FData.Tables[0].Rows[0].ItemArray[0].ToString() == "F") lblBienvenido.Text = "Bienvenida, " + Session["UsuarioDescripcion"].ToString(); //else // if (FData.Tables[0].Rows[0].ItemArray[0].ToString() == "M") lblBienvenido.Text = "Bienvenido, " + Session["UsuarioDescripcion"].ToString(); // else // lblBienvenido.Text = "Bienvenida/o, " + Session["UsuarioDescripcion"].ToString(); DataSet FDatos = FGestor.LeerSQL("SELECT ID_TIPOS_DURACIONES_DED, TIPO_DURACION_DED FROM SIS_DOCENTES.TIPOS_DURACIONES_DED"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(ddlModalidad1, FDatos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(ddlModalidad2, FDatos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(ddlModalidad3, FDatos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(ddlModalidad4, FDatos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(ddlModalidad5, FDatos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(ddlModalidad6, FDatos, false, false); //FData = FGestor.LeerSQL("SELECT CVAR, CVAR_URL, CUIT, ID_DOCENTES FROM SIS_DOCENTES.DOCENTES WHERE ID_USUARIOS = " + Session["UsuarioID"]); //if (FData.Tables[0].Rows.Count == 0) //{ // Response.Redirect("nuevo-docente.aspx"); // return; //} //Session["DocenteNombre"] = Session["UsuarioDescripcion"].ToString(); //if (FData.Tables[0].Rows.Count == 1) //{ // Session["CVAR"] = FData.Tables[0].Rows[0].ItemArray[0].ToString(); // Session["CVAR_URL"] = FData.Tables[0].Rows[0].ItemArray[1].ToString(); // Session["CUIT"] = FData.Tables[0].Rows[0].ItemArray[2].ToString(); // Session["ID_DOCENTES"] = FData.Tables[0].Rows[0].ItemArray[3].ToString(); //} } actualizarVinculaciones(); actualizarVinculacionesOtras(); if (popCargosDocentes.ShowOnPageLoad) { actualizarActividades(); } }
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(); if (!Page.IsPostBack) { DataSet datos = FGestor.LeerSQL("SELECT ID_TIPOS_EVALUACIONES, TIPO_EVALUACION FROM SIS_DOCENTES.Q_TIPOS_EVALUACIONES"); Funciones.CompletarListaDesplegable(cmbExperienciasEvaluacionTiposEvaluacion, datos, false, false); // listadesplegable instituciones datos = FGestor.LeerSQL("SELECT ID_INSTITUCIONES, INSTITUCION FROM SIS_UNIVERSIDADES.Q_INSTITUCIONES WHERE ID_ESTADOS_INSTITUCIONES = 1"); Funciones.CompletarListaDesplegable(cmbInstitucion, datos, true); } actualizarDatosEvaluaciones(); }
protected void btnUsarCVar_Click(object sender, EventArgs e) { sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet FData = FGestor.LeerSQL("SELECT ID_DOCENTES FROM SIS_DOCENTES.DOCENTES WHERE ID_USUARIOS = " + Session["UsuarioID"].ToString()); FGestor.EscribirSQL("UPDATE SIS_DOCENTES.DOCENTES SET CVAR = 'S' WHERE ID_DOCENTES = " + FData.Tables[0].Rows[0].ItemArray[0].ToString()); FGestor.EscribirSQL("INSERT INTO SIS_DOCENTES.DOCENTES_ORIGENES_CV (CVAR, ID_DOCENTES, FECHA, ID_DOCENTES_ORIGENES_CV) VALUES ('S', " + FData.Tables[0].Rows[0].ItemArray[0].ToString() + ", SYSDATE, SIS_DOCENTES.SEQ_DOCENTES_ORIGENES_CV.NEXTVAL)"); Response.Redirect("inicio.aspx"); }
protected void cmbCargosDocentesPasadoDisciplina_SelectedIndexChanged(object sender, EventArgs e) { pnlCargosDocentesPasadoOtraDisciplina.Visible = cmbCargosDocentesPasadoDisciplina.SelectedValue == "1000"; sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet FDatos = FGestor.LeerSQL("SELECT ID_SUBDISCIPLINAS, SUBDISCIPLINA FROM SIS_CONEAU.Q_SUBDISCIPLINAS WHERE ID_DISCIPLINAS = " + cmbCargosDocentesPasadoDisciplina.SelectedValue); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosDocentesPasadoSubdisciplina, FDatos, false, false); cmbCargosDocentesPasadoSubdisciplina_SelectedIndexChanged(sender, e); }
protected void cmbCargosDocentesPasadoInstitucion_SelectedIndexChanged(object sender, EventArgs e) { pnlCargoPasadoOtraInstitucion.Visible = cmbCargosDocentesPasadoInstitucion.SelectedValue == "-1"; sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet FDatos = FGestor.LeerSQL("SELECT ID_UNIDADES_ACADEMICAS, UNIDAD_ACADEMICA FROM SIS_UNIVERSIDADES.UNIDADES_ACADEMICAS " + "WHERE ACTIVO = 'S' AND ID_INSTITUCIONES = " + cmbCargosDocentesPasadoInstitucion.SelectedValue); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosDocentesPasadoUA, FDatos, true, false); cmbCargosDocentesPasadoUA_SelectedIndexChanged(sender, e); }
protected bool verificarCurriculumCvar(string CUIT) { System.Xml.XmlDocument CVAR = null; sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet FData = FGestor.LeerSQL("SELECT D.ID_PAISES_ORIGEN, P.CODIGO_ISO, D.NUMERO_DOCUMENTO " + "FROM SIS_DOCENTES.DOCENTES D, SIS_MAINFRAME.USUARIOS U, SIS_CONEAU.PAISES P " + "WHERE U.ID_USUARIOS = D.ID_USUARIOS AND D.ID_PAISES_ORIGEN = P.ID_PAISES " + "AND D.ID_USUARIOS = " + Session["UsuarioID"]); string FIdentificador = CUIT; if (FData.Tables[0].Rows[0].ItemArray[0].ToString() != "13") { FIdentificador = FData.Tables[0].Rows[0].ItemArray[1].ToString() + " " + FData.Tables[0].Rows[0].ItemArray[2].ToString(); } try { CVAR = sgwFunciones.CONEAU.Docentes.cvarLeerXMLRemoto(FIdentificador, "datosPersonales/identificacion"); } catch { if (FData.Tables[0].Rows[0].ItemArray[0].ToString() != "13") { try { CVAR = sgwFunciones.CONEAU.Docentes.cvarLeerXMLRemoto(CUIT, "datosPersonales/identificacion"); FGestor.EscribirSQL("UPDATE SIS_DOCENTES.DOCENTES SET ID_PAISES_ORIGEN = 13 WHERE CUIT = '" + CUIT + "'"); } catch { sgwNucleo.Pagina.MostrarEstado("No se encontró un currículum en CVar con su número de CUIT.", 1); return(false); } } } string FApellido = sgwFunciones.CONEAU.Docentes.cvarLeer(CVAR, "apellido").ToLower().Trim(); if (!Session["APELLIDO"].ToString().ToLower().Trim().Contains(FApellido)) { sgwNucleo.Pagina.MostrarEstado("No se encontró un currículum en CVar que coincida con su apellido.", 1); return(false); } CVAR = sgwFunciones.CONEAU.Docentes.cvarLeerXMLRemoto(FIdentificador, "datosPersonales/direccionResidencial"); string FMail1 = sgwFunciones.CONEAU.Docentes.cvarLeer(CVAR, "email").ToLower().Trim(); CVAR = sgwFunciones.CONEAU.Docentes.cvarLeerXMLRemoto(FIdentificador, "datosPersonales/direccionLaboral"); string FMail2 = sgwFunciones.CONEAU.Docentes.cvarLeer(CVAR, "email").ToLower().Trim(); if ((!Session["UsuarioCorreo"].ToString().ToLower().Trim().Contains(FMail1)) && (!Session["UsuarioCorreo"].ToString().ToLower().Trim().Contains(FMail2))) { sgwNucleo.Pagina.MostrarEstado("No se encontró un currículum en CVar que coincida con su dirección de correo electrónico.", 1); return(false); } return(true); }
protected void CalcularDedicaciones() { if ((!sgwNucleo.Funciones.VerificarRequeridoInt(txtDedicacion1.Text)) || (!sgwNucleo.Funciones.VerificarRequeridoInt(txtDedicacion2.Text)) || (!sgwNucleo.Funciones.VerificarRequeridoInt(txtDedicacion3.Text)) || (!sgwNucleo.Funciones.VerificarRequeridoInt(txtDedicacion4.Text)) || (!sgwNucleo.Funciones.VerificarRequeridoInt(txtDedicacion5.Text)) || (!sgwNucleo.Funciones.VerificarRequeridoInt(txtDedicacion6.Text)) || (!sgwNucleo.Funciones.VerificarRequeridoInt(txtDedicacion7.Text)) ) { txtDedicacionP1.Text = "-"; txtDedicacionP2.Text = "-"; txtDedicacionP3.Text = "-"; txtDedicacionP4.Text = "-"; txtDedicacionP5.Text = "-"; txtDedicacionP6.Text = "-"; txtDedicacionP7.Text = "-"; txtDedicacionTotal.Text = "-"; txtDedicacionPTotal.Text = "-"; return; } txtDedicacionTotal.Text = (int.Parse(txtDedicacion1.Text) + int.Parse(txtDedicacion2.Text) + int.Parse(txtDedicacion3.Text) + int.Parse(txtDedicacion4.Text) + int.Parse(txtDedicacion5.Text) + int.Parse(txtDedicacion6.Text) + int.Parse(txtDedicacion7.Text)).ToString(); if (!esGrado) { return; } sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet FData; FData = FGestor.LeerSQL("SELECT CANTIDAD_SEMANAS FROM SIS_DOCENTES.TIPOS_DURACIONES_DED WHERE ID_TIPOS_DURACIONES_DED = " + ddlModalidad1.SelectedValue); txtDedicacionP1.Text = (float.Parse(txtDedicacion1.Text) * float.Parse(FData.Tables[0].Rows[0].ItemArray[0].ToString()) / 52).ToString(); txtDedicacionP1.Text = txtDedicacionP1.Text.Substring(0, Math.Min(4, txtDedicacionP1.Text.Length)); FData = FGestor.LeerSQL("SELECT CANTIDAD_SEMANAS FROM SIS_DOCENTES.TIPOS_DURACIONES_DED WHERE ID_TIPOS_DURACIONES_DED = " + ddlModalidad2.SelectedValue); txtDedicacionP2.Text = (float.Parse(txtDedicacion2.Text) * float.Parse(FData.Tables[0].Rows[0].ItemArray[0].ToString()) / 52).ToString(); txtDedicacionP2.Text = txtDedicacionP2.Text.Substring(0, Math.Min(4, txtDedicacionP2.Text.Length)); FData = FGestor.LeerSQL("SELECT CANTIDAD_SEMANAS FROM SIS_DOCENTES.TIPOS_DURACIONES_DED WHERE ID_TIPOS_DURACIONES_DED = " + ddlModalidad3.SelectedValue); txtDedicacionP3.Text = (float.Parse(txtDedicacion3.Text) * float.Parse(FData.Tables[0].Rows[0].ItemArray[0].ToString()) / 52).ToString(); txtDedicacionP3.Text = txtDedicacionP3.Text.Substring(0, Math.Min(4, txtDedicacionP3.Text.Length)); FData = FGestor.LeerSQL("SELECT CANTIDAD_SEMANAS FROM SIS_DOCENTES.TIPOS_DURACIONES_DED WHERE ID_TIPOS_DURACIONES_DED = " + ddlModalidad4.SelectedValue); txtDedicacionP4.Text = (float.Parse(txtDedicacion4.Text) * float.Parse(FData.Tables[0].Rows[0].ItemArray[0].ToString()) / 52).ToString(); txtDedicacionP4.Text = txtDedicacionP4.Text.Substring(0, Math.Min(4, txtDedicacionP4.Text.Length)); FData = FGestor.LeerSQL("SELECT CANTIDAD_SEMANAS FROM SIS_DOCENTES.TIPOS_DURACIONES_DED WHERE ID_TIPOS_DURACIONES_DED = " + ddlModalidad5.SelectedValue); txtDedicacionP5.Text = (float.Parse(txtDedicacion5.Text) * float.Parse(FData.Tables[0].Rows[0].ItemArray[0].ToString()) / 52).ToString(); txtDedicacionP5.Text = txtDedicacionP5.Text.Substring(0, Math.Min(4, txtDedicacionP5.Text.Length)); FData = FGestor.LeerSQL("SELECT CANTIDAD_SEMANAS FROM SIS_DOCENTES.TIPOS_DURACIONES_DED WHERE ID_TIPOS_DURACIONES_DED = " + ddlModalidad6.SelectedValue); txtDedicacionP6.Text = (float.Parse(txtDedicacion6.Text) * float.Parse(FData.Tables[0].Rows[0].ItemArray[0].ToString()) / 52).ToString(); txtDedicacionP6.Text = txtDedicacionP6.Text.Substring(0, Math.Min(4, txtDedicacionP6.Text.Length)); FData = FGestor.LeerSQL("SELECT CANTIDAD_SEMANAS FROM SIS_DOCENTES.TIPOS_DURACIONES_DED WHERE ID_TIPOS_DURACIONES_DED = " + ddlModalidad7.SelectedValue); txtDedicacionP7.Text = (float.Parse(txtDedicacion7.Text) * float.Parse(FData.Tables[0].Rows[0].ItemArray[0].ToString()) / 52).ToString(); txtDedicacionP7.Text = txtDedicacionP7.Text.Substring(0, Math.Min(4, txtDedicacionP7.Text.Length)); txtDedicacionPTotal.Text = (float.Parse(txtDedicacionP1.Text) + float.Parse(txtDedicacionP2.Text) + float.Parse(txtDedicacionP3.Text) + float.Parse(txtDedicacionP4.Text) + float.Parse(txtDedicacionP5.Text) + float.Parse(txtDedicacionP6.Text) + float.Parse(txtDedicacionP7.Text)).ToString(); txtDedicacionPTotal.Text = txtDedicacionPTotal.Text.Substring(0, Math.Min(4, txtDedicacionPTotal.Text.Length)); }
protected void cmbDocenteProvincia_SelectedIndexChanged(object sender, EventArgs e) { if (!pnlCUIT1.Visible) { return; } sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet datos = FGestor.LeerSQL("SELECT ID_DEPARTAMENTOS, DEPARTAMENTO FROM SIS_CONEAU.DEPARTAMENTOS WHERE ID_ESTADOS = " + cmbDocenteProvincia.SelectedValue); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbDepartamento, datos, false); }
protected void cmbCargosNoAcademicosDisciplinaP_SelectedIndexChanged(object sender, EventArgs e) { pnlCargosNoAcademicosOtraDisciplinaP.Visible = cmbCargosNoAcademicosDisciplinaP.SelectedValue == "1000"; //selectedValue == "1000" // Listado de Disciplinas sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet datos = FGestor.LeerSQL("SELECT ID_SUBDISCIPLINAS, SUBDISCIPLINA FROM SIS_CONEAU.Q_SUBDISCIPLINAS WHERE ID_DISCIPLINAS = " + cmbCargosNoAcademicosDisciplinaP.SelectedValue); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosNoAcademicosSubdisciplinaP, datos, false, false); cmbCargosNoAcademicosSubdisciplinaP_SelectedIndexChanged(sender, e); }
//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(); } }
protected void Page_Load(object sender, EventArgs e) { sgwNucleo.Usuarios.VerificarUsuarioAutenticado(); sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); if (!Page.IsPostBack) { // Listado de Disciplinas DataSet datos = FGestor.LeerSQL("SELECT ID_DISCIPLINAS, DISCIPLINA FROM SIS_CONEAU.Q_DISCIPLINAS"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbDisciplinas, datos, false, false); actualizarDatos(); } }
// Botnes ABM Titulos posgrado protected void actualizarDatosTitulosPosgrado() { sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); string FCondicion = " ID_DOCENTES = " + Session["ID_DOCENTES"].ToString(); if ((Session["ID_ESTADOS_PRESENTACIONES"] != null) && (Session["ID_ESTADOS_PRESENTACIONES"].ToString() == "2") && (Session["FECHA_PRESENTADA"] != null) && (Session["FECHA_PRESENTADA"].ToString() != "")) { FCondicion += " AND ((FECHA_ALTA - 1) <= '" + Session["FECHA_PRESENTADA"].ToString() + "' OR FECHA_ALTA IS NULL)"; } grdTitulosPosgradoABM.DataSource = FGestor.LeerSQL("SELECT * FROM SIS_DOCENTES.Q_TITULOS WHERE ID_TIPOS_TITULOS BETWEEN 4 AND 6 AND " + FCondicion); grdTitulosPosgradoABM.DataBind(); }
// Botones ABM Carrera formacion docente protected void actualizarDatosCarreraDocente() { if (Session["CVAR"].ToString() == "S") { return; } sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); grdCarreraFormacionDocenteABM.DataSource = FGestor.LeerSQL("SELECT * FROM SIS_DOCENTES.Q_CARRERAS_DOCENTES WHERE " + "ID_DOCENTES = " + Session["ID_DOCENTES"]); grdCarreraFormacionDocenteABM.DataBind(); }
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(); } }
protected void actualizarActividades() { if (grdCargos.FocusedRowIndex < 0) { return; } sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); string FCondicion = "ID_CARGOS_DOCENTES = " + grdCargos.GetRowValues(grdCargos.FocusedRowIndex, "ID_CARGOS_DOCENTES").ToString(); grdActividades.DataSource = FGestor.LeerSQL("SELECT * FROM SIS_INSTRUCTIVOS.Q_DOC_CARGOS_ACT WHERE " + FCondicion); grdActividades.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { sgwNucleo.Usuarios.VerificarUsuarioAutenticado(); sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet FDatos; if (!Page.IsPostBack) { DataSet datos = FGestor.LeerSQL("SELECT ID_INSTITUCIONES, INSTITUCION FROM SIS_UNIVERSIDADES.INSTITUCIONES WHERE ID_ESTADOS_INSTITUCIONES = 1 ORDER BY INSTITUCION"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosDocentesActualInstitucion, datos, true, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosDocentesPasadoInstitucion, datos, true, false); datos = FGestor.LeerSQL("SELECT ID_TIPOS_CARGOS, TIPO_CARGO FROM SIS_DOCENTES.TIPOS_CARGOS ORDER BY ORDEN"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosDocentesActualCargo, datos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosDocentesPasadoCargo, datos, false, false); datos = FGestor.LeerSQL("SELECT ID_TIPOS_DESIGNACIONES, TIPO_DESIGNACION FROM SIS_DOCENTES.TIPOS_DESIGNACIONES WHERE ID_TIPOS_DESIGNACIONES IN (2, 6, 7, 8, 9, 10)"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosDocentesActualDesignacion, datos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosDocentesPasadoDesignacion, datos, false, false); datos = FGestor.LeerSQL("SELECT ID_DISCIPLINAS, DISCIPLINA FROM SIS_CONEAU.Q_DISCIPLINAS"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosDocentesActualDisciplina, datos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosDocentesPasadoDisciplina, 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(cmbCargosDocentesActualSemanasAnual, datos, false, false); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosDocentesPasadoSemanasAnual, datos, false, false); datos = FGestor.LeerSQL("SELECT ID_TIPOS_CARRERAS, TIPO_CARRERA FROM SIS_UNIVERSIDADES.Q_TIPOS_CARRERAS WHERE ID_TIPOS_CARRERAS BETWEEN 4 AND 6"); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargoActualCursoPosgradoTipo, datos, false, false); actualizarDatos(); } actualizarDatosCargosActuales(); actualizarDatosCargosPasados(); if (Session["ID_CARGOS_DOCENTES"] != null) { actualizarDatosCargosCarrerasGrado(); actualizarDatosCargosCarrerasPosgrado(); } }
// Botones ABM Cargos Docentes Pasado protected void actualizarDatosCargosPasados() { sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); string FCondicion = " ID_DOCENTES = " + Session["ID_DOCENTES"].ToString(); if ((Session["ID_ESTADOS_PRESENTACIONES"] != null) && (Session["ID_ESTADOS_PRESENTACIONES"].ToString() == "2") && (Session["FECHA_PRESENTADA"] != null) && (Session["FECHA_PRESENTADA"].ToString() != "")) { FCondicion += " AND ((FECHA_ALTA - 1) <= '" + Session["FECHA_PRESENTADA"].ToString() + "' OR FECHA_ALTA IS NULL)"; } grdCargosDocentesPasado.DataSource = FGestor.LeerSQL("SELECT * FROM SIS_DOCENTES.Q_CARGOS_DOCENTES WHERE (FECHA_FINALIZACION IS NOT NULL AND " + "FECHA_FINALIZACION <= SYSDATE) AND " + FCondicion); grdCargosDocentesPasado.DataBind(); }