private void btnAdd_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            frmDanhMuc_PhongBan_Update frm = new frmDanhMuc_PhongBan_Update(true, "Thêm Phòng ban", "PB", null, "frmDanhSachPhongBan");

            frm.Owner = this;
            frm.ShowDialog();
        }
        private void btnEdit_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            if (!btnEdit.Enabled)
            {
                return;
            }
            int Selectedrow = gridItemDetail.FocusedRowHandle;

            if (Selectedrow >= 0)
            {
                DataRow dr     = gridItemDetail.GetDataRow(Selectedrow);
                string  _Value = dr["DepartmentCode"].ToString();
                frmDanhMuc_PhongBan_Update frm = new frmDanhMuc_PhongBan_Update(false, "Sửa tên phòng ban", "PB", _Value, "frmDanhMuc_PhongBan");
                frm.Owner = this;
                frm.ShowDialog();
            }
        }