示例#1
0
 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];
     }
 }
示例#2
0
        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);
            }
        }
示例#3
0
        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);
        }
示例#4
0
 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);
     }
 }
示例#5
0
 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);
     }
 }
示例#6
0
 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];
     }
 }
示例#7
0
        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);
        }