Exemple #1
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtcant.Text) == false)
            {
                MessageBox.Show("Llene la cantidad");
                return;
            }

            if (int.Parse(txtcant.Text) <= 0)
            {
                MessageBox.Show("La cantidad no pueder ser menor a 1");
                return;
            }

            Base_de_datos.Registro_RopaEx(int.Parse(txtcod.Text), textBox1.Text.ToUpper(), (int.Parse(txtcant.Text) + cant), cat);
            Base_de_datos.movimientoRopaIng(int.Parse(txtcod.Text), textBox1.Text.ToUpper(), int.Parse(txtcant.Text));

            MessageBox.Show("Prenda Ingresada.");

            Base_de_datos busc = new Base_de_datos();

            busc.BuscarPrenda();
            dataGridView1.DataSource = busc.Mostrar_Resultados();
            txtcod.Clear();
            textBox1.Clear();
            txtcant.Clear();

            DialogResult = DialogResult.OK;

            this.Hide();
        }
Exemple #2
0
        private void ingresoPrendaExisntente_Load(object sender, EventArgs e)
        {
            Base_de_datos busc = new Base_de_datos();

            busc.BuscarPrenda();
            dataGridView1.DataSource = busc.Mostrar_Resultados();
        }