void _othListView_EditableListViewSubitemValueChanged(object sender, EXEditableListViewSubitemEventArgs e) { int rowid = (int)e.ListVItem.Tag; OtherTestNameEnum tname = (OtherTestNameEnum)e.SubItem.ColumnName; try { double value = Convert.ToDouble(e.SubItem.Text); PSymptomDirectedTest pdt = _protocol.GetSymptomDirectedTestByTestName(tname); if (rowid == 1) { pdt.AdultInTreatmeant = value; } else if (rowid == 2) { pdt.PediatricInTreatmeant = value; } else if (rowid == 3) { pdt.AdultPreART = value; } else { pdt.PediatricPreART = value; } } catch { } }
public OtherSymptomDirectedTest GetOtherSymptomDirectedTestById(OtherTestNameEnum test) { foreach (OtherSymptomDirectedTest c in OtherSymptomDirectedTest) { if (c.TestName == test) return c; } return null; }
public double GetSumOfOtherTest(OtherTestNameEnum test) { double result = 0d; foreach (OtherTestByPannel c in OtherTestByPanel) { result += c.GetOtherTestValue(test); } return(result); }
public virtual PSymptomDirectedTest GetSymptomDirectedTestByTestName(OtherTestNameEnum testname) { foreach (PSymptomDirectedTest sdt in _symptomDirectedTests) { if (sdt.OtherTestNameToEnum == testname) { return(sdt); } } return(null); }
private double GetSumofTest(OtherTestNameEnum testname) { double result = 0d; for (int i = 1; i <= 12; i++) { result += _othMonthlyOutputs[i].GetOtherSymptomDirectedTestById(testname).TestsReferredtoAnotherFacility; } result += SubtotalBufferTestBeyondForecast(testname); return(result); }
public virtual PanelTest GetOtherPanelTest(OtherTestNameEnum testname) { foreach (PanelTest pt in PanelTests) { if (pt.OtherTestNameToEnum == testname) { return(pt); } } return(null); }
public OtherSymptomDirectedTest GetOtherSymptomDirectedTestById(OtherTestNameEnum test) { foreach (OtherSymptomDirectedTest c in OtherSymptomDirectedTest) { if (c.TestName == test) { return(c); } } return(null); }
public virtual bool IsOtherTestSelected(OtherTestNameEnum testname) { foreach (PanelTest pt in PanelTests) { if (pt.OtherTestNameToEnum == testname) { return(true); } } return(false); }
private void SelectOtherTest(ItemCheckedEventArgs e) { OtherTestNameEnum tname = (OtherTestNameEnum)e.Item.Tag; if (e.Item.Checked) { _panel.PanelTests.Add(new PanelTest() { OtherTestName = tname.ToString(), Panel = _panel }); } else { PanelTest pt = _panel.GetOtherPanelTest(tname); if (pt != null) { _panel.PanelTests.Remove(pt); } } }
public double GetOtherTestValue(OtherTestNameEnum test) { double result = 0d; switch (test) { case OtherTestNameEnum.Genotype_Resistance_Testing: result = _genotypeResistanceTesting; break; case OtherTestNameEnum.Hepatitis_Anti_HCV: result = _HepatitisAntiHCV; break; case OtherTestNameEnum.Hepatitis_HBsAG: result = _HepatitisHBsAG; break; case OtherTestNameEnum.PAP_Smear: result = _PAPSmear; break; case OtherTestNameEnum.Syphilis_RPR: result = _syphilisRPR; break; case OtherTestNameEnum.TB_AFB: result = _TBAFB; break; case OtherTestNameEnum.TB_Culture: result = _TBCulture; break; case OtherTestNameEnum.TB_DST: result = _TBDST; break; } return(result); }
public void SetOtherTestValue(OtherTestNameEnum test, double value) { switch (test) { case OtherTestNameEnum.Genotype_Resistance_Testing: _genotypeResistanceTesting = value; break; case OtherTestNameEnum.Hepatitis_Anti_HCV: _HepatitisAntiHCV = value; break; case OtherTestNameEnum.Hepatitis_HBsAG: _HepatitisHBsAG = value; break; case OtherTestNameEnum.PAP_Smear: _PAPSmear = value; break; case OtherTestNameEnum.Syphilis_RPR: _syphilisRPR = value; break; case OtherTestNameEnum.TB_AFB: _TBAFB = value; break; case OtherTestNameEnum.TB_Culture: _TBCulture = value; break; case OtherTestNameEnum.TB_DST: _TBDST = value; break; } }
private double BufferTestBeyondForecast(OtherTestNameEnum test) { return(_othMonthlyOutputs[12].GetSumOfOtherTest(test) * PeriodInfo.NumberofBufferMonthsBeyondForecast); }
public virtual PSymptomDirectedTest GetSymptomDirectedTestByTestName(OtherTestNameEnum testname) { foreach (PSymptomDirectedTest sdt in _symptomDirectedTests) { if (sdt.OtherTestNameToEnum == testname) return sdt; } return null; }
private double BufferTestBeyondForecast(OtherTestNameEnum test) { return _othMonthlyOutputs[12].GetSumOfOtherTest(test) * PeriodInfo.NumberofBufferMonthsBeyondForecast; }
public double GetOtherTestValue(OtherTestNameEnum test) { double result = 0d; switch (test) { case OtherTestNameEnum.Genotype_Resistance_Testing: result = _genotypeResistanceTesting; break; case OtherTestNameEnum.Hepatitis_Anti_HCV: result = _HepatitisAntiHCV; break; case OtherTestNameEnum.Hepatitis_HBsAG: result = _HepatitisHBsAG; break; case OtherTestNameEnum.PAP_Smear: result = _PAPSmear; break; case OtherTestNameEnum.Syphilis_RPR: result = _syphilisRPR; break; case OtherTestNameEnum.TB_AFB: result = _TBAFB; break; case OtherTestNameEnum.TB_Culture: result = _TBCulture; break; case OtherTestNameEnum.TB_DST: result = _TBDST; break; } return result; }
private double SubtotalBufferTestBeyondForecast(OtherTestNameEnum test) { double sum = BufferTestBeyondForecast(test); return sum + (sum * _othAdditionalTestsDuetoWastage); }
private double SubtotalBufferTestBeyondForecast(OtherTestNameEnum test) { double sum = BufferTestBeyondForecast(test); return(sum + (sum * _othAdditionalTestsDuetoWastage)); }
public virtual bool IsOtherTestSelected(OtherTestNameEnum testname) { foreach (PanelTest pt in PanelTests) { if (pt.OtherTestNameToEnum == testname) return true; } return false; }
public virtual PanelTest GetOtherPanelTest(OtherTestNameEnum testname) { foreach (PanelTest pt in PanelTests) { if (pt.OtherTestNameToEnum == testname) return pt; } return null; }
public double GetSumOfOtherTest(OtherTestNameEnum test) { double result =0d; foreach (OtherTestByPannel c in OtherTestByPanel) { result += c.GetOtherTestValue(test); } return result; }
private double GetSumofTest(OtherTestNameEnum testname) { double result = 0d; for (int i = 1; i <= 12; i++) { result += _othMonthlyOutputs[i].GetOtherSymptomDirectedTestById(testname).TestsReferredtoAnotherFacility; } result += SubtotalBufferTestBeyondForecast(testname); return result; }