Beispiel #1
0
        private void btnComment_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            Guid guid = (Guid)grvTienDoCongViec.GetFocusedRowCellValue("Id");

            try
            {
                YKienGiamDoc yKienGiamDoc = new YKienGiamDoc();
                yKienGiamDoc.IdGDVanBanDen = guid;
                yKienGiamDoc._Edit         = false;
                yKienGiamDoc.ShowDialog();
            }
            catch (Exception)
            {
                XtraMessageBox.Show("Kiểm tra lại thông tin đã nhập");
            }
        }
Beispiel #2
0
        private void grvYKienGiamDoc_DoubleClick(object sender, EventArgs e)
        {
            Guid guid            = (Guid)grvYKienGiamDoc.GetFocusedRowCellValue("Id");
            Guid guidGDVanBanDen = (Guid)grvTienDoCongViec.GetFocusedRowCellValue("Id");

            try
            {
                YKienGiamDoc frm = new YKienGiamDoc();
                frm._Edit         = true;
                frm.IdEdit        = guid;
                frm.IdGDVanBanDen = guidGDVanBanDen;
                frm.ShowDialog();
            }
            catch (Exception)
            {
                XtraMessageBox.Show("Lỗi kết nối với cơ sở dữ liệu");
            }
        }