示例#1
0
        private void Btn_genee_Click(object sender, EventArgs e)
        {
            string contenido = combo1.texto2();
            int    existe    = combo1.existe(contenido);

            if (existe == -1)
            {
                MessageBox.Show("El dato ingresado es incorecto!!");
            }
            logic.nuevoQuery(crearInsert());
            logic.nuevoQuery(crearInsertco(logic.nuevoEMPCON(), logic.nuevoEMPCONSU()));
            logic.nuevoQuery(crearInsertco1(logic.nuevoEMPCON(), logic.nuevoEMPCONSU()));
            logic.nuevoQuery(crearInsertco2(logic.nuevoEMPCON(), logic.nuevoEMPCONSU()));
            logic.nuevoQuery(crearInsertco3(logic.nuevoEMPCON(), logic.nuevoEMPCONSU()));
            Mostraremp();
            Txt_nombre.Text   = "";
            Txt_apellido.Text = "";
            txt_correo.Text   = "";
            Txt_cui.Text      = "";
            Txt_dire.Text     = "";
            Txt_nit.Text      = "";
            Cbo_sex.Text      = "";
            combo1.texto(vacio);
            combo2.texto(vacio);
            Btn_genee.Enabled    = false;
            Txt_nombre.Enabled   = false;
            Txt_apellido.Enabled = false;
            Cbo_sex.Enabled      = false;
            Txt_cui.Enabled      = false;
            txt_correo.Enabled   = false;
            combo1.Enabled       = false;
            combo2.Enabled       = false;
            Txt_nit.Enabled      = false;
            Txt_dire.Enabled     = false;
            DTP_fechana.Enabled  = false;
            Btn_can.Enabled      = false;
            progres();
            MessageBox.Show("El empleado se registró correctamente.");
        }
示例#2
0
 public Asignacioncone(string user)
 {
     InitializeComponent();
     usuario                      = user;
     LblUsuario.Text              = usuario;
     lbl_ID.Text                  = logic.nuevoEMPCON();
     dateTimePicker2.Format       = DateTimePickerFormat.Custom;
     dateTimePicker2.CustomFormat = "yyyy-MM-dd";
     dateTimePicker3.Format       = DateTimePickerFormat.Custom;
     dateTimePicker3.CustomFormat = "yyyy-MM-dd";
     combo3.llenarse("tipo_concepto", "id_tipo", "nombre");
     //  Txt_emplecon.Text= logic.nuevoEMPCON();
     Mostraremp();
 }