예제 #1
0
    protected void BTN_guarda_Click(object sender, EventArgs e)
    {
        String control = DateTime.Now.ToString("dd/MM/yyyy");

        if (DateTime.Parse(TB_fecha.Text) > DateTime.Parse(control))
        {
            L_CalendarioError.Text = "Ops! no es posible seleccionar una fecha superior a la actual";
        }
        else
        {
            EDatos  EFormA      = new EDatos();
            DIDatos experiencia = new DIDatos();
            EFormA.Titulo        = TB_titulo.Text;
            EFormA.LugarG        = TB_lugar.Text;
            EFormA.FechaG        = TB_fecha.Text;
            EFormA.TelefonoG     = TB_telefono.Text;
            EFormA.Certificacion = cargar();
            EFormA.Habilidad1    = TB_Hab1.Text;
            EFormA.Habilidad2    = TB_Hab2.Text;
            EFormA.Habilidad3    = TB_Hab3.Text;
            EFormA.Idregistro    = (int)Session["id"];


            experiencia.FormacionA(EFormA);
            Response.Redirect("FormacionA.aspx");
        }
    }
예제 #2
0
    protected void BTN_agregarE_Click(object sender, EventArgs e)
    {
        String control = DateTime.Now.ToString("dd/MM/yyyy");

        if (DateTime.Parse(TB_fechaC.Text) > DateTime.Parse(control))
        {
            L_ErrorCEmpresa.Text = "No puede seleeccionar una fecha mayor a la actual";
        }
        else
        {
            EDatos  EHojae  = new EDatos();
            DIDatos hojaEmp = new DIDatos();
            EHojae.Idempresa    = (int)Session["id"];
            EHojae.NombreE      = TB_nombreE.Text;
            EHojae.FormaJ       = TB_formaJ.Text;
            EHojae.FechaCons    = TB_fechaC.Text;
            EHojae.DireccionE   = TB_direccionE.Text;
            EHojae.TelefonoE    = TB_telefonoE.Text;
            EHojae.SectorE      = TB_sectorE.Text;
            EHojae.NumEmpleados = TB_numEmpleado.Text;
            EHojae.Nit          = TB_Nit.Text;
            EHojae.Pais         = TB_paisE.Text;
            EHojae.Departamento = TB_deptoE.Text;
            EHojae.Ciudad       = TB_ciudadE.Text;
            EHojae.TipoE        = (DDL_TipoEmpresa.SelectedItem).ToString();
            EHojae.Pagina       = TB_pagina.Text;
            EHojae.Logo         = cargar();

            hojaEmp.HojaEmpresa(EHojae);
            Response.Redirect("VerAspirantes.aspx");
        }
    }
예제 #3
0
    protected void BTN_agrega_Click(object sender, EventArgs e)
    {
        DIDatos tipoE = new DIDatos();
        EDatos  tipo  = new EDatos();

        tipo.Idregistro = (int)Session["id"];
        tipo.TerminoE   = (RBL_termino.SelectedItem).ToString();
        tipo.HorarioE   = (DDL_horario.SelectedItem).ToString();
        tipo.TiempoE    = (RBL_tiempo.SelectedItem).ToString();
        tipo.Session    = Session.SessionID;
        tipo.Hoja       = cargarHoja();
        tipoE.TipoE(tipo);
        Response.Redirect("VerOfertas.aspx");
    }