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

            formScore = ConvertToPercentage(formScore, _TotalFormAPoints);

            return formScore;
        }
Exemple #2
0
        public static int PointTabulationTotalScore(PrimaryFormPoints input)
        {
            int formScore = 0;

            if (input.ToneAlertUsed)
            {
                formScore += 10;
            }
            if (input.Priority)
            {
                formScore += 10;
            }
            if (input.SunstarThreeDigitUnit)
            {
                formScore += 10;
            }
            if (input.Location)
            {
                formScore += 10;
            }
            if (input.MapGrid)
            {
                formScore += 20;
            }
            if (input.NatureOfCall)
            {
                formScore += 20;
            }
            if (input.SsTacChannel)
            {
                formScore += 20;
            }
            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;
        }
Exemple #3
0
        private void PopulateScore_FormA()
        {
            PrimaryFormPoints input = new PrimaryFormPoints();
            input.ToneAlertUsed = rbToneAlertUsedY_1.Checked;
            input.Priority = rbPriorityY_1.Checked;
            input.SunstarThreeDigitUnit = rbSunstar3digitNumberY_1.Checked;
            input.Location = rbLocationY_1.Checked;
            input.MapGrid = rbMapGridY_1.Checked;
            input.NatureOfCall = rbNatureOfCallY_1.Checked;
            input.SsTacChannel = rbSSTacChannelY_1.Checked;
            input.DisplayedServiceAttitude = TertiaryRadioButtons(rbDSACorrect_1,
                                                                  rbDSAMinor_1,
                                                                  rbDSAIncorrect_1,
                                                                  "Correct",
                                                                  "Minor",
                                                                  "Incorrect");
            input.UsedCorrectVolTone = TertiaryRadioButtons(rbUsedCorVolTonCorrect_1,
                                                            rbUsedCorVolTonMinor_1,
                                                            rbUsedCorVolTonIncorrect_1,
                                                            "Correct",
                                                            "Minor",
                                                            "Incorrect");
            input.UsedProhibitedBehavior = rbUsedProBehCorrect_1.Checked;
            decimal formScore = PointSystem.PointTabulation(input);

            lblTotalScore_1.Text = string.Format("{0:0.##}%", formScore);
        }