private void buttonX2_Click(object sender, EventArgs e) { if (dataGridViewX1.Rows.Count != 0) { ModelVente form = new ModelVente(); form.MVent = new MetierAvoirClient(); SizeF s = new SizeF(form.groupBox1.Size.Width + form.groupBox4.Size.Width + form.groupBox2.Size.Width, form.groupBox1.Size.Height); form.groupBox1.Size = s.ToSize(); form.groupBox4.Visible = false; form.groupBox2.Visible = false; form.Tcom.Visible = false; form.ControlStock = true; form.LCOM.Visible = false; form.Lnum.Text = "N° Avoir"; this.Visible = false; form.NumFact = dataGridViewX1.CurrentRow.Cells["NuM"].Value + ""; form.ISMODIF = true; this.Visible = false; int ind = dataGridViewX1.CurrentRow.Index; form.ShowDialog(); buttonX1_Click(sender, e); this.Visible = true; dataGridViewX1.CurrentCell = dataGridViewX1[1, ind]; } }
private void buttonX5_Click(object sender, EventArgs e) { if (met.verif_invent()) { ModelVente form = new ModelVente(); form.MVent = new MetierBonClient(); SizeF s = new SizeF(form.groupBox3.Width, groupBox1.Size.Height); form.groupBox1.Size = s.ToSize(); form.groupBox4.Visible = false; form.groupBox2.Visible = false; form.Tcom.Visible = false; form.ControlStock = true; form.LCOM.Visible = false; Point p = new Point(700, 19); form.ldate.Location = p; Point p1 = new Point(744, 15); form.datefact.Location = p1; form.Lnum.Text = "N° Bon"; this.Visible = false; form.ShowDialog(); this.Visible = true; buttonX1_Click(sender, e); } }
private void buttonX5_Click(object sender, EventArgs e) { ModelVente form = new ModelVente(); form.MVent = new MetierCommandeClient(); form.ControlStock = false; SizeF s = new SizeF(form.groupBox1.Size.Width + form.groupBox4.Size.Width + form.groupBox2.Size.Width, form.groupBox1.Size.Height); form.groupBox1.Size = s.ToSize(); form.groupBox4.Visible = false; form.groupBox2.Visible = false; form.Tcom.Visible = false; form.ControlStock = false; form.LCOM.Visible = false; Point p = new Point(700, 19); form.ldate.Location = p; Point p1 = new Point(744, 15); form.datefact.Location = p1; form.Lnum.Text = "N° Comande"; form.ControlPrix = false; form.ControlComplement = false; this.Visible = false; form.ShowDialog(); this.Visible = true; buttonX1_Click(sender, e); }
private void buttonX5_Click(object sender, EventArgs e) { if (met.verif_invent()) { ModelVente form = new ModelVente(); form.ControlStock = false; form.MVent = new MetierFactureClientSansStock(); form.Lnum.Text = "N° Facture:"; this.Visible = false; form.ShowDialog(); this.Visible = true; buttonX1_Click(sender, e); } }
private void buttonX5_Click(object sender, EventArgs e) { if (met.verif_invent()) { ModelVente form = new ModelVente(); form.MVent = new MetierLivraisonClient(); SizeF s = new SizeF(form.groupBox1.Size.Width + form.groupBox4.Size.Width, form.groupBox1.Size.Height); form.groupBox1.Size = s.ToSize(); form.groupBox4.Visible = false; form.ControlStock = true; form.Lnum.Text = "N° livraison:"; this.Visible = false; form.ShowDialog(); this.Visible = true; buttonX1_Click(sender, e); } }
private void buttonX2_Click(object sender, EventArgs e) { if (dataGridViewX1.Rows.Count != 0) { ModelVente form = new ModelVente(); form.MVent = new MetierFactureClientSansStock(); form.Lnum.Text = "N° Facture"; form.ControlStock = false; form.NumFact = dataGridViewX1.CurrentRow.Cells["NuM"].Value + ""; form.ISMODIF = true; this.Visible = false; int ind = dataGridViewX1.CurrentRow.Index; form.ShowDialog(); buttonX1_Click(sender, e); this.Visible = true; dataGridViewX1.CurrentCell = dataGridViewX1[1, ind]; } }
private void buttonItem1_Click(object sender, EventArgs e) { ModelVente form = new ModelVente(); form.MVent = new MetierAvoirClient(); SizeF s = new SizeF(form.groupBox1.Size.Width + form.groupBox4.Size.Width + form.groupBox2.Size.Width, form.groupBox1.Size.Height); form.groupBox1.Size = s.ToSize(); form.groupBox4.Visible = false; form.groupBox2.Visible = false; form.Tcom.Visible = false; form.ControlStock = true; form.LCOM.Visible = false; form.Lnum.Text = "N° Avoir"; this.Visible = false; form.ShowDialog(); this.Visible = true; buttonX1_Click(sender, e); }