Beispiel #1
0
 public FinishWizardIfRequested(
     string outerContextDescription,
     FinishWizardArgs args
     ) : base(outerContextDescription)
 {
     this.args = args;
 }         // constructor
Beispiel #2
0
 /// <summary>
 /// Returns a string that represents the current object.
 /// </summary>
 /// <returns>
 /// A string that represents the current object.
 /// </returns>
 public override string ToString()
 {
     return(string.Format(
                "UW: {0}, customer: {1}, '{2}', avoid auto decision = '{3}', " +
                " cash request = {4}, originator: {5}, finish wizard: '{6}'",
                UnderwriterID,
                CustomerID,
                NewCreditLine,
                AvoidAutoDecision == 1 ? "yes" : "no",
                CashRequestID == null ? "NULL" : CashRequestID.Value.ToString(),
                CashRequestOriginator == null ? "N/A" : CashRequestOriginator.ToString(),
                FinishWizardArgs == null ? "no" : FinishWizardArgs.ToString()
                ));
 } // ToString
Beispiel #3
0
        public JsonResult ActivateFinishWizard(int customerId)
        {
            int underwriterId = this.context.User.Id;

            this.customerRepository.Get(customerId).AddAlibabaDefaultBankAccount();

            var oArgs = new FinishWizardArgs {
                CustomerID            = customerId,
                CashRequestOriginator = EZBob.DatabaseLib.Model.Database.CashRequestOriginator.ForcedWizardCompletion,
            };

            new ServiceClient().Instance.FinishWizard(oArgs, underwriterId);

            return(Json(true));
        }         // ActivateFinishWizard
Beispiel #4
0
        }         // GetWizardConfigs

        public ActionMetaData FinishWizard(FinishWizardArgs oArgs, int underwriterId)
        {
            if (oArgs.DoMain)
            {
                return(Execute <MainStrategy>(
                           oArgs.CustomerID,
                           underwriterId,
                           new MainStrategyArguments {
                    UnderwriterID = underwriterId,
                    CustomerID = oArgs.CustomerID,
                    NewCreditLine = oArgs.NewCreditLineOption,
                    AvoidAutoDecision = oArgs.AvoidAutoDecision,
                    FinishWizardArgs = oArgs,
                    CashRequestID = null,
                    CashRequestOriginator = oArgs.CashRequestOriginator,
                }
                           ));
            }             // if

            return(Execute <FinishWizard>(oArgs.CustomerID, underwriterId, oArgs));
        } // FinishWizard
Beispiel #5
0
		public FinishWizard(FinishWizardArgs args) {
			this.strategyArgs = args;
		} // constructor