예제 #1
0
        private void barButtonItem4_ItemClick_1(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            //modifier la quantité de piece commandée
            int count = gridView1.DataRowCount;

            if (count != 0 && gridView1.FocusedRowHandle != DevExpress.XtraGrid.GridControl.AutoFilterRowHandle)
            {
                System.Data.DataRow row = gridView1.GetDataRow(gridView1.FocusedRowHandle);
                req_id = Convert.ToInt32(row[0]);
                etat   = 1;
                quantite_piece qq = new quantite_piece();
                qq.ShowDialog();
            }
        }
예제 #2
0
        //private void lookUpEdit3_EditValueChanged(object sender, EventArgs e)
        //{
        //    fr = tfr.EditValue.ToString();
        //}


        private void barButtonItem1_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            int count = gridView1.DataRowCount;

            if (count != 0 && gridView1.FocusedRowHandle != DevExpress.XtraGrid.GridControl.AutoFilterRowHandle)
            {
                System.Data.DataRow row = gridView1.GetDataRow(gridView1.FocusedRowHandle);
                test = "y";
                lib  = row[1].ToString();
                pua  = Convert.ToDouble(row[7].ToString().Replace('.', ','));

                int_piece = Convert.ToString(row[0]);
                quantite_piece qq = new quantite_piece();
                qq.ShowDialog();
            }
        }