Beispiel #1
0
 private void gridMain_CellClick(object sender, ODGridClickEventArgs e)
 {
     if (gridMain.SelectedGridRows.Count == 0)           //When deselecting with CTR+Click.
     {
         return;
     }
     GotoModule.GotoChart(PIn.Long(gridMain.SelectedTag <DataRow>()["PatNum"].ToString()));
 }
Beispiel #2
0
        ///<summary>Goes to the chart module of the patient of the selected voicemail.</summary>
        private void GoToChart()
        {
            if (gridVoiceMails.SelectedCell.Y == -1 || gridVoiceMails.ListGridRows.Count <= gridVoiceMails.SelectedCell.Y ||
                !Security.IsAuthorized(Permissions.ChartModule))
            {
                return;
            }
            VoiceMail voiceMailCur = (VoiceMail)gridVoiceMails.ListGridRows[gridVoiceMails.SelectedCell.Y].Tag;

            GotoModule.GotoChart(voiceMailCur.PatNum);
        }
Beispiel #3
0
        ///<summary>If multiple patients are selected in UnchedList, will select the last patient to remain consistent with sending to pinboard behavior.</summary>
        private void SeeChart_Click()
        {
            if (grid.SelectedIndices.Length == 0)
            {
                MsgBox.Show(this, "Please select an appointment first.");
                return;
            }
            Patient pat = Patients.GetPat(_listUnschedApt[grid.SelectedIndices[grid.SelectedIndices.Length - 1]].PatNum);        //If multiple selected, just take the last one to remain consistent with SendPinboard_Click.

            FormOpenDental.S_Contr_PatientSelected(pat, false);
            GotoModule.GotoChart(pat.PatNum);
        }
        private void mainGridMenuItemPatChart_Click(object sender, EventArgs e)
        {
            List <GridRow> listSelected = gridMain.SelectedGridRows;

            if (listSelected.Count == 1)
            {
                long        aptNum = PIn.Long(listSelected[0].Tag.ToString());
                Appointment apt    = Appointments.GetOneApt(aptNum);
                GotoModule.GotoChart(apt.PatNum);
                DialogResult = DialogResult.OK;
            }
        }
Beispiel #5
0
        private void SeeChart_Click()
        {
            if (gridMain.SelectedIndices.Length == 0)
            {
                MsgBox.Show(this, "Please select an appointment first.");
                return;
            }
            //Only one can be selected at a time in this grid, but just in case we change it in the future it will select the last one in the list to be consistent with other patient selections.
            Patient pat = Patients.GetPat(_listPlannedAppts[gridMain.SelectedIndices[gridMain.SelectedIndices.Length - 1]].PatNum);

            FormOpenDental.S_Contr_PatientSelected(pat, false);
            GotoModule.GotoChart(pat.PatNum);
        }
Beispiel #6
0
        private void userControlTasks1_GoToChanged(object sender, EventArgs e)
        {
            TaskObjectType gotoType   = userControlTasks1.GotoType;
            long           gotoKeyNum = userControlTasks1.GotoKeyNum;

            if (gotoType == TaskObjectType.Patient)
            {
                if (gotoKeyNum != 0)
                {
                    Patient pat = Patients.GetPat(gotoKeyNum);
                    //OnPatientSelected(pat);
                    if (IsTriage)
                    {
                        GotoModule.GotoChart(pat.PatNum);
                    }
                    else
                    {
                        GotoModule.GotoAccount(pat.PatNum);
                    }
                }
            }
            if (gotoType == TaskObjectType.Appointment)
            {
                if (gotoKeyNum != 0)
                {
                    Appointment apt = Appointments.GetOneApt(gotoKeyNum);
                    if (apt == null)
                    {
                        MsgBox.Show(this, "Appointment has been deleted, so it's not available.");
                        return;
                        //this could be a little better, because window has closed, but they will learn not to push that button.
                    }
                    DateTime dateSelected = DateTime.MinValue;
                    if (apt.AptStatus == ApptStatus.Planned || apt.AptStatus == ApptStatus.UnschedList)
                    {
                        //I did not add feature to put planned or unsched apt on pinboard.
                        MsgBox.Show(this, "Cannot navigate to appointment.  Use the Other Appointments button.");
                        //return;
                    }
                    else
                    {
                        dateSelected = apt.AptDateTime;
                    }
                    Patient pat = Patients.GetPat(apt.PatNum);
                    //OnPatientSelected(pat);
                    GotoModule.GotoAppointment(dateSelected, apt.AptNum);
                }
            }
            //DialogResult=DialogResult.OK;
        }
        private void butGotoChart_Click(object sender, EventArgs e)
        {
            if (!Security.IsAuthorized(Permissions.ChartModule))
            {
                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.GotoChart(proc.PatNum);
        }
Beispiel #8
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            if (gridMain.SelectedIndices.Length != 1)
            {
                return;
            }
            if (!Security.IsAuthorized(Permissions.ChartModule))
            {
                return;
            }
            long goToPatNum = PIn.Long(gridMain.Rows[e.Row].Tag.ToString());

            SendToBack();
            GotoModule.GotoChart(goToPatNum);
        }
Beispiel #9
0
        private void goToChartToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (gridMain.SelectedIndices.Length != 1)
            {
                MsgBox.Show(this, "Please select a patient first.");
                return;
            }
            if (!Security.IsAuthorized(Permissions.ChartModule))
            {
                return;
            }
            long    patNum = PIn.Long(gridMain.Rows[gridMain.SelectedIndices[0]].Tag.ToString());
            Patient pat    = Patients.GetPat(patNum);

            FormOpenDental.S_Contr_PatientSelected(pat, false);
            SendToBack();
            GotoModule.GotoChart(pat.PatNum);
        }
Beispiel #10
0
 private void gridMain_CellClick(object sender, ODGridClickEventArgs e)
 {
     GotoModule.GotoChart(PIn.Long(table.Rows[e.Row]["PatNum"].ToString()));
 }