public OpEverStartedPatientTarget(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            InitializeComponent();

            if (forecast.OptEverStartedPatientTarget > 0)
            {
                switch (forecast.EverStartedPatientTargetEnum)
                {
                    case OptEverStartedPatientTargetEnum.RecentData:
                        _activeCheckBox = chbRecentdata;
                        break;
                    case OptEverStartedPatientTargetEnum.OldData:
                        _activeCheckBox = chbOlddata;
                        break;
                    case OptEverStartedPatientTargetEnum.NoData:
                        _activeCheckBox = chbNodata;
                        break;
                }
                _activeCheckBox.Checked = true;
            }
            else
            {
                OnNextButtonStatusChanged(false);
            }

            chbNodata.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbOlddata.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbRecentdata.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
        }
Exemplo n.º 2
0
        //private IList<ARTSite> _artSites;
        //private InventoryAssumption _invAssumption;
        //private MorbidityForm _morbidityForm;
        //private MorbidityCalculater _mCalculaterEngine;
        //delegate void SetProgressBarCallBack(int value);
        //SetProgressBarCallBack _setProgressValue;
        //delegate void SetTextCallBack(int value);
        //SetTextCallBack _setProgressText;
        public CalculateForm(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            //this._artSites = artsites;
            //this._invAssumption = invAssumption;

            InitializeComponent();

            if (_forecast.StatusEnum != ForecastStatusEnum.OPEN)
            {
                LoadPatientAssumptions();
                LoadCD4Assumptions();
                LoadHematologyAssumptions();
                LoadViralLoadAssumptions();
                LoadRapidTestAssumptions();
                LoadChemistryAssumptions();
                LoadOtherTestAssumptions();
                LoadTotalCost();
            }
            else
            {
                chartPatientAss.Hide();
                chartCd4Assumptions.Hide();
                chartHematology.Hide();
                chartViralload.Hide();
                chartRapidTest.Hide();
                chartTotalCost.Hide();
                chartChemistry.Hide();
                chartOthertest.Hide();
            }
        }
Exemplo n.º 3
0
        public DashboardForm(MorbidityForecast forecast)
        {
            this._forecast = forecast;

            InitializeComponent();
            LoadDashBoard();
        }
Exemplo n.º 4
0
        public OptArtPatientTarget(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            InitializeComponent();

            if (forecast.OptArtPatinetTarget > 0)
            {
                switch (forecast.ArtPatinetTargetEnum)
                {
                    case OptArtPatinetTargetEnum.NationalTarget:
                        _activeCheckBox = chbNationaltarget;
                        break;
                    case OptArtPatinetTargetEnum.SiteGrowth:
                        _activeCheckBox = chbSitegrowth;
                        break;
                    case OptArtPatinetTargetEnum.SelectSite:
                        _activeCheckBox = chbSelectsite;
                        break;
                    case OptArtPatinetTargetEnum.AllSite:
                        _activeCheckBox = chbAllsite;
                        break;
                }
                _activeCheckBox.Checked = true;
            }
            else
            {
                OnNextButtonStatusChanged(false);
            }

            chbAllsite.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbNationaltarget.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbSelectsite.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbSitegrowth.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
        }
Exemplo n.º 5
0
        public OptRecentData(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            InitializeComponent();

            if (forecast.OptInitialPatientData > 0)
            {
                if (forecast.OptInitialPatientData == 1)
                {
                    lqtCheckBox1.Checked = true;
                    _activeCheckBox = lqtCheckBox1;
                }
                else
                {
                    lqtCheckBox2.Checked = true;
                    _activeCheckBox = lqtCheckBox2;
                }
            }
            else
            {
                OnNextButtonStatusChanged(false);
            }

            lqtCheckBox1.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            lqtCheckBox2.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
        }
