Exemple #1
0
        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);
        }
Exemple #2
0
        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);
        }
Exemple #4
0
        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);
        }