Esempio n. 1
0
 private void butGohome_Click(object sender, EventArgs e)
 {
     if (_currentCtr.DoSomthingBeforeUnload())
     {
         this._currentCtr = new SiteSelection(_mforecast, _artSites);
         LoadCurrentCtr();
     }
 }
Esempio n. 2
0
 private void butNext_Click(object sender, EventArgs e)
 {
     if (_currentCtr.DoSomthingBeforeUnload())
     {
         _currentCtr = GetMorbidityControl(_nextCtr);
         LoadCurrentCtr();
     }
 }
Esempio n. 3
0
        public void LoadDashBoard()
        {
            if (_mforecast.StatusEnum == ForecastStatusEnum.CLOSED)
            {
                this._currentCtr = new DashboardForm(_mforecast);


                lblColapse.Visible = false;
                lblExpand.Visible  = true;
                splitContainer2.Panel2Collapsed = true;
                LoadCurrentCtr();
            }
        }
Esempio n. 4
0
        private void InitNavigation()
        {
            if (_mforecast.StatusEnum == ForecastStatusEnum.CLOSED)
            {
                LoadDashBoard();
            }
            else
            {
                this._currentCtr = new SiteSelection(_mforecast, _artSites);
            }

            LoadCurrentCtr();
        }
Esempio n. 5
0
 public void LoadForecastResult()
 {
     this._currentCtr = new CalculateForm(_mforecast);
     LoadCurrentCtr();
 }
Esempio n. 6
0
        private BaseMorbidityControl GetMorbidityControl(MorbidityCtrEnum ctr)
        {
            BaseMorbidityControl mcontrol = null;

            switch (ctr)
            {
            case MorbidityCtrEnum.SiteSelection:
                mcontrol = new SiteSelection(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.OptRecentData:
                mcontrol = new OptRecentData(_mforecast);
                break;

            case MorbidityCtrEnum.FromRecentData:
                mcontrol = new FromRecentData(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.FromOldData:
                mcontrol = new FromOldData(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.OptTreatmentTarget:
                mcontrol = new OptTreatmentTarget(_mforecast);
                break;

            case MorbidityCtrEnum.OptArtPatientTarget:
                mcontrol = new OptArtPatientTarget(_mforecast);
                break;

            case MorbidityCtrEnum.OpEverStartedPatientTarget:
                mcontrol = new OpEverStartedPatientTarget(_mforecast);
                break;

            case MorbidityCtrEnum.SiteTargetCalculator:
                mcontrol = new SiteTargetCalculator(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.PatientNumbersSites:
                mcontrol = new PatientNumbersSites(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.OptPreTreatmentPatientTargets:
                mcontrol = new OptPreTreatmentPatientTargets(_mforecast);
                break;

            case MorbidityCtrEnum.SiteTargetCalculatorPreART:
                mcontrol = new SiteTargetCalculatorPreART(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.PreTxNumbersSites:
                mcontrol = new PreTxNumbersSites(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.TestingInformation:
                mcontrol = new TestingInformation(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.TestingEfficiency:
                mcontrol = new TestingEfficiency(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.AdultPatientBehavior:
                mcontrol = new AdultPatientBehavior(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.PediatricPatientBehavior:
                mcontrol = new PediatricPatientBehavior(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.EverStartedRecentData:
                mcontrol = new EverStartedRecentData(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.EverStartedOldData:
                mcontrol = new EverStartedOldData(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.EverStartedNoData:
                mcontrol = new EverStartedNoData(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.RapidTestSerial:
                mcontrol = new RapidTestSerial(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.RapidTestParallel:
                mcontrol = new RapidTestParallel(_mforecast, _artSites);
                break;

            case MorbidityCtrEnum.InvAssumption:
                mcontrol = new InvAssumption(_mforecast, _invAssumption);
                break;

            case MorbidityCtrEnum.CheckupForm:
                mcontrol = new CheckupForm(_mforecast, _invAssumption, _artSites, _mdiparent);
                break;

            case MorbidityCtrEnum.CalculateForm:
                mcontrol = new CalculateForm(_mforecast);
                break;

            case MorbidityCtrEnum.Dashboard:
                mcontrol = new DashboardForm(_mforecast);
                break;

            case MorbidityCtrEnum.RapidTestProtocol:
                mcontrol = new RapidTestProtocol(_mforecast);
                break;

            case MorbidityCtrEnum.TestProtocolsCd4:
                mcontrol = new TestProtocols(_mforecast, ClassOfMorbidityTestEnum.CD4, _mdiparent);
                break;

            case MorbidityCtrEnum.TestProtocolsChem:
                mcontrol = new TestProtocols(_mforecast, ClassOfMorbidityTestEnum.Chemistry, _mdiparent);
                break;

            case MorbidityCtrEnum.TestProtocolsHem:
                mcontrol = new TestProtocols(_mforecast, ClassOfMorbidityTestEnum.Hematology, _mdiparent);
                break;

            case MorbidityCtrEnum.TestProtocolsVir:
                mcontrol = new TestProtocols(_mforecast, ClassOfMorbidityTestEnum.ViralLoad, _mdiparent);
                break;

            case MorbidityCtrEnum.TestProtocolsOther:
                mcontrol = new TestProtocols(_mforecast, ClassOfMorbidityTestEnum.OtherTest, _mdiparent);
                break;
            }

            if (ctr == MorbidityCtrEnum.SiteSelection)
            {
                butGohome.Enabled = false;
            }
            else
            {
                butGohome.Enabled = true;
            }

            return(mcontrol);
        }