示例#1
0
        private void barButtonouverture_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            run();
            overt ov = new overt();

            ov.ShowDialog();
            select_Overt_Data();
        }
示例#2
0
        private void barButtonItem_modifier_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //modification


            var      row2 = gridViewOvert.FocusedRowHandle;
            int      id3;
            string   cellattributaire;
            string   cellMontant;
            string   cellnum_Marcher;
            int      celldélai_dexecution;
            string   cellcaution_return;
            string   cellcaution_definitif;
            DateTime celldate_Visa;
            DateTime celldate_approbation;
            DateTime celldatenotifiy;
            DateTime delldate_caution;

            int cell_validate;


            id3 = int.Parse(gridViewOvert.GetRowCellValue(row2, "id3").ToString());
            cellattributaire      = gridViewOvert.GetRowCellValue(row2, "attributaire").ToString();
            cellMontant           = gridViewOvert.GetRowCellValue(row2, "Montant").ToString();
            cellnum_Marcher       = gridViewOvert.GetRowCellValue(row2, "num_Marcher").ToString();
            celldélai_dexecution  = int.Parse(gridViewOvert.GetRowCellValue(row2, "délai_dexecution").ToString());
            cellcaution_return    = (gridViewOvert.GetRowCellValue(row2, "caution_return").ToString());
            cellcaution_definitif = (gridViewOvert.GetRowCellValue(row2, "caution_definitif").ToString());
            celldate_Visa         = Convert.ToDateTime(gridViewOvert.GetRowCellValue(row2, "date_Visa").ToString());
            celldate_approbation  = Convert.ToDateTime(gridViewOvert.GetRowCellValue(row2, "date_approbation").ToString());
            celldatenotifiy       = Convert.ToDateTime(gridViewOvert.GetRowCellValue(row2, "datenotifiy").ToString());
            delldate_caution      = Convert.ToDateTime(gridViewOvert.GetRowCellValue(row2, "date_caution").ToString());

            overt ovs = new overt(id3, cellattributaire, cellMontant, cellnum_Marcher, celldélai_dexecution, cellcaution_return, cellcaution_definitif, celldate_Visa, celldate_approbation, celldatenotifiy, delldate_caution);

            ovs.ShowDialog();
            select_Overt_Data();
        }