Ejemplo n.º 1
0
        private void btn_ajout_Click(object sender, EventArgs e)
        {
            CLIENT_APP_PARAM.ds_param.bsArticle.AddNew();
            ((DataRowView)CLIENT_APP_PARAM.ds_param.bsArticle.Current)["CODE_ARTICLE"] = -1;
            CHM_NV_ARTICLE f = new CHM_NV_ARTICLE(CLIENT_APP_PARAM.ds_param.bsArticle);

            f.Enregistrer += new CHM_NV_ARTICLE.Enregistrer_event(f_Enregistrer);
            f.ShowDialog();
        }
Ejemplo n.º 2
0
        private void buttonENREGISTRER_Click(object sender, EventArgs e)
        {
            bs.AddNew();
            ((DataRowView)bs.Current)["CODE_ARTICLE"] = "-1";
            CHM_NV_ARTICLE fiche = new CHM_NV_ARTICLE(bs);

            fiche.Enregistrer += new CHM_NV_ARTICLE.Enregistrer_event(fiche_Enregistrer);
            fiche.ShowDialog();
        }
Ejemplo n.º 3
0
 private void BTN_MODIFIER_Click(object sender, EventArgs e)
 {
     try
     {
         if (bs.Current != null)
         {
             DataRowView    drv   = (DataRowView)bs.Current;
             CHM_NV_ARTICLE fiche = new CHM_NV_ARTICLE(bs);
             fiche.Enregistrer += new CHM_NV_ARTICLE.Enregistrer_event(fiche_Enregistrer);
             fiche.ShowDialog();
         }
     }
     catch (Exception er)
     {
         MessageBox.Show(er.Message, this.Text);
     }
 }
Ejemplo n.º 4
0
        private void btn_selection_Click(object sender, EventArgs e)
        {
            if (fermer != null)
            {
                fermer();
            }
            DataRowView drv          = (DataRowView)bs.Current;
            string      code_article = drv["CODE_ARTICLE"].ToString();

            this.Close();
            CLIENT_APP_PARAM.ds_param.bsArticle.AddNew();
            ((DataRowView)bs.Current)["CODE_ARTICLE"] = -1;
            CHM_NV_ARTICLE f = new CHM_NV_ARTICLE(CLIENT_APP_PARAM.ds_param.bsArticle);

            f.StartPosition = FormStartPosition.CenterScreen;
            f.RightToLeft   = RightToLeft.No;
            //f.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
            f.ShowDialog();
        }
Ejemplo n.º 5
0
 private void CMS_MODIFIER_ARTICLE_Click(object sender, EventArgs e)
 {
     try
     {
         if (bs.Current != null)
         {
             CHM_NV_ARTICLE f = new CHM_NV_ARTICLE(bs);
             f.Enregistrer += new CHM_NV_ARTICLE.Enregistrer_event(f_Enregistrer);
             f.OnClosing   += new CHM_NV_ARTICLE.Closing(f_OnClosing);
             f.ShowDialog();
         }
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, this.Text);
     }
     finally
     {
     }
 }
Ejemplo n.º 6
0
        private void CMS_NV_ARTICLE_Click(object sender, EventArgs e)
        {
            bs.AddNew();

            DataRowView drv = (DataRowView)bs.Current;

            drv["CODE_ARTICLE"]     = -1;
            drv["CODE_UNITE"]       = 1;
            drv["CODE_MARQUE"]      = 1;
            drv["CODE_TVA"]         = 1;
            drv["CODE_FAMILLE"]     = 1;
            drv["CODE_MAG"]         = 1;
            drv["CODE_FOURNISSEUR"] = 1;
            drv["CODE_CATEG"]       = 1;


            CHM_NV_ARTICLE f = new CHM_NV_ARTICLE(bs);

            f.Enregistrer += new CHM_NV_ARTICLE.Enregistrer_event(f_Enregistrer);
            f.OnClosing   += new CHM_NV_ARTICLE.Closing(f_OnClosing);
            f.ShowDialog();
        }