Exemplo n.º 1
0
 public static void approveCommonApproveStepsForBpNationalOutgoing()
 {
     SelectMenu(BusinessProcessesPage.getPathOfFirstCheckBox());
     SelectMenu(BusinessProcessesPage.getPathOfExecuteButton());
     SelectMenu(ExternalMoneyTransferFormPage.getPathOfOkApproveButton());
     SelectMenu(InformationDialogPage.getPathOfOkButton());
     SelectMenu(BusinessProcessesPage.getPathOfExecuteButton());
 }
        public void BankUserEnterActualDate(string nameOfSQLFile)
        {
            string actualDate = string.Empty;

            DataBase.execute(nameOfSQLFile)[0].TryGetValue("currDate", out actualDate);
            DateTime dateTime = Convert.ToDateTime(actualDate);

            new NationalOutgoingSteps().enterActualDate(dateTime.ToString("ddMMyyyy", CultureInfo.InvariantCulture)
                                                        , ExternalMoneyTransferFormPage.getPathOfDateField());
        }
 public void BankUserEnterDebitAccount(string accNumber)
 {
     new NationalOutgoingSteps().enterDebitAccount(accNumber, ExternalMoneyTransferFormPage.getPathOfContractNumberField());
     new NationalOutgoingSteps().pressLoadMenuItem(ExternalMoneyTransferFormPage.getPathOfLoadButton());
     #region prepare account and balance for Session
     Session.ACCOUNT_DEBIT_NUMBER_FOR_CARD_NMT_OUT = accNumber;
     string balance = string.Empty;
     DataBase.execute(CommonMethods.GET_ACTUAL_BALANCE, accNumber)[0].TryGetValue("Balance", out balance);
     Session.BALANCE_DEBIT_NUMBER_FOR_CARD_NMT_OUT = balance;
     #endregion
 }
 public void BankUserEnterReasonForNational_MT_OutgoingTabpage(string reason)
 {
     new NationalOutgoingSteps().enterBankUserReasonForNational_MT_OutgoingTabpage(reason, ExternalMoneyTransferFormPage.getPathOfReasonField());
 }
 public void BankUserEnterCreditAccountForNational_MT_OutgoingTabpage(string accCreditNumber)
 {
     new TextCopy(ExternalMoneyTransferFormPage.getPathOfNameField()).operationWithText();
     new NationalOutgoingSteps().enterBankUserCreditAccountForNational_MT_OutgoingTabpage(accCreditNumber, ExternalMoneyTransferFormPage.getPathOfAccountNumberField());
     new ButtonCopy(BeneficiaryAccountSelectionDialogPage.getPathOfCancelButton()).operationWithButton();
 }
 public void BankUserEnterCreditBankCodeForNational_MT_OutgoingTabPage(string bankCode)
 {
     new NationalOutgoingSteps().enterBankUserCreditBankCodeForNational_MT_OutgoingTabPage(bankCode, ExternalMoneyTransferFormPage.getPathOfBankField());
 }
 public void BankUserEnterRandomDocNumberForNational_MT_OutgoingTabPage()
 {
     new NationalOutgoingSteps().enterRandomDocNumberForTransferForNational_MT_OutgoingTabPage(CommonMethods.getRandomDocNumber(), ExternalMoneyTransferFormPage.getPathOfDocNumberField());
 }
 public void BankUserEnterRandomAmountForTransferForNational_MT_OutgoingTabPage()
 {
     #region prepare amount for Session
     string randomAmount = CommonMethods.getRandomAmount();
     Session.AMOUNT_FOR_TRANSFER_CARD_NMT_OUT = randomAmount;
     #endregion
     new NationalOutgoingSteps().enterRandomAmountForTransferForNational_MT_OutgoingTabPage(randomAmount, ExternalMoneyTransferFormPage.getPathOfAmountForTransferField());
 }
        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
            }
        }
Exemplo n.º 11
0
 public static void approveCommonPrepareStepsForBpNationalOutgoing()
 {
     SelectMenu(ExternalMoneyTransferFormPage.getPathOfOkButton());
     SelectMenu(InformationDialogPage.getPathOfOkButton());
 }