Exemple #1
0
 /**************************************************************************************************/
 private IDockContent GetContentFromPersistString(string persistString)
 {
     if (persistString == typeof (PedigreeForm).ToString())
     {
         pf = new PedigreeImageView();
         return pf;
     }
     else if (persistString == typeof(RiskScoresView).ToString())
     {
         rsv = new RiskScoresView();
         return rsv;
     }
     else if (persistString == typeof(PatientCommunicationView).ToString())
     {
         pcv = new PatientCommunicationView();
         pcv.PatientHeaderVisible = false;
         return pcv;
     }
     else
         return null;
 }
Exemple #2
0
        /**************************************************************************************************/
        private void HighRiskFollowupView_Load(object sender, EventArgs e)
        {
            trigger = false;
            object defaultClinic = null;
            foreach (Clinic c in SessionManager.Instance.ActiveUser.UserClinicList)
            {
                comboBox2.Items.Add(c);
                if (c.clinicID == defaultClinicId)
                {
                    defaultClinic = c;
                }
            }
            if (defaultClinic != null)
            {
                comboBox2.SelectedItem = defaultClinic;
            }
            if (SessionManager.Instance.ActiveUser.ModuleName == "HRAPedigreeModule")
            {
                checkBox1.Checked = false;
                newTask.Visible = false;
                notes.Visible = false;
                orders.Visible = false;
                copyApptButton.Visible = false;
                riskClinic.Text = "Clinic";
                button1.Text = "Delete Patient";
                addApptButton.Text = "Add Patient";
                editApptButton.Text = "Edit Patient";

                tableLayoutPanel1.ColumnStyles[0].SizeType = SizeType.Percent;
                tableLayoutPanel1.ColumnStyles[0].Width = 50;
                tableLayoutPanel1.ColumnStyles[1].SizeType = SizeType.Percent;
                tableLayoutPanel1.ColumnStyles[1].Width = 50;
                tableLayoutPanel1.ColumnStyles[2].SizeType = SizeType.Absolute;
                tableLayoutPanel1.ColumnStyles[2].Width = 0;
                tableLayoutPanel1.ColumnStyles[3].SizeType = SizeType.Absolute;
                tableLayoutPanel1.ColumnStyles[3].Width = 0;
                tableLayoutPanel1.ColumnStyles[4].SizeType = SizeType.Absolute;
                tableLayoutPanel1.ColumnStyles[4].Width = 0;

                fastDataListView1.Columns.Remove(olvColumn2);

                olvColumn10.DisplayIndex = 2;
            }
            else if (SessionManager.Instance.ActiveUser.ModuleName == "Pediatric")
            {
                newTask.Visible = false;
                notes.Visible = false;
                orders.Visible = false;

                tableLayoutPanel1.ColumnStyles[0].SizeType = SizeType.Percent;
                tableLayoutPanel1.ColumnStyles[0].Width = 50;
                tableLayoutPanel1.ColumnStyles[1].SizeType = SizeType.Percent;
                tableLayoutPanel1.ColumnStyles[1].Width = 50;
                tableLayoutPanel1.ColumnStyles[2].SizeType = SizeType.Absolute;
                tableLayoutPanel1.ColumnStyles[2].Width = 0;
                tableLayoutPanel1.ColumnStyles[3].SizeType = SizeType.Absolute;
                tableLayoutPanel1.ColumnStyles[3].Width = 0;
                tableLayoutPanel1.ColumnStyles[4].SizeType = SizeType.Absolute;
                tableLayoutPanel1.ColumnStyles[4].Width = 0;
                riskClinic.Text = "Pediatric Clinic";
            }
            else if (SessionManager.Instance.ActiveUser.ModuleName == "Breast Imaging")
            {
                riskClinic.Text = "Add/Edit Data";
            }

            fastDataListView1.Columns.Remove(olvColumn5);

            theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;

            SessionManager.Instance.ClearActivePatient();

            SessionManager.Instance.NewActivePatient +=
                new SessionManager.NewActivePatientEventHandler(NewActivePatient);

            //SessionManager.Instance.MetaData.UserGroups.AddHandlersWithLoad(null, UserGroupsLoaded, null);

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

            DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

            if (File.Exists(configFile))
                theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
            else
            {
                pf = new PedigreeImageView();
                pf.Show(theDockPanel);
                pf.DockState = DockState.Document;

                //rsv = new RiskScoresView();
                //rsv.Show(theDockPanel);
                //rsv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                //pcv = new PatientCommunicationView();
                //pcv.Show(theDockPanel);
                //pcv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

            }

            dateTimePicker1.Value = DateTime.Now;

            if (string.IsNullOrEmpty(SessionManager.Instance.UserGroup))
            {
                comboBox1.Text = SessionManager.Instance.ActiveUser.ToString();
            }
            else
            {
                comboBox1.Text = SessionManager.Instance.UserGroup;
            }

            CompositeAllFilter currentFilter = null;
            OlderApptFilter oaf = new OlderApptFilter();
            List<IModelFilter> listOfFilters = new List<IModelFilter>();
            listOfFilters.Add(oaf); //add the filter
            currentFilter = new CompositeAllFilter(listOfFilters);
            fastDataListView1.ModelFilter = currentFilter;

            trigger = true;
            GetNewAppointmentList();

            if (pf != null)
            {
                pf.Enabled = false;
                pf.Show();
            }
        }
        /**************************************************************************************************/
        private IDockContent GetContentFromPersistString(string persistString)
        {
            if (persistString == typeof(PedigreeForm).ToString())
            {
                pf = new PedigreeImageView();
                //pf.SetMode("MANUAL");
                return pf;
            }

            else if (persistString == typeof(GeneticTestingFamilySummaryView).ToString())
            {
                gtfsv = new GeneticTestingFamilySummaryView();
                return gtfsv;
            }
            else
                return null;
        }
        /**************************************************************************************************/
        private void PendingGeneticTestsView_Load(object sender, EventArgs e)
        {
            theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;
            SessionManager.Instance.ClearActivePatient();
            SessionManager.Instance.NewActivePatient += new RiskApps3.Controllers.SessionManager.NewActivePatientEventHandler(NewActivePatient);

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

            DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

            if (File.Exists(configFile))
                theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
            else
            {
                pf = new PedigreeImageView();
                //pf.SetMode("MANUAL");
                pf.Show(theDockPanel);
                pf.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                gtfsv = new GeneticTestingFamilySummaryView();  //can't modify view
                gtfsv.Show(theDockPanel);
                gtfsv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockBottom;

            }

            GetNewPendingGenTestList();

            if (pf != null)
            {
                pf.Enabled = false;
                pf.Show();
            }
        }
