Esempio n. 1
0
        public static void IngresarFicha(String IdFicha, String DcumentoInstructor, String IdPrograma, String Jornada, DateTime FefchaInicio1, DateTime FechaFin1, String Estado)
        {
            try
            {
                SqlCommand   Commando;
                ConnectionBD Puente;
                Puente   = new ConnectionBD();
                Commando = new SqlCommand("insert into Ficha (IdFicha,DocumentoInstructor,IdPrograma,Jornada,FechaInicio,FechaFin,Estado)  values('" + IdFicha.ToUpper() + "','"
                                          + DocumentoInstructor.ToUpper() + "','" + IdPrograma.ToUpper() + "','"
                                          + Jornada.ToUpper() + "','" + FechaInicio1 + "','" + FechaFin1
                                          + "','" + Estado + "')", Puente.RetornarConnexion());
                Commando.ExecuteNonQuery();

                MessageBox.Show("INGRESO EXITOSO");
                Commando.Dispose();
            }
            catch (Exception ex)
            {
                MessageBox.Show("INGRESO ERRONEO");
            }
        }