コード例 #1
0
        protected override object executorFxn(object inputData)
        {
            if (inputData == null || (!(inputData is string)))
            {
                return(null);
            }

            string menuTrigger = (string)inputData;

            if (menuTrigger.Equals(NEWPAWNLOAN, StringComparison.OrdinalIgnoreCase))
            {
                //Orchestrate the new pawn loan flow
                this.newPawnLoanFlowExecutor =
                    new NewPawnLoanFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(SHOPCASHMGMT, StringComparison.OrdinalIgnoreCase))
            {
                //Orchestrate shop cash management flow
                this.shopCashManagementFlowExecutor = new ShopCashManagementFlowExecutor(
                    this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(LOOKUPTICKET, StringComparison.OrdinalIgnoreCase))
            {
                this.lookupTktFlowExecutor = new LookupTicketFlowExecutor(this.ParentForm,
                                                                          base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(LOOKUPCUSTOMER, StringComparison.OrdinalIgnoreCase))
            {
                this.lookupCustFlowExecutor = new LookupCustomerFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(VENDORPURCHASE, StringComparison.OrdinalIgnoreCase))
            {
                this.lookupVendFlowExecutor = new VendorPurchaseFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(LOOKUPRECEIPT, StringComparison.OrdinalIgnoreCase))
            {
                this.lookupReceiptFlowExecutor = new LookupReceiptFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(CUSTOMERHOLD, StringComparison.OrdinalIgnoreCase))
            {
                this.customerHoldFlowExecutor = new CustomerHoldFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(CUSTOMERHOLDRELEASE, StringComparison.OrdinalIgnoreCase))
            {
                this.customerHoldReleaseFlowExecutor = new CustomerHoldReleaseFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(POLICEHOLD, StringComparison.OrdinalIgnoreCase))
            {
                this.policeHoldFlowExecutor = new PoliceHoldFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(POLICEHOLDRELEASE, StringComparison.OrdinalIgnoreCase))
            {
                this.policeHoldReleaseFlowExecutor = new PoliceHoldReleaseFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(MMPI, StringComparison.OrdinalIgnoreCase))
            {
                this.mmpiFlowExecutor = new MMPIFlowExecutor(this.ParentForm, base.EndStateNotifier, this.ParentFlowExecutor);
            }
            else if (menuTrigger.Equals(SERVICEPAWNLOAN, StringComparison.OrdinalIgnoreCase))
            {
                this.servicePawnLoanFlowExecutor = new ServicePawnLoanFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(PFIVERIFY, StringComparison.OrdinalIgnoreCase))
            {
                this.pfiverifyFlowExecutor = new PFIVerifyFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(POLICESEIZE, StringComparison.OrdinalIgnoreCase))
            {
                this.policeSeizeFlowExecutor = new PoliceSeizeFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(PAWNCUSTINFO, StringComparison.OrdinalIgnoreCase))
            {
                this.pawnCustInfoFlowExecutor = new PawnCustInformationFlowExecutor(this.ParentForm, base.EndStateNotifier, this.ParentFlowExecutor);
            }
            else if (menuTrigger.Equals(SECURITY, StringComparison.OrdinalIgnoreCase))
            {
                this.securityFlowExecutor = new SecurityFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(CUSTOMERPURCHASE, StringComparison.OrdinalIgnoreCase))
            {
                this.customerPurchaseFlowExecutor = new CustomerPurchaseFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(RETAIL, StringComparison.OrdinalIgnoreCase))
            {
                this.saleFlowExecutor = new SaleFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(CHANGERETAILPRICE, StringComparison.OrdinalIgnoreCase))
            {
                this.changeRetailPriceFlowExecutor = new ChangeRetailPriceFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(TRANSFERIN, StringComparison.OrdinalIgnoreCase))
            {
                this.transferInFlowExecutor = new TransferInFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(PURCHASERETURN, StringComparison.OrdinalIgnoreCase))
            {
                this.purchaseReturnFlowExecutor = new PurchaseReturnFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(RETAILRETURN, StringComparison.OrdinalIgnoreCase))
            {
                this.retailReturnFlowExecutor = new RetailReturnFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(LAYAWAYRETURN, StringComparison.OrdinalIgnoreCase))
            {
                this.layawayReturnFlowExecutor = new LayawayReturnFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(GUNBOOKEDIT, StringComparison.OrdinalIgnoreCase))
            {
                this.gunBookFlowExecutor = new GunBookEditFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }
            else if (menuTrigger.Equals(RELEASEFINGERPRINTS, StringComparison.OrdinalIgnoreCase))
            {
                this.releaseFingerprintsFlowExecutor = new ReleaseFingerprintsFlowExecutor(this.ParentForm, base.EndStateNotifier);
            }

            return(null);
        }
コード例 #2
0
 public MainFlowExecutor() : base(GlobalDataAccessor.Instance.DesktopSession)
 {
     this.newPawnLoanFlowExecutor = null;
     this.setExecBlock(executorFxn);
     this.endStateNotifier = null;
 }