protected override void Page_Load(object sender, EventArgs e)
        {
            updateRequest = ObjectFromQueryString<UpdateRequest>(XpoHelper.GetNewSession());

            if (updateRequest == null)
            {
                StatusMessage.ShowMessageWithHeader("Something went wrong!", "", Views.Controls.MessageControlType.Negative);
            }
            else
            {
                ImportTaskOverview.updateRequest = updateRequest;
            }

            base.Page_Load(sender, e);
        }
        private static void AddGeneratedValues(CampaignEmployeeUpdateRequestItem item, UpdateRequest updateRequest)
        {
            item.Status = GenerateStatusForUpdateRequest(updateRequest);

            if (updateRequest.CompletedDate.HasBeenSet())
            {
                //item.ExtraClassForGoToStepButton = "disabled";
                item.StepButtonBackgroundColor = "grey";
                item.StepIcon = "checkmark";
                item.StepIconColor = "green";
            }
            else
            {
                item.StepButtonBackgroundColor = "primary";
                item.StepIcon = "warning sign";
                item.StepIconColor = "yellow";
            }

            if (item.Step > updateRequest.ImportTask.NextRequiredStepForEmployee(updateRequest.Employee))
            {
                item.ExtraClassForGoToStepButton = "disabled";
            }
        }
        private static string GenerateStatusForUpdateRequest(UpdateRequest updateRequest)
        {
            string rc = "";

            if (updateRequest.CompletedDate.HasBeenSet() == true)
            {
                rc = "Completed";
            }
            else
            {
                rc = "Uncompleted";
            }

            return rc;
        }
        protected void GenerateUpdateRequestsForAllSteps()
        {
            var session = importTask.Session;

            foreach (Employee employee in importTask.FilteredEmployeesToTarget(session))
            {
                for (int step = 1; step <= importTask.ImportTaskConfiguration.Steps(); step++)
                {
                    UpdateRequest newRequest = new UpdateRequest(session)
                    {
                        ImportTask = importTask,
                        Step = step,
                        Employee = employee
                    };
                    newRequest.Save();
                }
            }
        }