Exemplo n.º 6
0
        public OptTreatmentTarget(MorbidityForecast forecast)
        {
            this._forecast = forecast;
            InitializeComponent();

            if (forecast.OptPatientTreatmentTarget > 0)
            {
                if (forecast.OptPatientTreatmentTarget == 1)
                {
                    chbOntreatment.Checked = true;
                    _activeCheckBox = chbOntreatment;
                }
                else
                {
                    chbEverstarted.Checked = true;
                    _activeCheckBox = chbEverstarted;
                }
            }
            else
            {
                OnNextButtonStatusChanged(false);
            }

            chbOntreatment.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
            chbEverstarted.LQTCheckBoxClick += new EventHandler<LQTCheckBoxEvenArgs>(LQTCheckBoxClick);
        }
Exemplo n.º 7
0
 protected BaseCalc(ARTSite site, MorbidityForecast forecast, BudgetPeriodInfo periodinfo, int target)
 {
     ArtSite = site;
     Forecast = forecast;
     PeriodInfo = periodinfo;
     TargetSelected = target;
     RTestAlgorithm = null;
 }
Exemplo n.º 8
0
        public InvAssumption(MorbidityForecast forecast, InventoryAssumption invAss)
        {
            this._forecast = forecast;
            this._invAssumption = invAss;

            InitializeComponent();

            BindInvAssumption();
        }
Exemplo n.º 9
0
        public Assumptions(MorbidityForecast forecast)
        {
            this._forecast = forecast;

            InitializeComponent();

            BindHeader();
            LoadPatientAssumptionReport(_activeMenuId);
        }
Exemplo n.º 10
0
        public PreTxNumbersSites(MorbidityForecast forecast, IList<ARTSite> artsites)
        {
            this._forecast = forecast;
            this._artSites = artsites;

            InitializeComponent();
            LoadSiteListView();
            BindArtSites();
        }
Exemplo n.º 11
0
        public FrmImportCPN(MorbidityForecast forecast, IList<ARTSite> artsites, IList<int> selectedSiteids)
        {
            _forecast = forecast;
            _artSites = artsites;
            _selectedSiteId = selectedSiteids;

            InitializeComponent();

            _regions = DataRepository.GetAllRegion();
        }
Exemplo n.º 12
0
        public FrmProgress(MorbidityForecast forecast, InventoryAssumption invAssumption)
        {
            //this._morbidityForm = morbidityForm;
            this._forecast = forecast;
            this._invAssumption = invAssumption;

            InitializeComponent();

            _setProgressText = new SetTextCallBack(SetProgressBarText);
            _setProgressValue = new SetProgressBarCallBack(SetProgressBarValue);
        }
Exemplo n.º 13
0
        public EverStartedRecentData(MorbidityForecast forecast, IList<ARTSite> artsite)
        {
            _forecast = forecast;
            _artSites = artsite;

            InitializeComponent();
            lqtListView1.AddNoneEditableColumn(0);
            lqtListView1.AddNoneEditableColumn(1);
            lqtListView1.SubitemTextChanged += new EventHandler<SubitemTextEventArgs>(lqtListView1_SubitemTextChanged);
            BindArtSites();
        }
Exemplo n.º 14
0
        public TestingInformation(MorbidityForecast forecast, IList<ARTSite> artsites)
        {
            this._forecast = forecast;
            this._artSites = artsites;
            InitializeComponent();

            lstSites.SubitemTextChanged += new EventHandler<SubitemTextEventArgs>(lstSites_SubitemTextChanged);

            BindForecast();
            BindArtSites();
        }
Exemplo n.º 15
0
        public PediatricPatientBehavior(MorbidityForecast forecast, IList<ARTSite> artsites)
        {
            this._forecast = forecast;
            this._artSites = artsites;
            InitializeComponent();

            lstSites.SubitemTextChanged += new EventHandler<SubitemTextEventArgs>(lstSites_SubitemTextChanged);

            BindForecast();
            BindArtSites();
        }
