예제 #1
0
        public ActionResult Popup(int taskTypeId)
        {
            var model = new KickBack();
            var modules = new List<SelectListItem>();

            modules.Add(new SelectListItem
            {
                Text = TaskTypes.PQScanDocument.GetDescription(),
                Value = ((int)TaskTypes.PQScanDocument).ToString()
            });

            if (taskTypeId == (int)TaskTypes.PQMonthlyCreditCardVolumes)
            {
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.PQDataEntry.GetDescription(),
                    Value = ((int)TaskTypes.PQDataEntry).ToString()
                });
            }

            if (taskTypeId == (int)TaskTypes.PQMerchantEvaluation)
            {

                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.PQDataEntry.GetDescription(),
                    Value = ((int)TaskTypes.PQDataEntry).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.PQMonthlyCreditCardVolumes.GetDescription(),
                    Value = ((int)TaskTypes.PQMonthlyCreditCardVolumes).ToString()
                });
            }

            if (taskTypeId == (int)TaskTypes.PQOfferCreation)
            {

                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.PQDataEntry.GetDescription(),
                    Value = ((int)TaskTypes.PQDataEntry).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.PQMonthlyCreditCardVolumes.GetDescription(),
                    Value = ((int)TaskTypes.PQMonthlyCreditCardVolumes).ToString()
                });

                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.PQMerchantEvaluation.GetDescription(),
                    Value = ((int)TaskTypes.PQMerchantEvaluation).ToString()
                });
            }

            if (taskTypeId == (int)TaskTypes.PQOfferAcceptance)
            {

                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.PQDataEntry.GetDescription(),
                    Value = ((int)TaskTypes.PQDataEntry).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.PQMonthlyCreditCardVolumes.GetDescription(),
                    Value = ((int)TaskTypes.PQMonthlyCreditCardVolumes).ToString()
                });

                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.PQMerchantEvaluation.GetDescription(),
                    Value = ((int)TaskTypes.PQMerchantEvaluation).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.PQOfferCreation.GetDescription(),
                    Value = ((int)TaskTypes.PQOfferCreation).ToString()
                });
            }
            model.TaskTypes = new SelectList(modules, "Value", "Text");

            return PartialView("_Popup", model);
        }
예제 #2
0
        public ActionResult Popup(int taskTypeId)
        {
            var model = new KickBack();
            var cwModules = new List<SelectListItem> {new SelectListItem
                    {
                        Text = TaskTypes.CWScanDocument.GetDescription(),
                        Value = ((int)TaskTypes.CWScanDocument).ToString()
                    } ,
                    new SelectListItem
                    {
                        Text = TaskTypes.CWVerificationCall.GetDescription(),
                        Value = ((int)TaskTypes.CWVerificationCall).ToString()
                    } ,
                    new SelectListItem
                    {
                        Text = TaskTypes.CWDataEntry.GetDescription(),
                        Value = ((int)TaskTypes.CWDataEntry).ToString()
                    } ,
                    new SelectListItem
                    {
                        Text = TaskTypes.CWVerificationTask.GetDescription(),
                        Value = ((int)TaskTypes.CWVerificationTask).ToString()
                    } ,
                    new SelectListItem
                    {
                        Text = TaskTypes.CWReview.GetDescription(),
                        Value = ((int)TaskTypes.CWReview).ToString()
                    },
                    new SelectListItem
                    {
                        Text = TaskTypes.CWContract.GetDescription(),
                        Value = ((int)TaskTypes.CWContract).ToString()
                    } ,
                    new SelectListItem
                    {
                        Text = TaskTypes.CWFunding.GetDescription(),
                        Value = ((int)TaskTypes.CWFunding).ToString()
                    },
                    new SelectListItem
                    {
                        Text = TaskTypes.CWFinalValidation.GetDescription(),
                        Value = ((int)TaskTypes.CWFinalValidation).ToString()
                    }

            };

            var modules = new List<SelectListItem>();
            var addNext = false;

            for (int i = cwModules.Count-1; i >= 0; i--)
            {
                if (addNext)
                {
                    modules.Add(cwModules[i]);
                }
                if (cwModules[i].Value == taskTypeId.ToString())
                {
                    addNext = true;
                }
            }

            model.TaskTypes = new SelectList(modules, "Value", "Text");

            return PartialView("_Popup", model);
        }
예제 #3
0
        public ActionResult Popup(int taskTypeId)
        {
            var model = new KickBack();
            var modules = new List<SelectListItem>();

            if (taskTypeId == (int)TaskTypes.RWDocumentVerification)
            {
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWMerchantEvaluation.GetDescription(),
                    Value = ((int)TaskTypes.RWMerchantEvaluation).ToString()
                });

            }

            if (taskTypeId == (int)TaskTypes.RWOfferCreation)
            {
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWMerchantEvaluation.GetDescription(),
                    Value = ((int)TaskTypes.RWMerchantEvaluation).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWDocumentVerification.GetDescription(),
                    Value = ((int)TaskTypes.RWDocumentVerification).ToString()
                });

            }

            if (taskTypeId == (int)TaskTypes.RWRenewalReview)
            {
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWMerchantEvaluation.GetDescription(),
                    Value = ((int)TaskTypes.RWMerchantEvaluation).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWDocumentVerification.GetDescription(),
                    Value = ((int)TaskTypes.RWDocumentVerification).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWOfferCreation.GetDescription(),
                    Value = ((int)TaskTypes.RWOfferCreation).ToString()
                });

            }

            if (taskTypeId == (int)TaskTypes.RWContract)
            {
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWMerchantEvaluation.GetDescription(),
                    Value = ((int)TaskTypes.RWMerchantEvaluation).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWDocumentVerification.GetDescription(),
                    Value = ((int)TaskTypes.RWDocumentVerification).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWOfferCreation.GetDescription(),
                    Value = ((int)TaskTypes.RWOfferCreation).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWRenewalReview.GetDescription(),
                    Value = ((int)TaskTypes.RWRenewalReview).ToString()
                });

            }
            if (taskTypeId == (int)TaskTypes.RWFunding)
            {
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWMerchantEvaluation.GetDescription(),
                    Value = ((int)TaskTypes.RWMerchantEvaluation).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWDocumentVerification.GetDescription(),
                    Value = ((int)TaskTypes.RWDocumentVerification).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWOfferCreation.GetDescription(),
                    Value = ((int)TaskTypes.RWOfferCreation).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWRenewalReview.GetDescription(),
                    Value = ((int)TaskTypes.RWRenewalReview).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWContract.GetDescription(),
                    Value = ((int)TaskTypes.RWContract).ToString()
                });

            }

            if (taskTypeId == (int)TaskTypes.RWFinalValidation)
            {
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWMerchantEvaluation.GetDescription(),
                    Value = ((int)TaskTypes.RWMerchantEvaluation).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWDocumentVerification.GetDescription(),
                    Value = ((int)TaskTypes.RWDocumentVerification).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWOfferCreation.GetDescription(),
                    Value = ((int)TaskTypes.RWOfferCreation).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWRenewalReview.GetDescription(),
                    Value = ((int)TaskTypes.RWRenewalReview).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWContract.GetDescription(),
                    Value = ((int)TaskTypes.RWContract).ToString()
                });
                modules.Add(new SelectListItem
                {
                    Text = TaskTypes.RWFunding.GetDescription(),
                    Value = ((int)TaskTypes.RWFunding).ToString()
                });

            }
            model.TaskTypes = new SelectList(modules, "Value", "Text");
            return PartialView("_Popup", model);
        }