Пример #1
0
        private void articulosToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            ConsArt obj = new ConsArt();

            obj.MdiParent = this;
            obj.Show();
        }
Пример #2
0
        public override void Consultar()
        {
            ConsArt obj = new ConsArt();

            if (obj.ShowDialog() == DialogResult.OK)
            {
                codigo.Text = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString();
                codigo.Focus();
                SendKeys.Send("{TAB}");
            }
        }
Пример #3
0
        private void btn_ConsArt_Click(object sender, EventArgs e)
        {
            ConsArt obj = new ConsArt();

            if (obj.ShowDialog() == DialogResult.OK)
            {
                txt_CodArt.Text      = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[0].Value.ToString();
                txt_NomArt.Text      = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[1].Value.ToString();
                txt_PreVen.Text      = obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[2].Value.ToString();
                Cant_exi             = 0;
                Cant_exi             = Convert.ToInt16(obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[7].Value.ToString());
                txt_disponibles.Text = "Disponibles: " + obj.dataGridView1.Rows[obj.dataGridView1.CurrentCell.RowIndex].Cells[7].Value.ToString();
            }
            else
            {
                txt_disponibles.Text = "";
            }
        }