public static void approveCommonApproveStepsForBpNationalOutgoing() { SelectMenu(BusinessProcessesPage.getPathOfFirstCheckBox()); SelectMenu(BusinessProcessesPage.getPathOfExecuteButton()); SelectMenu(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()); SelectMenu(InformationDialogPage.getPathOfOkButton()); SelectMenu(BusinessProcessesPage.getPathOfExecuteButton()); }
internal void bankUserFinishPrepareBBForCurrentTransfer(string nameOfBP) { switch (nameOfBP) { #region CARD_NMT_OUT case "CARD_NMT_OUT": new CellCopy(ExternalMoneyTransferFormPage.getPathOfCell()).operationWithCellDoubleClick(); CommonMethods.approveCommonPrepareStepsForBpNationalOutgoing(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(VoucherSelectionDialogPage.getPathOfCancelButton()).operationWithButton(); break; #endregion #region CARD_NMT_OUT_EBANK_PI case "CARD_NMT_OUT_EBANK_PI": new CellCopy(ExternalMoneyTransferFormPage.getPathOfCell()).operationWithCellDoubleClick(); CommonMethods.approveCommonPrepareStepsForBpNationalOutgoing(); new ButtonCopy(VoucherSelectionDialogPage.getPathOfCancelButton()).operationWithButton(); break; #endregion #region CARD_NMT_OUT_EBANK_PI_SO && CARD_NMT_OUT_SO case "CARD_NMT_OUT_EBANK_PI_SO": case "CARD_NMT_OUT_SO": new CellCopy(ExternalMoneyTransferFormPage.getPathOfCell()).operationWithCellDoubleClick(); CommonMethods.approveCommonPrepareStepsForBpNationalOutgoing(); break; #endregion #region CARD_NMT_OUT_IBANK && CARD_NMT_OUT_PF && NMT_EXTERN_MONEY_WRITEOFF_CARD case "CARD_NMT_OUT_IBANK": case "CARD_NMT_OUT_PF": case "NMT_EXTERN_MONEY_WRITEOFF_CARD": new CellCopy(ExternalMoneyTransferFormPage.getPathOfCell()).operationWithCellDoubleClick(); CommonMethods.approveCommonPrepareStepsForBpNationalOutgoing(); new ButtonCopy(VoucherSelectionDialogPage.getPathOfCancelButton()).operationWithButton(); break; #endregion #region NMT_EXPRESSBANK_INCASS_PAYM && NMT_EXTERN_MONEY_WRITEOFF_CA && NMT_OUT_CA_EBANK_PI && NMT_OUT_CA_IBANK && NMT_OUT_CA_IBANK_ST case "NMT_EXPRESSBANK_INCASS_PAYM": case "NMT_EXTERN_MONEY_WRITEOFF_CA": case "NMT_OUT_CA_EBANK_PI": case "NMT_OUT_CA_IBANK": case "NMT_OUT_CA_IBANK_ST": CommonMethods.approveCommonPrepareStepsForBpNationalOutgoing(); new ButtonCopy(VoucherSelectionDialogPage.getPathOfCancelButton()).operationWithButton(); break; #endregion #region NMT_OUT_CA && NMT_OUT_CA_ST case "NMT_OUT_CA": case "NMT_OUT_CA_ST": CommonMethods.approveCommonPrepareStepsForBpNationalOutgoing(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(VoucherSelectionDialogPage.getPathOfCancelButton()).operationWithButton(); break; #endregion #region NMT_OUT_CA_SO case "NMT_OUT_CA_SO": CommonMethods.approveCommonPrepareStepsForBpNationalOutgoing(); break; #endregion #region NMT_OUT_FREE case "NMT_OUT_FREE": new ButtonCopy(BankMixAccountPage.getPathOfOkButtonFinishPrepare()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); break; #endregion #region NMT_OUT_FREE case "NMT_OUT_FREE_1C": new ButtonCopy(BankMixAccountPage.getPathOfOkButtonFinishPrepare()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(VoucherSelectionDialogPage.getPathOfCancelButton()).operationWithButton(); break; #endregion } }
internal void BankUserApproveBPFor_CARD_NMT_OUT_Transfer(string nameOfBP) { switch (nameOfBP) { #region CARD_NMT_OUT_EBANK_PI && NMT_OUT_CA && NMT_OUT_CA_EBANK_PI && NMT_OUT_CA_IBANK case "CARD_NMT_OUT_EBANK_PI": case "NMT_OUT_CA": case "NMT_OUT_CA_EBANK_PI": case "NMT_OUT_CA_IBANK": CommonMethods.approveCommonApproveStepsForBpNationalOutgoing(); new ButtonCopy(BusinessProcessesPage.getPathOfOKButtonOnBusinessProcessFormWPF()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); break; #endregion #region CARD_NMT_OUT_PF case "CARD_NMT_OUT_PF": CommonMethods.approveCommonApproveStepsForBpNationalOutgoing(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); break; #endregion #region NMT_OUT_CA_SO &&NMT_OUT_CA_IBANK_ST && CARD_NMT_OUT && CARD_NMT_OUT_EBANK_PI_SO && CARD_NMT_OUT_SO && NMT_EXPRESSBANK_INCASS_PAYM && NMT_EXTERN_MONEY_WRITEOFF_CA && NMT_EXTERN_MONEY_WRITEOFF_CARD && CARD_NMT_OUT_IBANK case "CARD_NMT_OUT": case "CARD_NMT_OUT_EBANK_PI_SO": case "CARD_NMT_OUT_SO": case "NMT_EXPRESSBANK_INCASS_PAYM": case "NMT_EXTERN_MONEY_WRITEOFF_CA": case "NMT_EXTERN_MONEY_WRITEOFF_CARD": case "CARD_NMT_OUT_IBANK": case "NMT_OUT_CA_IBANK_ST": case "NMT_OUT_CA_SO": CommonMethods.approveCommonApproveStepsForBpNationalOutgoing(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); break; #endregion #region NMT_OUT_CA_ST case "NMT_OUT_CA_ST": CommonMethods.approveCommonApproveStepsForBpNationalOutgoing(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(ExternalMoneyTransferFormPage.getPathOfOkApproveButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(VoucherSelectionDialogPage.getPathOfCancelButton()).operationWithButton(); break; #endregion #region NMT_OUT_FREE case "NMT_OUT_FREE": new CellCopy(BusinessProcessesPage.getPathOfFirstCheckBox()).operationWithCell(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(BankMixAccountPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(BankMixAccountPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(BankMixAccountPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); break; #endregion #region NMT_OUT_FREE case "NMT_OUT_FREE_1C": new CellCopy(BusinessProcessesPage.getPathOfFirstCheckBox()).operationWithCell(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(BankMixAccountPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(BankMixAccountPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new MenuItemCopy(BusinessProcessesPage.getPathOfExecuteButton()).operationWithMenuItem(); new ButtonCopy(BankMixAccountPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(InformationDialogPage.getPathOfOkButton()).operationWithButton(); new ButtonCopy(VoucherSelectionDialogPage.getPathOfCancelButton()).operationWithButton(); break; #endregion } }
public static void approveCommonPrepareStepsForBpNationalOutgoing() { SelectMenu(ExternalMoneyTransferFormPage.getPathOfOkButton()); SelectMenu(InformationDialogPage.getPathOfOkButton()); }