Beispiel #1
0
        public void AgregarCodigo()
        {
            ServiciosIngresoBD servicioIngreso = new ServiciosIngresoBD();

            servicioIngreso.Agregar();
            //ServiciosBusquedaBD busqueda = new ServiciosBusquedaBD();
            //busqueda.BuscarPorCodigo(getCodigo(), dgvServicioNuevo);

            txtNombreServicioIngreso.Clear();
            txtCodigoServicioIngreso.Clear();
            txtPrecioServicioIngreso.Clear();
        }
Beispiel #2
0
        private void BtnAceptarServicioIngreso_Click(object sender, EventArgs e)
        {
            ServiciosIngresoBD servicioIngreso = new ServiciosIngresoBD();

            servicioIngreso.Agregar();
            //ServiciosBusquedaBD busqueda = new ServiciosBusquedaBD();
            //busqueda.BuscarPorCodigo(getCodigo(), dgvServicioNuevo);

            txtNombreServicioIngreso.Clear();
            txtCodigoServicioIngreso.Clear();
            txtPrecioServicioIngreso.Clear();
        }
Beispiel #3
0
        private void BtnAceptarServicioIngreso_Click(object sender, EventArgs e)
        {
            //conexion.AbrirConexion();
            //SqlCommand cmd = new SqlCommand("insert into Multicentro.dbo.servicio (codigoservicio,nombre,precio)" +
            //        " values('" + Int32.Parse(txtCodigoServicioIngreso.Text) + "', '" + txtNombreServicioIngreso.Text + "', '" + Int32.Parse(txtPrecioServicioIngreso.Text) + "')", conexion.GetSqlConnection());
            //cmd.ExecuteNonQuery();

            //MessageBox.Show("Información agregada");
            //conexion.CerrarConexion();

            ServiciosIngresoBD servicioIngreso = new ServiciosIngresoBD();

            servicioIngreso.Agregar();

            txtNombreServicioIngreso.Clear();
            txtCodigoServicioIngreso.Clear();
            txtPrecioServicioIngreso.Clear();
        }