Ejemplo n.º 1
0
        public DataTable obtenerPerfil(UAspirante perfilsito)
        {
            DAspirante llevaIdAsp      = new DAspirante();
            DataTable  llevarPerfilAsp = llevaIdAsp.obtenerPerfil(perfilsito);

            return(llevarPerfilAsp);
        }
Ejemplo n.º 2
0
    protected void bt_agregar_Click(object sender, EventArgs e)
    {
        UAspirante control   = new UAspirante();
        LAspirante controlar = new LAspirante();

        control.Finicio = DateTime.Parse(tb_inicio.Text);
        control.Ffin    = DateTime.Parse(tb_inicio.Text);

        //control = controlar.ValidaHoras(control);

        LB_ErrorFechasAsp.Text = control.MensajeError;

        control.Idr      = (int)Session["id"];
        control.Nombre   = tb_nomemp.Text;
        control.Cargo    = tb_cargo.Text;
        control.Jefe     = tb_jefe.Text;
        control.Telefono = tb_telefonoE.Text;
        control.Funcion  = tb_funcion.Text;
        control.Finicio  = DateTime.Parse(tb_inicio.Text);
        control.Ffin     = DateTime.Parse(tb_fin.Text);

        control = controlar.ValidaHoras(control);

        ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", control.Url, false);
        Page.ClientScript.RegisterStartupScript(Page.GetType(), "Message", control.Url);
    }
Ejemplo n.º 3
0
 protected void Page_Load(object sender, EventArgs e)
 {
     int        idp       = (int)Session["id"];
     int        Idperfil  = int.Parse(idp.ToString());
     UAspirante mostrarP  = new UAspirante();
     LAspirante mispuntos = new LAspirante();
 }
Ejemplo n.º 4
0
    protected void BTN_guarda_Click(object sender, EventArgs e)
    {
        UAspirante control   = new UAspirante();
        LAspirante controlar = new LAspirante();
        String     hoy       = DateTime.Now.ToString("dd/MM/yyyy");

        control.Fecha = DateTime.Parse(TB_fecha.Text);
        control.Hoy   = DateTime.Parse(hoy);



        control.Idr        = (int)Session["id"];
        control.Titulo     = TB_titulo.Text;
        control.Lugar      = TB_lugar.Text;
        control.Fecha      = DateTime.Parse(TB_fecha.Text);
        control.TelefonoF  = TB_telefono.Text;
        control.DocumentoF = cargarimagen();
        control.Habilidad1 = TB_Hab1.Text;
        control.Habilidad2 = TB_Hab2.Text;
        control.Habilidad3 = TB_Hab3.Text;
        control            = controlar.ValidaHoy(control);


        L_CalendarioError.Text = control.MensajeError;


        Response.Redirect(control.Url2);
        ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", control.Url, false);
        Page.ClientScript.RegisterStartupScript(Page.GetType(), "Message", control.Url);
    }
Ejemplo n.º 5
0
        public DataTable Exlaboral(UAspirante expl) //
        {
            DataTable        datosR   = new DataTable();
            NpgsqlConnection conectar = new NpgsqlConnection(ConfigurationManager.ConnectionStrings["MiConexion"].ConnectionString);

            try
            {
                NpgsqlDataAdapter dataAdapter = new NpgsqlDataAdapter("uniempleo.f_exp_laboral", conectar);
                dataAdapter.SelectCommand.CommandType = CommandType.StoredProcedure;


                dataAdapter.SelectCommand.Parameters.Add("_nombreemp", NpgsqlDbType.Text).Value      = expl.Nombre;
                dataAdapter.SelectCommand.Parameters.Add("_cargo", NpgsqlDbType.Text).Value          = expl.Cargo;
                dataAdapter.SelectCommand.Parameters.Add("_jefe", NpgsqlDbType.Text).Value           = expl.Jefe;
                dataAdapter.SelectCommand.Parameters.Add("_telefono", NpgsqlDbType.Text).Value       = expl.Telefono;
                dataAdapter.SelectCommand.Parameters.Add("_funcionesd", NpgsqlDbType.Text).Value     = expl.Funcion;
                dataAdapter.SelectCommand.Parameters.Add("_id_registro", NpgsqlDbType.Integer).Value = expl.Idr;
                dataAdapter.SelectCommand.Parameters.Add("_fechainicio", NpgsqlDbType.Date).Value    = expl.Finicio;
                dataAdapter.SelectCommand.Parameters.Add("_fechafin", NpgsqlDbType.Date).Value       = expl.Ffin;



                conectar.Open();
                dataAdapter.Fill(datosR);
            }
            catch (Exception Ex)
            {
                throw Ex;
            }

            return(datosR);
        }
