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); }
//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(); } }
public DashboardForm(MorbidityForecast forecast) { this._forecast = forecast; InitializeComponent(); LoadDashBoard(); }
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); }
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); }
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); }
protected BaseCalc(ARTSite site, MorbidityForecast forecast, BudgetPeriodInfo periodinfo, int target) { ArtSite = site; Forecast = forecast; PeriodInfo = periodinfo; TargetSelected = target; RTestAlgorithm = null; }
public InvAssumption(MorbidityForecast forecast, InventoryAssumption invAss) { this._forecast = forecast; this._invAssumption = invAss; InitializeComponent(); BindInvAssumption(); }
public Assumptions(MorbidityForecast forecast) { this._forecast = forecast; InitializeComponent(); BindHeader(); LoadPatientAssumptionReport(_activeMenuId); }
public PreTxNumbersSites(MorbidityForecast forecast, IList<ARTSite> artsites) { this._forecast = forecast; this._artSites = artsites; InitializeComponent(); LoadSiteListView(); BindArtSites(); }
public FrmImportCPN(MorbidityForecast forecast, IList<ARTSite> artsites, IList<int> selectedSiteids) { _forecast = forecast; _artSites = artsites; _selectedSiteId = selectedSiteids; InitializeComponent(); _regions = DataRepository.GetAllRegion(); }
public FrmProgress(MorbidityForecast forecast, InventoryAssumption invAssumption) { //this._morbidityForm = morbidityForm; this._forecast = forecast; this._invAssumption = invAssumption; InitializeComponent(); _setProgressText = new SetTextCallBack(SetProgressBarText); _setProgressValue = new SetProgressBarCallBack(SetProgressBarValue); }
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(); }
public TestingInformation(MorbidityForecast forecast, IList<ARTSite> artsites) { this._forecast = forecast; this._artSites = artsites; InitializeComponent(); lstSites.SubitemTextChanged += new EventHandler<SubitemTextEventArgs>(lstSites_SubitemTextChanged); BindForecast(); BindArtSites(); }
public PediatricPatientBehavior(MorbidityForecast forecast, IList<ARTSite> artsites) { this._forecast = forecast; this._artSites = artsites; InitializeComponent(); lstSites.SubitemTextChanged += new EventHandler<SubitemTextEventArgs>(lstSites_SubitemTextChanged); BindForecast(); BindArtSites(); }
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); }
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(); }
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(); } }
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(); }
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); }
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(); }
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); }
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(); }
public CalcRapidTest(ARTSite site, MorbidityForecast forecast, BudgetPeriodInfo periodinfo, int target, RapidTestAlgorithm rtestAlgorithm) : base(site, forecast, periodinfo, target,rtestAlgorithm) { _lstPrimaryQuanReagents = new ListOfPrimeryQR(ClassOfMorbidityTestEnum.RapidTest); }
public MorbidityCalculater(MorbidityForecast forecast, IList<ARTSite> artsites, InventoryAssumption invAssumption) { this._forecast = forecast; this._artSites = artsites; this._invAssumption = invAssumption; }
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; }
public CalcViralLoad(ARTSite site, MorbidityForecast forecast, BudgetPeriodInfo periodinfo, int target) : base(site, forecast, periodinfo, target) { _lstPrimaryQuanReagents = new ListOfPrimeryQR(ClassOfMorbidityTestEnum.ViralLoad); }
public static void SaveOrUpdateMorbidityForecast(MorbidityForecast forecast) { DaoFactory.GetDaoFactory().CreateMorbidityForecastDao().SaveOrUpdate(forecast); }
public static void DeleteMorbidityForecast(MorbidityForecast t) { DaoFactory.GetDaoFactory().CreateMorbidityForecastDao().Delete(t); }
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(); } }