示例#1
0
 private void nav_gest_devis_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e)
 {
     timer2.Start();
     if (SplashScreenManager.Default != null && SplashScreenManager.Default.IsSplashFormVisible)
     {
         SplashScreenManager.CloseForm();
     }
     SplashScreenManager.ShowForm(typeof(WaitForm1));
     if (list_dev == null)
     {
         list_dev = new liste_devis();
     }
     else
     {
         wait = 1;
     }
     list_dev.MdiParent = Form1.ActiveForm;
     list_dev.Show();
     list_dev.BringToFront();
 }
示例#2
0
        public CreationDevis(liste_devis listDevis)
        {
            InitializeComponent();
            list_dev = listDevis;
            clients();
            pieces();

            darttab = new DataTable();
            darttab.Clear();
            darttab.Columns.Add("code_piece");
            darttab.Columns.Add("libelle_piece");
            darttab.Columns.Add("quantite_piece");
            darttab.Columns.Add("id_clt");

            darttab.Columns.Add("puv");
            darttab.Columns.Add("pv");
            darttab.Columns.Add("remise");
            darttab.Columns.Add("ttva");
            darttab.Columns.Add("unite");
            tnumcommandebase.Text = (get_max_id_devis() + 1).ToString();
        }
示例#3
0
        private void Liste_devis()
        {
            liste_devis listdevis = new liste_devis();

            listdevis.gridControl1.DataSource = null;
            listdevis.gridView1.Columns.Clear();
            listdevis.gridControl1.DataSource      = fun.get_devis();
            listdevis.gridView1.Columns[0].Caption = "Code Devis";
            listdevis.gridView1.Columns[1].Caption = "Date d'ajout de Devis";
            listdevis.gridView1.Columns[2].Visible = false;
            listdevis.gridView1.Columns[3].Visible = false;
            listdevis.gridView1.Columns[4].Caption = "Etat de Devis ";
            listdevis.gridView1.Columns[5].Caption = "Client";

            listdevis.gridView1.Columns[6].Visible            = false;
            listdevis.gridView1.Columns[7].Visible            = false;
            listdevis.gridView1.Columns[8].Visible            = false;
            listdevis.gridView1.Columns[9].Visible            = false;
            listdevis.gridView1.Columns[10].Visible           = false;
            listdevis.gridView1.Columns[11].Visible           = false;
            listdevis.gridView1.Columns[12].Visible           = false;
            listdevis.gridView1.OptionsView.ShowAutoFilterRow = true;
            listdevis.Show();
        }