Ejemplo n.º 6
0
    protected void TB_Listo_Click(object sender, EventArgs e)
    {
        String     control   = DateTime.Now.ToString("dd/MM/yyyy");
        UAspirante controla  = new UAspirante();
        LAspirante llevaHora = new LAspirante();

        controla.ControlTime     = DateTime.Parse(control);
        controla.FechaNacimiento = DateTime.Parse(C_FechanacimientoA.Text);



        controla.IdUser          = (int)Session["id"];
        controla.Nombre          = tb_nombre.Text;
        controla.Apellido        = tb_apellido.Text;
        controla.FechaNacimiento = DateTime.Parse(C_FechanacimientoA.Text);
        controla.DireccionP      = TB_Direccion.Text;
        controla.CelularP        = int.Parse(TB_Celular.Text);
        controla.DocumentoP      = int.Parse(TB_Documento.Text);
        controla.Sexo            = (DDL_Sexo.SelectedItem).ToString();
        controla.Estadocivil     = (RBL_Estado.SelectedItem).ToString();
        controla.Foto            = cargarimagen();
        controla.Sesion          = Session.SessionID;
        controla.Estado          = 1;
        controla = llevaHora.ValidacionHora(controla);

        L_ErrorCalendario.Text = controla.Mensaje;
        Response.Redirect(controla.Url);
        ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", controla.Url2, false);
        Page.ClientScript.RegisterStartupScript(Page.GetType(), "Message", controla.Url2);
    }
Ejemplo n.º 7
0
        public DataTable obtenerPerfil(UAspirante idper) //Int32 _id_asp
        {
            DataTable        perfil   = new DataTable();
            NpgsqlConnection conexion = new NpgsqlConnection(ConfigurationManager.ConnectionStrings["MiConexion"].ConnectionString);

            try
            {
                NpgsqlDataAdapter dataAdapter = new NpgsqlDataAdapter("uniempleo.f_obtener_perfil", conexion);
                dataAdapter.SelectCommand.CommandType = CommandType.StoredProcedure;
                dataAdapter.SelectCommand.Parameters.Add("_id_asp", NpgsqlDbType.Integer).Value = idper.IdUser;

                conexion.Open();
                dataAdapter.Fill(perfil);
            }
            catch (Exception Ex)
            {
                throw Ex;
            }
            finally
            {
                if (conexion != null)
                {
                    conexion.Close();
                }
            }
            return(perfil);
        }
Ejemplo n.º 8
0
        public DataTable BuscarOfertas(UAspirante buscare)
        {
            DataTable        user     = new DataTable();
            NpgsqlConnection conectar = new NpgsqlConnection(ConfigurationManager.ConnectionStrings["MiConexion"].ConnectionString);

            try
            {
                NpgsqlDataAdapter dataAdapter = new NpgsqlDataAdapter("uniempleo.f_buscar_ofertas", conectar);
                dataAdapter.SelectCommand.Parameters.Add("_buscar", NpgsqlDbType.Text).Value = buscare.Busqueda;
                dataAdapter.SelectCommand.CommandType = CommandType.StoredProcedure;

                dataAdapter.Fill(user);
            }
            catch (Exception Ex)
            {
                throw Ex;
            }
            finally
            {
                if (conectar != null)
                {
                    conectar.Close();//
                }
            }
            return(user);
        }
