示例#1
0
    public void UpdateData(PlanningSummary summary, List <PlanningGroup> groups)
    {
        planningSummary = summary;
        planningGroups  = groups;

        selectedGroupIndex = -1;

        UpdateGroupsAndSummaryPins();
        UpdateFlags();

        UpdatePinPositions();
    }
示例#2
0
        private string GetPlanningMessage(PlanningSummary summary)
        {
            var enrollmentInterest = EnrollmentStatus.Value.EnrollmentInterests.First(i => i.Name == summary.PlanningName);
            var planningInterest   = GetPlanningInterest(summary, enrollmentInterest);
            var text = string.Empty;

            if (planningInterest == PlanningInterest.NotInterested)
            {
                text = "<p>Your enrollment profile states that " + enrollmentInterest.Message.ToLower() + "  To unlock this tool, update your enrollment interests.</p>";
            }
            else if (planningInterest == PlanningInterest.Unknown)
            {
                switch (summary.PlanningType)
                {
                case PlanningType.Acquisition:
                    text = "<p>After you have completed enrollment, use this tool to help guide you through the steps to successfully complete a business acquisition.</p>";
                    break;

                case PlanningType.Continuity:
                    text = "<p>After you have completed enrollment, use this tool to help guide you through the steps to manage your continuity plan.</p>";
                    break;

                case PlanningType.Succession:
                    text = "<p>After you have completed enrollment, use this tool to help guide you through the steps to manage your succession plan.</p>";
                    break;
                }
            }
            else if (summary.PercentComplete <= 0)
            {
                switch (summary.PlanningType)
                {
                case PlanningType.Acquisition:
                    text = "<p><strong>You have unlocked the Business Acquisition Planning Tool.</strong></p><p>Use this tool to help guide you through the steps to successfully complete a business acquisition.</p>";
                    break;

                case PlanningType.Continuity:
                    text = "<p><strong>You have unlocked the Continuity Planning Tool.</strong></p><p>Use this tool to help guide you through the steps to manage your continuity plan.</p>";
                    break;

                case PlanningType.Succession:
                    text = "<p><strong>You have unlocked the Succession Planning Tool.</strong></p><p>Use this tool to help guide you through the steps to manage your succession plan.</p>";
                    break;
                }
            }

            return(text);
        }
示例#3
0
        private PlanningInterest GetPlanningInterest(PlanningSummary summary, EnrollmentInterest enrollmentInterest)
        {
            var planningInterest = PlanningInterest.Unknown;

            if (enrollmentInterest.HasAnswer)
            {
                if (enrollmentInterest.Interested)
                {
                    planningInterest = summary.IsComplete ? PlanningInterest.InterestedComplete : PlanningInterest.InterestedIncomplete;
                }
                else
                {
                    planningInterest = PlanningInterest.NotInterested;
                }
            }

            return(planningInterest);
        }