Exemple #1
0
        /**************************************************************************************************/
        private void buttonCalcRiskScores_Click(object sender, EventArgs e)
        {
            if (proband != null)
            {
                loadingCircle1.Active = true;
                loadingCircle1.Visible = true;
                this.Enabled = false;

                RunRiskModelsDialog rrmd = new RunRiskModelsDialog(false);
                rrmd.ShowDialog();
                //proband.RecalculateRisk();

                //proband.RP.BackgroundLoadWork();

                //FillControls();

                loadingCircle1.Active = false;
                loadingCircle1.Visible = false;
                this.Enabled = true;
            }
        }
Exemple #2
0
 private void markForAutomationToolStripMenuItem_Click(object sender, EventArgs e)
 {
     Appointment appt = ((Appointment) (fastDataListView1.SelectedObject));
     if (appt == null)
     {
         return;
     }
     appt.MarkComplete();
     RunRiskModelsDialog rsmd = new RunRiskModelsDialog(true);
     rsmd.ShowDialog();
     //Appointment.MarkForAutomation(appt.apptID);
     MessageBox.Show("Risk data recalculated and automation documents run (if any.)", "Automation Complete", MessageBoxButtons.OK, MessageBoxIcon.Information);
     //Appointment.MarkForAutomation(appt.apptID);
     //MessageBox.Show("Appointment Marked for Automation.");
 }
Exemple #3
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            foreach (Person p in SessionManager.Instance.GetActivePatient().FHx.Relatives)
            {
                p.RP.HraState = HraObject.States.Null;
            }

            loadingCircle1.Active = true;
            loadingCircle1.Visible = true;
            toolStripButton1.Enabled = false;

            //SessionManager.Instance.GetActivePatient().RecalculateRisk();
            RunRiskModelsDialog rsmd = new RunRiskModelsDialog();
            rsmd.ShowDialog();

            loadingCircle1.Active = false;
            loadingCircle1.Visible = false;
            toolStripButton1.Enabled = true;

            RefreshView();
        }
Exemple #4
0
        private void EditSurveyForm_FormClosing(object sender, FormClosingEventArgs e)
        {
            if (MessageBox.Show("Do you want to calculate risk and generate doucments?", "Run Risk and Generate Documents", MessageBoxButtons.YesNo) == System.Windows.Forms.DialogResult.Yes)
            {
                RunRiskModelsDialog rrmd = new RunRiskModelsDialog(true);
                rrmd.ShowDialog();
            }

            int a = SessionManager.Instance.GetActivePatient().apptid;
            string u = SessionManager.Instance.GetActivePatient().unitnum;
            FinalizeRecordForm frm = new FinalizeRecordForm(a, u);
            frm.ShowDialog();

            theDockPanel.Visible = false;

            string configFile = SessionManager.SelectDockConfig("EditSurveyFormDockPanel.config");

            if (SessionManager.Instance.SaveLayoutOnClose)
                theDockPanel.SaveAsXml(configFile);

            CloseChildView(efhv);
            CloseChildView(pcv);
            CloseChildView(acrf);
            CloseChildView(mmHx);

            patientRecordHeader1.ReleaseListeners();
        }