예제 #1
0
        private void grv_quatrinhgiaiquyet_DoubleClick(object sender, EventArgs e)
        {
            form_quatrinhgiaiquyetkhieunai f = new form_quatrinhgiaiquyetkhieunai();

            f.bool_sua = true;
            try
            {
                int i = (int)grv_quatrinhgiaiquyet.GetFocusedRowCellValue("id_quatrinhgiaiquyetkhieunai");
                int y = (int)grv_quatrinhgiaiquyet.GetFocusedRowCellValue("id_thongtinkhieunai");
                f.id_quatrinhgiaiquyetkhieunai = i;
                f._id_thongtinkhieunai         = y;
                f.ShowDialog();
            }
            catch (Exception)
            {
                XtraMessageBox.Show("Vui lòng chọn đơn thư cần sửa");
            }
        }
        private void bar_sua_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            form_quatrinhgiaiquyetkhieunai f = new form_quatrinhgiaiquyetkhieunai
            {
                bool_sua = true
            };

            try
            {
                int    i = (int)grv_quatrinhgiaiquyet.GetFocusedRowCellValue("id_quatrinhgiaiquyetkhieunai");
                int    y = (int)grv_quatrinhgiaiquyet.GetFocusedRowCellValue("id_thongtinkhieunai");
                string _ketthucgiaiquyet = grv_quatrinhgiaiquyet.GetFocusedRowCellValue("statuss").ToString();
                f.checkxoasua = _ketthucgiaiquyet;
                f.id_quatrinhgiaiquyetkhieunai = i;
                f._id_thongtinkhieunai         = y;
                f.ShowDialog();
            }
            catch (Exception)
            {
                XtraMessageBox.Show("Vui lòng chọn đơn thư cần sửa");
            }
        }
        private void bar_them_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            form_quatrinhgiaiquyetkhieunai f = new form_quatrinhgiaiquyetkhieunai();

            f.ShowDialog();
        }