Example #1
0
 private void BTN_DETAIL_Click(object sender, EventArgs e)
 {
     if (bs.Current != null)
     {
         DataRowView        drv   = (DataRowView)bs.Current;
         CHM_FICHE_COMMANDE fiche = new CHM_FICHE_COMMANDE(drv["CODE_COMMANDE"].ToString());
         fiche.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
         fiche.Show();
     }
 }
Example #2
0
 private void dgv_LISTE_COMMANDE_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (bs.Current != null)
     {
         DataRowView        drv   = (DataRowView)bs.Current;
         CHM_FICHE_COMMANDE fiche = new CHM_FICHE_COMMANDE(drv["CODE_COMMANDE"].ToString());
         fiche.MdiParent = CLIENT_APP_PARAM.Fenetre_principale;
         fiche.Show();
     }
 }
Example #3
0
 private void BTN_AJOUTER_Click(object sender, EventArgs e)
 {
     try
     {
         CHMGC.RESULT_QUERY res = CLIENT_APP_PARAM.gcws.VERIFIER_INVENTAIRE_MAGAZIN(Convert.ToDecimal(CLIENT_APP_PARAM.CODE_MAG));
         if (res.OK)
         {
             CHM_FICHE_COMMANDE cmd = new CHM_FICHE_COMMANDE("-1");
             cmd.WindowState = FormWindowState.Maximized;
             cmd.RightToLeft = RightToLeft.No;
             cmd.MdiParent   = CLIENT_APP_PARAM.Fenetre_principale;
             cmd.Show();
         }
         else
         {
             MessageBox.Show("Magasin encours d'inventaire.", this.Text);
         }
     }
     catch (Exception er)
     {
         MessageBox.Show(er.Message);
     }
 }