private void barButtonItemPhanQuyenNhomDanhBa_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (navBarControl1.SelectedLink == null) return; long nhomDanhBaID = HelpNumber.ParseInt64(navBarControl1.SelectedLink.Item.Name); if (nhomDanhBaID <= 0) return; frmPermissionDataPopUp frm = new frmPermissionDataPopUp(DanhBaDCPermission.I,new DOResource(-1, nhomDanhBaID, -1, null)); HelpProtocolForm.ShowModalDialog(this, frm); }
private void barButtonItem2_ItemClick(object sender, ItemClickEventArgs e) { DataRow row = gridViewDSCongviec.GetFocusedDataRow(); if (row == null) return; DOResource resource = new DOResource(HelpNumber.ParseInt64(row["ID"]), HelpNumber.ParseInt64(row["LOAI_TAI_LIEU_ID"]), HelpNumber.ParseInt64(row["NGUOI_CAP_NHAT"]), DateTime.Parse(row["NGAY_CAP_NHAT"].ToString())); //frmPermissionEmployeeTaiLieuPopUp frm = new frmPermissionEmployeeTaiLieuPopUp(resoure); frmPermissionDataPopUp frm = new frmPermissionDataPopUp(TaiLieuPermission.I, resource); HelpProtocolForm.ShowModalDialog(this, frm); }