Ejemplo n.º 9
0
        public DataTable FormacionA(UAspirante aspif)
        {
            DataTable        documentos = new DataTable();
            NpgsqlConnection conection  = new NpgsqlConnection(ConfigurationManager.ConnectionStrings["MiConexion"].ConnectionString);

            try
            {
                NpgsqlDataAdapter dataAdapter = new NpgsqlDataAdapter("uniempleo.formacion", conection);
                dataAdapter.SelectCommand.CommandType = CommandType.StoredProcedure;


                dataAdapter.SelectCommand.Parameters.Add("_titulo", NpgsqlDbType.Text).Value        = aspif.Titulo;
                dataAdapter.SelectCommand.Parameters.Add("_lugarg", NpgsqlDbType.Text).Value        = aspif.Lugar;
                dataAdapter.SelectCommand.Parameters.Add("_fechag", NpgsqlDbType.Timestamp).Value   = aspif.Fecha;
                dataAdapter.SelectCommand.Parameters.Add("_telefonog", NpgsqlDbType.Text).Value     = aspif.Telefono;
                dataAdapter.SelectCommand.Parameters.Add("_documentos", NpgsqlDbType.Varchar).Value = aspif.Documento;
                dataAdapter.SelectCommand.Parameters.Add("_habilidad1", NpgsqlDbType.Text).Value    = aspif.Habilidad1;
                dataAdapter.SelectCommand.Parameters.Add("_habilidad2", NpgsqlDbType.Text).Value    = aspif.Habilidad2;
                dataAdapter.SelectCommand.Parameters.Add("_habilidad3", NpgsqlDbType.Text).Value    = aspif.Habilidad3;
                dataAdapter.SelectCommand.Parameters.Add("_idregistro", NpgsqlDbType.Integer).Value = aspif.Idr;



                conection.Open();
                dataAdapter.Fill(documentos);
            }
            catch (Exception Ex)
            {
                throw Ex;
            }

            return(documentos);
        }
Ejemplo n.º 10
0
        public UAspirante modificarDatosP(Int32 Idpm)
        {
            DAspirante datosP          = new DAspirante();
            DataTable  modificarDatos  = datosP.modificarPerfil(Idpm);
            UAspirante datosPersonales = new UAspirante();

            datosPersonales.Url = "Modificar_H_Aspi.aspx";
            return(datosPersonales);
        }
    protected void bt_hoja_Click(object sender, EventArgs e)
    {
        int        id          = (int)Session["id"];
        UAspirante verificar   = new UAspirante();
        LAspirante verificarHV = new LAspirante();

        verificar = verificarHV.VerificarHoja(int.Parse(id.ToString()));

        Response.Redirect(verificar.Url);
    }
Ejemplo n.º 12
0
        public UAspirante modificarDatosP(Int32 Idpm, String Nombre, String Apellido, String Nacimiento, String Direccion, String Celular, String Estado, String documento, String sexo, Int32 id_aspirante,
                                          String nombre_aspirante, String apellido_aspirante, String fecha_nacim, String direccion_asp, String telefono_asp, String estado_civil)
        {
            DAspirante datosP          = new DAspirante();
            DataTable  modificarDatos  = datosP.Editardp(Idpm, Nombre, Apellido, Nacimiento, Direccion, Celular, Estado, documento, sexo, id_aspirante, nombre_aspirante, apellido_aspirante, fecha_nacim, direccion_asp, telefono_asp, estado_civil);
            UAspirante datosPersonales = new UAspirante();

            datosPersonales.Url = "Modificar_H_Aspi.aspx";
            return(datosPersonales);
        }
Ejemplo n.º 13
0
        public DataTable mostrar(Int32 idc)
        {
            DAspirante datos    = new DAspirante();
            DataTable  muestra  = datos.obtenerComentarios(idc);
            UAspirante capturar = new UAspirante();



            capturar.Url = "VerPerfilAspirante.aspx";
            return(muestra);
        }
Ejemplo n.º 14
0
        public DataTable editartipoe(Int32 Idf, String terminoc, String horarioT, String TiempoC, Int32 id_tipo_empleo, String termino_empleo, String horario_empleo, String tiempo_empleo)
        {
            DAspirante datos    = new DAspirante();
            DataTable  muestra  = datos.EditarTipoe(Idf, terminoc, horarioT, TiempoC, id_tipo_empleo, termino_empleo, horario_empleo, tiempo_empleo);
            UAspirante capturar = new UAspirante();



            capturar.Url = "Modificar_H_Aspi.aspx";
            return(muestra);
        }
Ejemplo n.º 15
0
        public DataTable mostrartipoe(Int32 idf)
        {
            DAspirante datos       = new DAspirante();
            DataTable  muestratipo = datos.obtenerTipoe(idf);
            UAspirante capturar    = new UAspirante();



            capturar.Url = "Modificar_H_Aspi.aspx";
            return(muestratipo);
        }
Ejemplo n.º 16
0
        public DataTable editarFacae(Int32 Idf, String titulo, String Lugar, String Telefono, String Habi1, String Habi2, String Habi3, Int32 id_formacion, String habilidad1, String habilidad2, String habilidad3, String lugar_grado, String telefono_lugar)
        {
            DAspirante datos    = new DAspirante();
            DataTable  muestra  = datos.EditarFacae(Idf, titulo, Lugar, Telefono, Habi1, Habi2, Habi3, id_formacion, habilidad1, habilidad2, habilidad3, lugar_grado, telefono_lugar);
            UAspirante capturar = new UAspirante();



            capturar.Url = "Modificar_H_Aspi.aspx";
            return(muestra);
        }
