Exemple #1
0
        private void button3_Click(object sender, EventArgs e)
        {
            this.Cursor = Cursors.WaitCursor;

            try
            {
                if (buttonENREGISTRER.Enabled == false)
                {
                    Application.DoEvents();
                    CHM_FICHE_BON_LIVRAISON fiche = new CHM_FICHE_BON_LIVRAISON(CODE_COMMANDE.Text, dt_lg_commande);
                    fiche.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
                    fiche.Show();
                }
                else
                {
                    MessageBox.Show("Veuillez tout d'abord enregistrer la commande", "Attention", MessageBoxButtons.OK, MessageBoxIcon.Stop);
                }
            }
            catch (Exception er)
            {
                MessageBox.Show(er.Message, "Erreur", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
            finally
            {
                this.Cursor = Cursors.Default;
            }
        }
Exemple #2
0
 private void BTN_AJOUTER_Click(object sender, EventArgs e)
 {
     try
     {
         DataTable dt = CLIENT_APP_PARAM.gcws.SELECT_ALL_MAGAZIN();
         if (dt.Rows.Count > 0)
         {
             CHM_FICHE_BON_LIVRAISON f = new CHM_FICHE_BON_LIVRAISON();
             //f.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
             //f.WindowState = FormWindowState.Maximized;
             f.StartPosition = FormStartPosition.CenterScreen;
             f.OnClose      += new CHM_FICHE_BON_LIVRAISON.WindowClose(f_OnClose);
             f.ShowDialog();
         }
         else
         {
             MessageBox.Show("Veuillez pramètrer vos magasins");
         }
     }
     catch (Exception er)
     {
         MessageBox.Show(er.Message);
     }
 }