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 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; }
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(); 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) { 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 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 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; }
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; }
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; }
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; }
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; }
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; }
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(); }
public static Gestor GestorGlobal() { if (oGestor == null) { oGestor = new Gestor(); } return(oGestor); }
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 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 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)); }
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 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); }
// 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)); }
protected void cmbCarrerasFormacionDocenteInstituciones_SelectedIndexChanged(object sender, EventArgs e) { pnlCarrerasFormacionDocenteOtraInst.Visible = cmbCarrerasFormacionDocenteInstituciones.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 = " + cmbCarrerasFormacionDocenteInstituciones.SelectedValue); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCarrerasFormacionDocenteUA, FDatos, true, false); cmbCarrerasFormacionDocenteUA_SelectedIndexChanged(sender, e); }
protected void cmbCargosNoAcademicosDisciplina_SelectedIndexChanged(object sender, EventArgs e) { pnlCargosNoAcademicosOtraDisciplina.Visible = cmbCargosNoAcademicosDisciplina.SelectedValue == "1000"; sgwMulticapa.Gestor.Gestor FGestor = sgwMulticapa.Gestor.Gestor.GestorGlobal(); DataSet datos = FGestor.LeerSQL("SELECT ID_SUBDISCIPLINAS, SUBDISCIPLINA FROM SIS_CONEAU.Q_SUBDISCIPLINAS WHERE ID_DISCIPLINAS = " + cmbCargosNoAcademicosDisciplina.SelectedValue); sgwMulticapa.Objetos.Funciones.CompletarListaDesplegable(cmbCargosNoAcademicosSubdisciplina, datos, false, false); cmbCargosNoAcademicosSubdisciplina_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); }
// 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); }
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 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 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(); } }
// 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 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(); } }