private void gridMain_CellClick(object sender, ODGridClickEventArgs e) { long sheetNum = (long)gridMain.Rows[e.Row].Tag; Sheet sheet = Sheets.GetSheet(sheetNum); GotoModule.GotoFamily(sheet.PatNum); }
private void menuItemFamily_Click(object sender, EventArgs e) { if (!Security.IsAuthorized(Permissions.FamilyModule)) { return; } if (gridMain.SelectedIndices.Length == 0) { MsgBox.Show(this, "Please select a patient first."); return; } long patNum = PIn.Long(gridMain.SelectedTag <DataRow>()["PatNum"].ToString()); GotoModule.GotoFamily(patNum); }
private void butGotoFamily_Click(object sender, EventArgs e) { if (!Security.IsAuthorized(Permissions.FamilyModule)) { return; } if (gridMain.SelectedIndices.Length == 0) { MsgBox.Show(this, "Please select a radiology order first."); return; } Procedure proc = (Procedure)gridMain.ListGridRows[gridMain.GetSelectedIndex()].Tag; GotoModule.GotoFamily(proc.PatNum); }
private void butGotoFamily_Click(object sender, EventArgs e) { if (!Security.IsAuthorized(Permissions.FamilyModule)) { return; } if (gridMain.SelectedIndices.Length == 0) { MsgBox.Show(this, "Please select a patient first."); return; } WindowState = FormWindowState.Minimized; long patNum = PIn.Long(table.Rows[gridMain.SelectedIndices[0]]["PatNum"].ToString()); GotoModule.GotoFamily(patNum); }