Exemplo n.º 16
0
        public EverStartedNoData(MorbidityForecast forecast, IList<ARTSite> artsite)
        {
            _forecast = forecast;
            _artSites = artsite;

            InitializeComponent();

            txtTreatment.Text = _forecast.EverSTimeZeroPatientOnTreatment > 0 ? _forecast.EverSTimeZeroPatientOnTreatment.ToString() : "";
            txtPretreatment.Text = _forecast.EverSTimeZeroPatientOnPreTreatment > 0 ? _forecast.EverSTimeZeroPatientOnPreTreatment.ToString() : "";
            txtTreatment.LostFocus += new EventHandler(txtTreatment_LostFocus);
            txtPretreatment.LostFocus += new EventHandler(txtPretreatment_LostFocus);
        }
Exemplo n.º 17
0
        public CheckupForm(MorbidityForecast forecast,InventoryAssumption invAssumption, IList<ARTSite> artSites, Form mdiparent)
        {
            this._forecast = forecast;
            this._invAssumption = invAssumption;
            this._artSites = artSites;
            this._mdiparent = mdiparent;

            InitializeComponent();

            txtMigration.Text = _minMigration.ToString();
            txtAttrition.Text = _maxAttrition.ToString();

            BuildPatientBehaviorView();
            AddSubItemToPBehaviorView();

            BuildPlatformView();
            BuildSupplyListView();
        }
Exemplo n.º 18
0
        public SiteTargetCalculator(MorbidityForecast forecast, IList<ARTSite> artsites)
        {
            this._forecast = forecast;
            this._artSites = artsites;

            InitializeComponent();

            MakeMonthLabeling();

            //default no growth of patients
            if (_forecast.NTTDecember <= 0)
            {
                _forecast.NTTDecember = _forecast.TimeZeroPatientOnTreatment;
                CalculateLinearScalup();
                DoTargetCalculation();
                _edited = true;
            }

            BindForecastMonthValues();

            txtAgust.LostFocus +=new EventHandler(nTargetTextBox_LostFocus);
            txtApril.LostFocus += new EventHandler(nTargetTextBox_LostFocus);
            txtDecember.LostFocus += new EventHandler(nTargetTextBox_LostFocus);
            txtFebruary.LostFocus += new EventHandler(nTargetTextBox_LostFocus);
            txtJaunary.LostFocus += new EventHandler(nTargetTextBox_LostFocus);
            txtJuly.LostFocus += new EventHandler(nTargetTextBox_LostFocus);
            txtJune.LostFocus += new EventHandler(nTargetTextBox_LostFocus);
            txtMarch.LostFocus += new EventHandler(nTargetTextBox_LostFocus);
            txtMay.LostFocus += new EventHandler(nTargetTextBox_LostFocus);
            txtNovember.LostFocus += new EventHandler(nTargetTextBox_LostFocus);
            txtOctober.LostFocus += new EventHandler(nTargetTextBox_LostFocus);
            txtRecent.LostFocus += new EventHandler(nTargetTextBox_LostFocus);
            txtSeptember.LostFocus += new EventHandler(nTargetTextBox_LostFocus);

            if (_forecast.ArtPatinetTargetEnum == OptArtPatinetTargetEnum.NationalTarget)
            {
                splitContainer1.Panel2.Hide();
            }
            else
            {
                LoadSiteListView();
                BindArtSites();
            }
        }
Exemplo n.º 19
0
        public ProductQuantityInStock(MorbidityForecast forecast)
        {
            _forecast = forecast;

            InitializeComponent();

            lvproductQinstock.AddNoneEditableColumn(0);
            lvproductQinstock.AddNoneEditableColumn(1);
            lvproductQinstock.AddNoneEditableColumn(2);
            lvproductQinstock.AddNoneEditableColumn(3);
            lvproductQinstock.AddNoneEditableColumn(5);
            lvproductQinstock.AddNoneEditableColumn(6);
            lvproductQinstock.AddNoneEditableColumn(7);

            lvproductQinstock.SubitemTextChanged += new EventHandler<SubitemTextEventArgs>(lvproductQinstock_SubitemTextChanged);
            _supplyProcurement = DataRepository.GetSupplyProcurementByForecastId(_forecast.Id);
            BindProcurement();
            CalculateTotal();
        }
