Exemple #1
0
        public static decimal PointTabulation(SecondaryFormPoints input)
        {
            decimal formScore = PointTabulationTotalScore(input);

            formScore = ConvertToPercentage(formScore, _TotalFormBPoints);

            return formScore;
        }
Exemple #2
0
 private void PopulateScore_FormB()
 {
     SecondaryFormPoints input = new SecondaryFormPoints();
     input.SunstarThreeDigitUnit = rbSunstar3digitNumberY_2.Checked;
     input.NatureOfCall = rbNatureOfCallY_2.Checked;
     input.Location = rbLocationY_2.Checked;
     input.MapGrid = rbMapGridY_2.Checked;
     input.FdUnitAndTacCh = rbFDUnitsAndTacChY_2.Checked;
     input.Documented1 = rbScriptDocumentedY_2.Checked;
     input.SevMin = rbSevMinY_2.Checked;
     input.TwelveMin = rbTwelveY_2.Checked;
     input.EtaLocationAsked = rbETALocAskY_2.Checked;
     input.Documented2 = rbETADocumentedY_2.Checked;
     input.ProactiveRoutingGiven = TertiaryRadioButtons(rbProRouGivY_2,
                                                        rbProRouGivNo_2,
                                                        rbProRouGivNA_2,
                                                        "Yes", "No", "N/A");
     input.CorrectRouting = TertiaryRadioButtons(rbCorRouY_2,
                                                 rbCorRouNo_2,
                                                 rbCorRouNA_2,
                                                 "Yes", "No", "N/A");
     input.Documented3 = rbRoutDocumentedY_2.Checked;
     input.PreArrivalGiven = rbPreArrGivY_2.Checked;
     input.Documented4 = rbEMDDocumentedY_2.Checked;
     input.DisplayedServiceAttitude = TertiaryRadioButtons(rbDSACorrect_2,
                                                           rbDSAMinor_2,
                                                           rbDSAIncorrect_2,
                                                           "Correct", "Minor", "Incorrect");
     input.UsedCorrectVolTone = TertiaryRadioButtons(rbUsedCorVolTonCorrect_2,
                                                     rbUsedCorVolTonMinor_2,
                                                     rbUsedCorVolTonIncorrect_2,
                                                     "Correct", "Minor", "Incorrect"); ;
     input.UsedProhibitedBehavior = rbUsedProBehCorrect_2.Checked;
     decimal formScore = PointSystem.PointTabulation(input);
     lblTotalScore_2.Text = string.Format("{0:0.##}%", formScore);
 }
Exemple #3
0
        public static int PointTabulationTotalScore(SecondaryFormPoints input)
        {
            int formScore = 0;

            if (input.SunstarThreeDigitUnit)
            {
                formScore += 10;
            }
            if (input.NatureOfCall)
            {
                formScore += 10;
            }
            if (input.Location)
            {
                formScore += 10;
            }
            if (input.MapGrid)
            {
                formScore += 10;
            }
            if (input.FdUnitAndTacCh)
            {
                formScore += 5;
            }
            if (input.Documented1)
            {
                formScore += 5;
            }
            if (input.SevMin)
            {
                formScore += 8;
            }
            if (input.TwelveMin)
            {
                formScore += 8;
            }
            if (input.EtaLocationAsked)
            {
                formScore += 8;
            }
            if (input.Documented2)
            {
                formScore += 5;
            }
            if (input.ProactiveRoutingGiven == _Yes)
            {
                formScore += 5;
            }
            if (input.CorrectRouting == _Yes)
            {
                formScore += 5;
            }
            if (input.Documented3)
            {
                formScore += 5;
            }
            if (input.PreArrivalGiven)
            {
                formScore += 10;
            }
            if (input.Documented4)
            {
                formScore += 5;
            }
            if (input.DisplayedServiceAttitude == _Correct)
            {
                formScore += 25;
            }
            if (input.DisplayedServiceAttitude == _Minor)
            {
                formScore += 10;
            }
            if (input.UsedCorrectVolTone == _Correct)
            {
                formScore += 25;
            }
            if (input.UsedCorrectVolTone == _Minor)
            {
                formScore += 10;
            }
            if (input.UsedProhibitedBehavior)
            {
                formScore += 30;
            }
            return formScore;
        }