private void PopProductToComboBox(ComboBox com, TestingSpecificationGroup testgroup) { IList <MasterProduct> list = DataRepository.GetAllProductByClassOfTest(ClassOfMorbidityTestEnum.RapidTest.ToString(), testgroup.ToString()); list.Insert(0, new MasterProduct() { ProductName = "---NONE---" }); com.DisplayMember = "ProductName"; com.ValueMember = "Id"; com.DataSource = list; com.SelectedIndex = 0; }
public double GetPackSize(TestingSpecificationGroup tgroup, int proLine) { double result = 0; switch (tgroup) { case TestingSpecificationGroup.Screening: result = _screening[proLine - 1, 6]; break; case TestingSpecificationGroup.Confirmatory: result = _confirmatory[proLine - 1, 6]; break; case TestingSpecificationGroup.Tie_Breaker: result = _tiebreaker[proLine - 1, 6]; break; } return(result); }
public int GetProductId(TestingSpecificationGroup tgroup, int proLine) { int result = 0; switch (tgroup) { case TestingSpecificationGroup.Screening: result = Convert.ToInt32(_screening[proLine - 1, 4]); break; case TestingSpecificationGroup.Confirmatory: result = Convert.ToInt32(_confirmatory[proLine - 1, 4]); break; case TestingSpecificationGroup.Tie_Breaker: result = Convert.ToInt32(_tiebreaker[proLine - 1, 4]); break; } return(result); }
public double GetUsageRate(TestingSpecificationGroup tgroup, int proLine) { double result = 0; switch (tgroup) { case TestingSpecificationGroup.Screening: result = _screening[proLine - 1, 5]; break; case TestingSpecificationGroup.Confirmatory: result = _confirmatory[proLine - 1, 5]; break; case TestingSpecificationGroup.Tie_Breaker: result = _tiebreaker[proLine - 1, 5]; break; } return result; }
public int GetProductId(TestingSpecificationGroup tgroup, int proLine) { int result = 0; switch (tgroup) { case TestingSpecificationGroup.Screening: result = Convert.ToInt32(_screening[proLine - 1, 4]); break; case TestingSpecificationGroup.Confirmatory: result = Convert.ToInt32(_confirmatory[proLine - 1, 4]); break; case TestingSpecificationGroup.Tie_Breaker: result = Convert.ToInt32(_tiebreaker[proLine - 1, 4]); break; } return result; }
private void PopProductToComboBox(ComboBox com, TestingSpecificationGroup testgroup) { IList<MasterProduct> list = DataRepository.GetAllProductByClassOfTest(ClassOfMorbidityTestEnum.RapidTest.ToString(), testgroup.ToString()); list.Insert(0, new MasterProduct() { ProductName = "---NONE---" }); com.DisplayMember = "ProductName"; com.ValueMember = "Id"; com.DataSource = list; com.SelectedIndex = 0; }