Exemple #5
0
        private IDockContent GetContentFromPersistString(string persistString)
        {
            if (persistString == typeof(PedigreeForm).ToString())
            {
                pf = new PedigreeImageView();
                pf.delayedDraw = true;
                //pf.SetMode("MANUAL");
                //pf.getPedigreeSettingsForm().showBrcaScores();
                pf.showBrcaScores = true;
                return pf;
            }

            if (persistString == typeof(GenTestRecommendationsView).ToString())
            {
                gtrv = new GenTestRecommendationsView();
                gtrv.Register(ChangeSyndromeDelegate);
                return gtrv;
            }
            else
                return null;
        }
Exemple #6
0
        /**************************************************************************************************/
        private void SimpleRiskModelView_Load(object sender, EventArgs e)
        {
            if (!ViewClosing)
            {
                theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;

                string configFile = SessionManager.SelectDockConfig("SimpleRiskModelViewDockPanel.config");
                DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

                if (File.Exists(configFile))
                    theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
                else
                {
                    pf = new PedigreeImageView();
                    pf.delayedDraw = true;
                    //pf.SetMode("MANUAL");
                    //pf.getPedigreeSettingsForm().showBrcaScores();
                    pf.showBrcaScores = true;
                    pf.Show(theDockPanel);
                    pf.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;

                    gtrv = new GenTestRecommendationsView();
                    gtrv.Register(ChangeSyndromeDelegate);
                    gtrv.Show(theDockPanel);
                    gtrv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.DockRight;
                }

                pf.DoDelayedDraw();
            }
        }
        /**************************************************************************************************/
        private void HighRiskFollowupView_Load(object sender, EventArgs e)
        {
            trigger = false;

            theDockPanel.AllowEndUserDocking = SessionManager.Instance.AllowDockDragAndDrop;
            SessionManager.Instance.ClearActivePatient();
            SessionManager.Instance.NewActivePatient += new RiskApps3.Controllers.SessionManager.NewActivePatientEventHandler(NewActivePatient);

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

            DeserializeDockContent m_deserializeDockContent = new DeserializeDockContent(GetContentFromPersistString);

            if (File.Exists(configFile))
                theDockPanel.LoadFromXml(configFile, m_deserializeDockContent);
            else
            {
                if (theQueue is BeingFollowedQueue)
                {
                    sfv = new SummaryFollowupView();
                    sfv.Show(theDockPanel);
                    sfv.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
                }
                else
                {
                    pf = new PedigreeImageView();
                    if (theQueue is BrcaPositiveQueue)  //show brca scores on pedigree when BrcaPos families
                    {
                        pf.showBrcaScores = true;
                    }
                    pf.Show(theDockPanel);
                    pf.DockState = WeifenLuo.WinFormsUI.Docking.DockState.Document;
                }
            }

            loadingCircle1.Enabled = true;
            loadingCircle1.Visible = true;
            theQueue.HraState = HraObject.States.Null;
            theQueue.AddHandlersWithLoad(null, QueueDataLoaded, null);

            if (pf != null)
            {
                pf.Enabled = false;
            }

            trigger = true;
        }
 /**************************************************************************************************/
 private IDockContent GetContentFromPersistString(string persistString)
 {
     if (theQueue is BeingFollowedQueue)
     {
         if (persistString == typeof(SummaryFollowupView).ToString())
         {
             sfv = new SummaryFollowupView();
             return sfv;
         }
         else
             return null;
     }
     else
     {
         if (persistString == typeof(PedigreeForm).ToString())
         {
             pf = new PedigreeImageView();
            // pf.SetMode("MANUAL");
             return pf;
         }
         else
             return null;
     }
 }
 /**************************************************************************************************/
 private IDockContent GetContentFromPersistString(string persistString)
 {
     if (persistString == typeof(PedigreeForm).ToString())
     {
         pf = new PedigreeImageView();
         //pf.SetMode("MANUAL");
         return pf;
     }
     else if (persistString == typeof(PatientNavigation).ToString())
     {
         pn = new PatientNavigation();
         //pn.AddViewToParent = this.AddViewToParent;
         return pn;
     }
     else if (persistString == typeof(SummaryFollowupView).ToString())
     {
         sfv = new SummaryFollowupView();
         //sfv.AddViewToParent = this.AddViewToParent;
         return sfv;
     }
     else if (persistString == typeof(PatientCommunicationView).ToString())
     {
         pcv = new PatientCommunicationView();
         //pcv.AddViewToParent = this.AddViewToParent;
         return pcv;
     }
     else if (persistString == typeof(GeneticTestingView).ToString())
     {
         gtv = new GeneticTestingView(false);
         return gtv;
     }
     else
         return null;
 }