Exemple #1
0
        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;
        }
Exemple #2
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);
        }
Exemple #3
0
        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;
 }
Exemple #6
0
        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;
        }