Ejemplo n.º 17
0
        public UAspirante EnviarFacade(UAspirante faspi)
        {
            DAspirante formacion = new DAspirante();
            DataTable  academica = formacion.FormacionA(faspi);

            UAspirante enviarm = new UAspirante();

            enviarm.Url          = "VerOfertas.aspx";
            enviarm.Mensaje      = "Registrado correctamente";
            enviarm.MensajeError = "NO SE PUEDE REGISTRAR UNA FECHA ANTERIOR A ESTA";
            return(enviarm);
        }
Ejemplo n.º 18
0
        public UAspirante modificarExperienciaL(Int32 Idex)
        {
            DAspirante datosEL = new DAspirante();
            DataTable  modificarExperiencia = datosEL.obtenerExpL(Idex);

            UAspirante experiencia = new UAspirante();



            experiencia.Url = "Modificar_H_Aspi.aspx";
            return(experiencia);
        }
Ejemplo n.º 19
0
        public UAspirante MensajeCita(String mensaje, Int32 idAspirante, Int32 IdOferta, DateTime fechaSolicitud, String Sesion)
        {
            DAspirante mensajeC    = new DAspirante();
            DataTable  mensajecita = mensajeC.Mensaje(mensaje, idAspirante, IdOferta, fechaSolicitud, Sesion);

            UAspirante enviarcita = new UAspirante();

            //enviarm.Url = @"<script type='text/javascript'>Redir_VerOfertas();</script>";
            enviarcita.Url     = "VerOfertas.aspx";
            enviarcita.Mensaje = "Registrado correctamente";
            return(enviarcita);
        }
Ejemplo n.º 20
0
        public UAspirante cerrarSesion(Int32 sesion)
        {
            DAspirante cerrarSesion = new DAspirante();
            DataTable  datosSesion  = cerrarSesion.cerrarSesion(sesion);
            UAspirante cerrar       = new UAspirante();

            if (datosSesion == null)
            {
                cerrar.Url = "Loggin.aspx";// funcion de response redirect
            }
            return(cerrar);
        }
Ejemplo n.º 21
0
        public UAspirante ValidacionUrl(UAspirante link)
        {
            if (link.IdUser.Equals(null) || link.UserName.Equals(null) || link.RolId.Equals(null) || link.RolId != 2)
            {
                link.IdUser.Equals(null);
                link.UserName.Equals(null);
                link.RolId.Equals(null);
                link.Url = @"<script type='text/javascript'>Redir_Login();</script>";
            }

            return(link);
        }
Ejemplo n.º 22
0
        public UAspirante modificarExperienciaL(Int32 Idexp, String nombre, String cargo, String jefe, String telefono, String funcion, Int32 id_experiencia, String nombre_empresa, String funciones)
        {
            DAspirante datosEL = new DAspirante();
            DataTable  modificarExperiencia = datosEL.EditarExpl(Idexp, nombre, cargo, jefe, telefono, funcion, id_experiencia, nombre_empresa, funciones);

            UAspirante experiencia = new UAspirante();



            experiencia.Url = "Modificar_H_Aspi.aspx";
            return(experiencia);
        }
Ejemplo n.º 23
0
        public UAspirante RTipoEmpleo(UAspirante tipoEmpleo, Int32 idRegistro, String TerminoCon, String Horario, String TiempoEmpleo, String Hoja, String Sesion)
        {
            DAspirante tipoE      = new DAspirante();
            DataTable  Tipoempleo = tipoE.TipoE(idRegistro, TerminoCon, Horario, TiempoEmpleo, Hoja, Sesion);

            UAspirante enviarm = new UAspirante();

            //enviarm.Url = @"<script type='text/javascript'>Redir_InicioAspirante();</script>";
            enviarm.Url     = "VerOfertas.aspx";
            enviarm.Mensaje = "Registrado correctamente";
            return(enviarm);
        }
Ejemplo n.º 24
0
    protected void Page_Load(object sender, EventArgs e)
    {
        UAspirante csesion = new UAspirante();
        LAspirante captura = new LAspirante();
        int        idasp   = int.Parse(Session["id"].ToString());
        string     nom     = Session["nombre"].ToString();
        string     rol     = Session["rol"].ToString();

        csesion = captura.ValidaS(csesion);


        Response.Cache.SetNoStore();
    }