Exemplo n.º 20
0
        public FromOldData(MorbidityForecast forecast, IList<ARTSite> artsite)
        {
            _forecast = forecast;
            _artSites = artsite;
            InitializeComponent();

            lqtListView1.AddNoneEditableColumn(0);
            lqtListView1.AddNoneEditableColumn(1);
            lqtListView1.AddNoneEditableColumn(4);
            lqtListView1.AddNoneEditableColumn(5);
            lqtListView1.AddNoneEditableColumn(6);
            lqtListView1.AddNoneEditableColumn(7);
            lqtListView1.SubitemTextChanged += new EventHandler<SubitemTextEventArgs>(lqtListView1_SubitemTextChanged);
            BindArtSites();

            txtTreatment.Text = _forecast.TimeZeroPatientOnTreatment > 0 ? _forecast.TimeZeroPatientOnTreatment.ToString() : "";
            txtPretreatment.Text = _forecast.TimeZeroPatientOnPreTreatment > 0 ? _forecast.TimeZeroPatientOnPreTreatment.ToString() : "";
            txtTreatment.LostFocus += new EventHandler(txtTreatment_LostFocus);
            txtPretreatment.LostFocus +=new EventHandler(txtPretreatment_LostFocus);
        }
Exemplo n.º 21
0
        public MorbidityForm(MorbidityForecast mforecast, Form mdiparent)
        {
            this._mforecast = mforecast;
            this._mdiparent = mdiparent;
            this._artSites = DataRepository.GetAllARTSite(mforecast.Id);

            if (mforecast.Id > 0)
            {
                this._invAssumption = DataRepository.GetInventoryAssumptionByForecastId(mforecast.Id);
            }

            if (_invAssumption == null)
            {
                this._invAssumption = new InventoryAssumption();
                this._invAssumption.MorbidityForecast = _mforecast;
            }

            InitializeComponent();
            PopPeriod();
            BindForecast();
        }
Exemplo n.º 22
0
        public RapidTestSerial(MorbidityForecast forecast, IList<ARTSite> artsite)
        {
            _forecast = forecast;
            _artSites = artsite;
            InitializeComponent();

            lqtListView1.AddNoneEditableColumn(0);
            lqtListView1.AddNoneEditableColumn(1);
            lqtListView1.AddNoneEditableColumn(3);
            lqtListView1.AddNoneEditableColumn(5);
            lqtListView1.AddNoneEditableColumn(7);
            lqtListView1.AddNoneEditableColumn(9);
            lqtListView1.AddNoneEditableColumn(11);
            lqtListView1.AddNoneEditableColumn(13);
            lqtListView1.AddNoneEditableColumn(15);
            lqtListView1.AddNoneEditableColumn(17);
            lqtListView1.AddNoneEditableColumn(19);

            lqtListView1.SubitemTextChanged += new EventHandler<SubitemTextEventArgs>(lqtListView1_SubitemTextChanged);
            BindArtSites(true);
        }
Exemplo n.º 23
0
        public SiteSelection(MorbidityForecast forecast, IList<ARTSite> artsites)
        {
            this._forecast = forecast;
            this._artSites = artsites;
            _sites = DataRepository.GetAllSite();
            _regions = DataRepository.GetAllRegion();
            _deletedArtSites = new List<ARTSite>();

            InitializeComponent();

            BindCategorys();

            if (_forecast.UseRegionAsCat)
                rbtRegion.Checked = true;
            else
                rbtUserdifiend.Checked = true;
            SetStatusOfCatRadioButton();

            rbtRegion.CheckedChanged +=new EventHandler(UseCategory_CheckedChanged);
            rbtUserdifiend.CheckedChanged +=new EventHandler(UseCategory_CheckedChanged);
            LoadSiteListView();
        }
