public void invokeWorkflow(string trigger, Form parentForm, FxnBlock endNavCall) { this.mainFlowExecutor.ExecBlock.Action.InputParameter = trigger; this.mainFlowExecutor.ParentForm = parentForm; this.mainFlowExecutor.EndStateNotifier = endNavCall; this.mainFlowExecutor.execute(); }
private void MainDesktop_Load(object sender, EventArgs e) { this.endStateNotifier = new FxnBlock(); this.endStateNotifier.InputParameter = null; this.endStateNotifier.Function = this.handleEndFlow; this.mainMenuPanel.setExitButtonHandler(this.exitButton_Click); ADS.Setup(this); ADS.ResourceProperties.DP = Properties.Resources.DP; ADS.ResourceProperties.HB = Properties.Resources.HB; ADS.ResourceProperties.HP = Properties.Resources.HP; ADS.ResourceProperties.Pearl = Properties.Resources.Pearl; ADS.ResourceProperties.oldvistabutton_blue = Properties.Resources.oldvistabutton_blue; ADS.ResourceProperties.vistabutton_blue = Properties.Resources.vistabutton_blue; ADS.ResourceProperties.cl1 = Properties.Resources.cl1; ADS.ResourceProperties.cl2 = Properties.Resources.cl2; ADS.ResourceProperties.cl3 = Properties.Resources.cl3; ADS.ResourceProperties.cl4 = Properties.Resources.cl4; ADS.ResourceProperties.cl5 = Properties.Resources.cl5; ADS.ResourceProperties.newDialog_400_BlueScale = Properties.Resources.newDialog_400_BlueScale; ADS.ResourceProperties.newDialog_512_BlueScale = Properties.Resources.newDialog_512_BlueScale; ADS.ResourceProperties.newDialog_600_BlueScale = Properties.Resources.newDialog_600_BlueScale; ADS.ResourceProperties.OverrideMachineName = Properties.Resources.OverrideMachineName; }
public LoanInquiryFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.nextState = LoanInquiryFlowState.LoanInquiry; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public PurchaseReturnFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.nextState = PurchaseReturnFlowState.BuyReturn; this.setExecBlock(this.executorFxn); this.endStateNotifier = eStateNotifier; this.executeNextState(); }
public GunBookUtilityFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; // this.nextState = LookupReceiptFlowState.LookupReceipt; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public VendorPurchaseFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.nextState = VendorPurchaseFlowState.LookupVendor; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public ReleaseFingerprintsFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.nextState = ReleaseFingerprintsFlowExecutorFlowState.BuyLoanLookup; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public LayawayReturnFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.nextState = LayawayReturnFlowState.LayawaySearch; this.setExecBlock(this.executorFxn); this.endStateNotifier = eStateNotifier; this.executeNextState(); }
public TransferInFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.nextState = TransferInFlowState.ManageTransfer; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public CustomerHoldFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.nextState = CustomerHoldFlowState.LookupCustomer; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public PFIVerifyFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.nextState = PFIVerifyFlowState.PfiVerify; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public ShopCashManagementFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.nextState = ShopCashManagementFlowState.ViewCashDrawerAssignments; this.setExecBlock(this.executorFxn); this.endStateNotifier = eStateNotifier; this.executeNextState(); }
public GunBookEditFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.nextState = GunBookEditFlowState.GunBookSearch; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public SecurityFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.nextState = SecurityFlowState.SelectEmployee; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public MainFlowExecutorBase( DesktopSession dSession) : base("MainFlowExecutorBaseBlock") { this.desktopSession = dSession; this.primaryFlowExecutors = new Dictionary <string, string>(); this.EndStateNotifier = null; this.ParentForm = null; this.ParentFlowExecutor = null; }
/// <summary> /// /// </summary> /// <param name="nm"></param> /// <param name="ifFxn"></param> /// <param name="actionFxns"></param> public IfThenBlock( string nm, FxnBlock ifFxn, FxnBlock actionFxn) { this.setName(nm); this.ifLogic = new ConditionBlock(this.Name + "-Condition", ifFxn); this.action = new ActionBlock(this.Name + "-Action", actionFxn); }
public ChangeRetailPriceFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.nextState = ChangeRetailPriceFlowState.ItemSearch; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public MMPIFlowExecutor(Form parentForm, FxnBlock eStateNotifier, SingleExecuteBlock parentFlow) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.parentFlow = parentFlow; this.nextState = MMPIFlowState.DescribeItem; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public PawnCustInformationFlowExecutor(Form parentForm, FxnBlock eStateNotifier, SingleExecuteBlock parentFlow) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.nextState = FindStateByTabClicked(); this.parentFlow = parentFlow; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public SaleFlowExecutor(Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.nextState = SaleFlowState.ItemSearch; this.tenderInComplete = false; this.setExecBlock(this.executorFxn); this.executeNextState(); }
public SingleExecuteBlock( string nm, FxnBlock axn) { if (string.IsNullOrEmpty(nm)) { throw new ApplicationException("Cannot create SingleExecuteBlock"); } this.setName(nm); this.executeBlock = new ActionBlock(this.Name + "-SingleExecute", axn); }
/// <summary> /// /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void SupportAppDesktop_Load(object sender, EventArgs e) { this.endStateNotifier = new FxnBlock(); this.endStateNotifier.InputParameter = null; this.endStateNotifier.Function = this.handleEndFlow; this.mainMenuPanel.setExitButtonHandler(this.exitButton_Click); //Acquire desktop session object this.cdSession = CashlinxPawnSupportSession.Instance; this.cdSession.Setup(this); }
/// <summary> /// /// </summary> /// <param name="nm"></param> /// <param name="iFxns"></param> /// <param name="elseFxn"></param> public IfThenElseBlock( string nm, List <PairType <FxnBlock, FxnBlock> > iFxns, FxnBlock elseFxn) { if (string.IsNullOrEmpty(nm) || CollectionUtilities.isEmpty(iFxns)) { throw new ApplicationException("Cannot create IfThenElse block"); } //Set the necessary fields this.ifMap = new Dictionary <string, bool>(); this.setName(nm); this.ifElseBlockPairs = new List <PairType <ConditionBlock, ActionBlock> >(); this.elseBlock = new ActionBlock(nm + "-ElseAction", elseFxn); int cnt = 0; //Create the if blocks foreach (PairType <FxnBlock, FxnBlock> fxn in iFxns) { FxnBlock condFxn = fxn.Left; FxnBlock actFxn = fxn.Right; //Create condition block ConditionBlock cndBlk = new ConditionBlock(nm + "-Condition-" + cnt, fxn.Left); //Create action block ActionBlock actBlk = new ActionBlock(nm + "-Action-" + cnt, fxn.Right); //Create bound pair of condition to action PairType <ConditionBlock, ActionBlock> ifElsBlk = new PairType <ConditionBlock, ActionBlock>(cndBlk, actBlk); //Add this to the if else block pair list this.ifElseBlockPairs.Add(ifElsBlk); //Increase count cnt++; } }
public void addBlock(FxnBlock fxn) { string intNm = this.Name + NAMEAPPEND + this.fxns.Count; this.fxns.Add(new ActionBlock(intNm, fxn)); }
public MainFlowExecutor() : base(GlobalDataAccessor.Instance.DesktopSession) { //this.newPawnLoanFlowExecutor = null; this.setExecBlock(executorFxn); this.endStateNotifier = null; }
public void setEndStateNotifier(FxnBlock fB) { this.endStateNotifier = fB; }
public InventoryAuditFlowExecutor(AuditDesktopSession desktopSession, Form parentForm, FxnBlock eStateNotifier) : base(NAME) { this.DesktopSession = desktopSession; this.parentForm = parentForm; this.endStateNotifier = eStateNotifier; this.nextState = InventoryAuditFlowState.SelectAudit; this.setExecBlock(this.executorFxn); this.executeNextState(); }