protected InformacionAspi ObtenerInforme() { DataRow fila; //dr DataTable informacion = new DataTable(); //dt InformacionAspi datos = new InformacionAspi(); informacion = datos.Tables["Aspirantes"]; DAspirantes persona = new DAspirantes(); DataTable intermedio = persona.obtenerAspiranteRep(); for (int i = 0; i < intermedio.Rows.Count; i++) { fila = informacion.NewRow(); fila["Nombre"] = intermedio.Rows[i]["nombre_aspirante"].ToString(); fila["Apellido"] = intermedio.Rows[i]["apellido_aspirante"].ToString(); fila["Cedula"] = intermedio.Rows[i]["documento"].ToString(); fila["Direccion"] = intermedio.Rows[i]["direccion_asp"].ToString(); fila["Telefono"] = intermedio.Rows[i]["telefono_asp"].ToString(); fila["Foto"] = streamFile(intermedio.Rows[i]["foto"].ToString()); informacion.Rows.Add(fila); } return(datos); }
protected InformacionOferta ObtenerInforme() { DataRow fila; //dr DataTable informacion = new DataTable(); //dt InformacionOferta datos = new InformacionOferta(); informacion = datos.Tables["Ofertas"]; DAspirantes persona = new DAspirantes(); DataTable intermedio = persona.obtenerOfertas(); for (int i = 0; i < intermedio.Rows.Count; i++) { fila = informacion.NewRow(); fila["Nombre"] = intermedio.Rows[i]["nombre_oferta"].ToString(); fila["Horario"] = intermedio.Rows[i]["horario"].ToString(); fila["Sueldo"] = intermedio.Rows[i]["sueldo"].ToString(); fila["Contrato"] = intermedio.Rows[i]["tipo_contrato"].ToString(); fila["Descripcion"] = intermedio.Rows[i]["funciones"].ToString(); informacion.Rows.Add(fila); } return(datos); }
protected InformacionAspi ObtenerInforme() { DataRow fila; //dr DataTable informacion = new DataTable(); //dt InformacionAspi datos = new InformacionAspi(); informacion = datos.Tables["Empresas"]; DAspirantes persona = new DAspirantes(); DataTable intermedio = persona.obtenerEmpresas(); for (int i = 0; i < intermedio.Rows.Count; i++) { fila = informacion.NewRow(); fila["Nombre"] = intermedio.Rows[i]["nombre_empresa"].ToString(); fila["Nit"] = intermedio.Rows[i]["nit"].ToString(); fila["Direccion"] = intermedio.Rows[i]["direccion_empresa"].ToString(); fila["Telefono"] = intermedio.Rows[i]["telefono_empresa"].ToString(); informacion.Rows.Add(fila); } return(datos); }
protected void Lb_cancelar_cita_Command(object sender, CommandEventArgs e) { if (e.CommandName.Equals("Eliminar")) { String ida = e.CommandArgument.ToString(); DAspirantes cancelar = new DAspirantes(); EAspirantes cosa = new EAspirantes(); cosa.IdAspirante = int.Parse(ida); cancelar.eliminarCita(cosa); Response.Redirect("VerPerfilAspirante.aspx"); } }
protected void bt_hoja_Click(object sender, EventArgs e) { //Consulta para saber si la hoja de vida esta llena int id = (int)Session["id"]; DAspirantes consultaHV = new DAspirantes(); consultaHV.VerificaHV(id); DataTable consultaHVA = consultaHV.VerificaHV(id); if (consultaHVA.Rows.Count > 0) { LB_HojaAspLlena.Text = "Hoja de vida llena, si quieres modificar ve a 'MODIFICAR HOJA DE VIDA'"; bt_hoja.Visible = false; } else { bt_hoja.Visible = true; Response.Redirect("DatosPersonalesA.aspx"); } }
protected void Page_Load(object sender, EventArgs e) { int idp = (int)Session["id"]; EAspirantes aspirante = new EAspirantes(); DAspirantes aspirantecompleto = new DAspirantes(); aspirante.IdAspirante = Int32.Parse(Convert.ToString(Request.QueryString["id"])); DataTable datosp = aspirantecompleto.AspiranteCompletoDatos(aspirante); DL_datosp.DataSource = datosp; DL_datosp.DataBind(); DataTable datosh = aspirantecompleto.ObternerHoja(aspirante); DL_hoja.DataSource = datosh; DL_hoja.DataBind(); Eperfil perfilcompleto = new Eperfil(); Dperfil perfil = new Dperfil(); perfilcompleto.Idasp = Int32.Parse(Convert.ToString(Request.QueryString["id"])); perfilcompleto.Estado = 2; DataTable perfilgp = perfil.obtenerPuntos(perfilcompleto); GV_puntos.DataSource = perfilgp; GV_puntos.DataBind(); DataTable perfilgc = perfil.obtenerComentariosAsp(perfilcompleto); GV_comentarios.DataSource = perfilgc; GV_comentarios.DataBind(); //Pinta suma de puntos Eperfil perf = new Eperfil(); Dperfil perfile = new Dperfil(); perf.Idasp = Int32.Parse(Convert.ToString(Request.QueryString["id"])); DataTable pinta = perfile.ObtienePuntosTotalesA(perf); DL_SumaPuntosAsp.DataSource = pinta; DL_SumaPuntosAsp.DataBind(); }
protected void Page_Load(object sender, EventArgs e) { if (Session["id"] == null || Session["nombre"] == null || Session["rol"] == null) { Response.Redirect("Loggin.aspx"); Response.Cache.SetNoStore(); } int idp = (int)Session["id"]; Eofertas mensaje = new Eofertas(); DAspirantes mostrarmensajes = new DAspirantes(); mensaje.Idempresa = (int)Session["id"]; DataTable mensajes = mostrarmensajes.MostrarMensajes(mensaje); DL_mensajes.DataSource = mensajes; DL_mensajes.DataBind(); //Envia id para las citas pendientes del aspirante DAspirantes miscitas = new DAspirantes(); miscitas.VerMisCitasAsp(idp); }