Exemplo n.º 24
0
 public CalcRapidTest(ARTSite site, MorbidityForecast forecast, BudgetPeriodInfo periodinfo, int target, RapidTestAlgorithm rtestAlgorithm)
     : base(site, forecast, periodinfo, target,rtestAlgorithm)
 {
     _lstPrimaryQuanReagents = new ListOfPrimeryQR(ClassOfMorbidityTestEnum.RapidTest);
 }
Exemplo n.º 25
0
 public MorbidityCalculater(MorbidityForecast forecast, IList<ARTSite> artsites, InventoryAssumption invAssumption)
 {
     this._forecast = forecast;
     this._artSites = artsites;
     this._invAssumption = invAssumption;
 }
Exemplo n.º 26
0
 public void popMorbidityForecastInfo(MorbidityForecast mForecast)
 {
     txttitle.Text = mForecast.Title;
     txtstartdate.Text = mForecast.SatartDate.ToShortDateString();
     txtbudgetstart.Text = mForecast.StartBudgetPeriodEnum.ToString();
     txtbudgetend.Text = mForecast.EndBudgetPeriodEnum.ToString();
     txtdescription.Text = mForecast.Descritpion;
 }
Exemplo n.º 27
0
 public CalcViralLoad(ARTSite site, MorbidityForecast forecast, BudgetPeriodInfo periodinfo, int target)
     : base(site, forecast, periodinfo, target)
 {
     _lstPrimaryQuanReagents = new ListOfPrimeryQR(ClassOfMorbidityTestEnum.ViralLoad);
 }
Exemplo n.º 28
0
 public static void SaveOrUpdateMorbidityForecast(MorbidityForecast forecast)
 {
     DaoFactory.GetDaoFactory().CreateMorbidityForecastDao().SaveOrUpdate(forecast);
 }
Exemplo n.º 29
0
 public static void DeleteMorbidityForecast(MorbidityForecast t)
 {
     DaoFactory.GetDaoFactory().CreateMorbidityForecastDao().Delete(t);
 }
Exemplo n.º 30
0
        private void buttonLaunchReport_Click(object sender, EventArgs e)
        {
            try
            {
                if (comMethodologey.Text == MethodologyEnum.DEMOGRAPHIC.ToString())
                {
                    _mforecast = LqtUtil.GetComboBoxValue<MorbidityForecast>(cbomforecast);
                    LoadReport(cboreport.SelectedIndex);
                }
                else
                {
                    FileInfo filinfo = null;

                    _finfo = LqtUtil.GetComboBoxValue<ForecastInfo>(comForecastinfo);
                    List<ReportParameter> param = new List<ReportParameter>();
                    ReportParameter finfo = new ReportParameter("ForecastId", _finfo.Id.ToString());
                    param.Add(finfo);

                    FillReportDataSet();

                    if (rdosite.Checked)
                        filinfo = new FileInfo(Path.Combine(AppSettings.GetReportPath, String.Format("{0}.rdlc", OReports.ServiceQSummary)));
                    else
                        filinfo = new FileInfo(Path.Combine(AppSettings.GetReportPath, String.Format("{0}.rdlc", OReports.FullQSummary)));

                    _fileToLoad = filinfo;

                    FrmReportViewer frmRV = new FrmReportViewer(_fileToLoad, _rDataSet, param);

                    frmRV.Dock = DockStyle.Fill;
                    Close();
                    frmRV.ShowDialog();
                }
            }
            catch (Exception ex)
            {
                new FrmShowError(new ExceptionStatus() { message = "", ex = ex }).ShowDialog();
            }
        }