Ejemplo n.º 25
0
    protected void Page_Load(object sender, EventArgs e)
    {
        UAspirante validaLinkc  = new UAspirante();
        LAspirante validaLinkVO = new LAspirante();

        validaLinkc.IdUser   = int.Parse(Session["id"].ToString());
        validaLinkc.UserName = Session["nombre"].ToString();
        validaLinkc.RolId    = int.Parse(Session["rol"].ToString());
        validaLinkc          = validaLinkVO.ValiUrlVO(validaLinkc);

        ScriptManager.RegisterStartupScript(this, typeof(Page), "invocarfuncion", validaLinkc.Url, false);
        Page.ClientScript.RegisterStartupScript(Page.GetType(), "Message", validaLinkc.Url);
        Response.Cache.SetNoStore();
    }
Ejemplo n.º 26
0
        public UAspirante ValiUrlVO(UAspirante linksito)
        {
            UAspirante deusoVO = new UAspirante();

            if (linksito.IdUser.Equals(null) || linksito.UserName.Equals(null) || linksito.RolId.Equals(null) || linksito.RolId != 2)
            {
                deusoVO.IdUser.Equals(null);
                deusoVO.UserName.Equals(null);
                deusoVO.RolId.Equals(null);
                deusoVO.Url = @"<script type='text/javascript'>Redir_Login();</script>";
            }

            return(deusoVO);
        }
Ejemplo n.º 27
0
        public UAspirante EnviarFacade(UAspirante faspi)

        {
            DAspirante formacion = new DAspirante();

            DataTable academica = formacion.FormacionA(faspi);

            UAspirante enviarm = new UAspirante();

            enviarm.Url          = @"<script type='text/javascript'>Dire_expl();</script>";
            enviarm.Mensaje      = "Registrado correctamente";
            enviarm.MensajeError = "NO SE PUEDE REGISTRAR UNA FECHA ANTERIOR A ESTA";
            return(enviarm);
        }
Ejemplo n.º 28
0
        public UAspirante ValidaS(UAspirante ses)
        {
            UAspirante sesi = new UAspirante();

            if (ses.Idr.Equals(null) || ses.Nombre.Equals(null) || ses.Cargo.Equals(null) || int.Parse(ses.Cargo) != 2)
            {
                ses.Idr.Equals(null);
                ses.Nombre.Equals(null);
                ses.Cargo.Equals(null);

                ses.Url = @"<script type = 'text/javascript'>Dire_log();</script>";
            }
            return(ses);
        }
Ejemplo n.º 29
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (Session["id"] == null || Session["nombre"] == null || Session["rol"] == null || (int)Session["rol"] != 2)
        {
            Session["id"]     = null;
            Session["nombre"] = null;
            Session["rol"]    = null;
            Response.Redirect("Loggin.aspx");
            Response.Cache.SetNoStore();
        }

        int idp = (int)Session["id"];


        //Pinta el perfil personal del aspirante

        //El DataTable se puede usar dentro de los controladores web :3

        UAspirante perfilcompleto = new UAspirante();

        LAspirante perfil = new LAspirante();

        perfilcompleto.IdUser = int.Parse(idp.ToString());

        DataTable perfilp = perfil.obtenerPerfil(perfilcompleto);

        DL_perfil.DataSource = perfilp;

        DL_perfil.DataBind();

        //GridView para los puntos

        int        Idperfil  = int.Parse(idp.ToString());
        UAspirante mostrarP  = new UAspirante();
        LAspirante mispuntos = new LAspirante();

        GV_puntos.DataBind();


        //comentarios

        // DataTable perfilgc = perfil.obtenerComentarios(perfilcompleto);
        //GV_comentarios.DataSource = perfilgc;
        // GV_comentarios.DataBind();

        // Muestra los puntos totales
        LB_PuntosVaciosAsp.Visible = true;
    }
Ejemplo n.º 30
0
        public UAspirante ValidacionHora(UAspirante hora)
        {
            UAspirante ValFecha = new UAspirante();

            if (hora.FechaNacimiento > hora.ControlTime)
            {
                ValFecha.Mensaje = "No puede seleeccionar una fecha anterior";
            }
            else
            {
                DAspirante llenaDatosP = new DAspirante();
                llenaDatosP.RegistraAspirante(hora);
                ValFecha.Url2 = @"<script type='text/javascript'>Redir_FormacionA();</script>";
                ValFecha.Url  = "FormacionA.aspx";
            }
            return(ValFecha);
        }